From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2BD01C2BA1A for ; Fri, 24 Apr 2020 04:34:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1006720767 for ; Fri, 24 Apr 2020 04:34:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726379AbgDXEel convert rfc822-to-8bit (ORCPT ); Fri, 24 Apr 2020 00:34:41 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:33655 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726008AbgDXEek (ORCPT ); Fri, 24 Apr 2020 00:34:40 -0400 Date: 24 Apr 2020 13:34:39 +0900 X-IronPort-AV: E=Sophos;i="5.73,310,1583161200"; d="scan'208";a="45593552" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 24 Apr 2020 13:34:39 +0900 Received: from mercury.renesas.com (unknown [10.166.252.133]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 688FB4188CF9; Fri, 24 Apr 2020 13:34:39 +0900 (JST) Message-ID: <87blnhsdr4.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Rong Chen Cc: Vinod Koul , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, kbuild test robot Subject: Re: [PATCH v2] ASoC: soc-compress: avoid false-positive Wuninitialized warning In-Reply-To: <20200424005437.3941-1-rong.a.chen@intel.com> References: <202004201540.vYPhhYMs%lkp@intel.com> <20200424005437.3941-1-rong.a.chen@intel.com> User-Agent: Wanderlust/2.15.9 Emacs/25.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi > gcc-6.5 and earlier show a new warning: > > sound/soc/soc-compress.c: In function ¡soc_compr_open¢: > sound/soc/soc-compress.c:75:28: warning: ¡component¢ is used uninitialized in this function [-Wuninitialized] > struct snd_soc_component *component, *save = NULL; > ^~~~~~~~~ > > Simplest fix is to initialize it to avoid the warning. > > Reported-by: kbuild test robot > Cc: Kuninori Morimoto > Link: https://lore.kernel.org/lkml/202004201540.vYPhhYMs%25lkp@intel.com > Signed-off-by: Rong Chen > --- Acked-by: Kuninori Morimoto Thank you for your help !! Best regards --- Kuninori Morimoto