Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp189370ybz; Thu, 23 Apr 2020 21:37:04 -0700 (PDT) X-Google-Smtp-Source: APiQypLOtrkcPsUzAELgmZmdFC9/gdivgOR8jt10lsQVOzqWn1Zx4PfT7Tp7ciGLVtx4tApoigX2 X-Received: by 2002:a05:6402:31b6:: with SMTP id dj22mr5781075edb.258.1587703024173; Thu, 23 Apr 2020 21:37:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587703024; cv=none; d=google.com; s=arc-20160816; b=FI5+p8TQyijI9sloEDuJbi2pzPoBZuIxRhJqbyY+PmV/8yJARNkdHyMjvd9P/EI0fh fsO/hM6eTbouDipmPTA4cVeXfR1UonJVAYK0lorKu6yVHhHZR7ftdhAOxvdihQF2o7UP fy3nY7u5okAS9fqPM5xTiFSuwWZl+3VWnOKCZsJrx3jlXA6ldAcomk7WhwhaPZ9cS2dS SxcGwCpri7hqk+KDRuR9+ScsdAKZtjSHq3A+A9malWKvq8bFMhbiID9QwtYYeeIz1dD1 QxGw0HKvlRLRFFe1bHmNPl6oeFTbzjy/m65qSO0Rm9D9lbwfauekvB4ZVC0kx+rGN/ru +J0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date; bh=+hgI/e+aZYoYGuNTb7gDecgdOA+yTlEUu8QlZM853SY=; b=nAUFEwLeyideb9kNmi81YajhEdvkZzlh1PYCtERezH0Nv39zB+RVaSr+CvrZLr/qOu QyPM5LJFpZufS1/AVtFER+PEy/9FghSvY4uAPDPRhXd0NG+Ij1GHp6BwczpjCdIuvjnm YMutwdgcBGqHhskwCkKATYR6IKRzo3sLpjNEA36SstyWnGrCbb/jCW6FXISJUhzEKKhJ 18SGVCOC12UD+cvydxMsLpndiEGQdRpsSHB4GOudGNCaYKEYAwDMzTmyIetDG3WiepNV q66J+rVi+QYQMhvqwsiY02UpXzJIt6+68SgkLXyrSLkVFTfD6qLMAD1waZKwrld1T2J1 A0Dw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h4si2570266edn.445.2020.04.23.21.36.41; Thu, 23 Apr 2020 21:37:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726338AbgDXEel convert rfc822-to-8bit (ORCPT + 99 others); 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