Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1183462ybz; Wed, 22 Apr 2020 15:22:03 -0700 (PDT) X-Google-Smtp-Source: APiQypKBQvrd9dpDN0BpeZDXM4Gc8/pKRfSPG8PpqVlUS6jYnnLb8m43BuTOgTnh+fdKRnxMa2uP X-Received: by 2002:aa7:c34e:: with SMTP id j14mr608895edr.195.1587594123684; Wed, 22 Apr 2020 15:22:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587594123; cv=none; d=google.com; s=arc-20160816; b=P19S8jEtVDdakiAZ2/8aQr0+B9G1pjJHggz6dzywxirG33GhJZemqyMh0mCwYZ35I/ U8BCJKPgYMVe1wfZclhrxwFnIgYdLr8/JMORYwUPnRB/r+FBJxRiOSlbvg3u47ufIOZF 79pFepK+yVC9GZOXoRGcXe6ZZqPzKVFoCiZ6NDOzhYliGP/2hDTCzgEITP+YiQlvMU7w uggTQnBfUa1VecUtnR7u1pTu5ztJx8hxgm/DocNHxhwaruMNaNgIuShbYgW1TBSwXc15 9RwAEnTCKfRui3RlGa1wpFjDnimaVDvUlGTuG39Wj2fX4o4/jOdpWMzsT3byeGYyvAfL nYqg== 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=nchl6U8hbzl+0VK3bl13F+76l1LOUej8EjgevOTMFP1X66ks60/N8v1LKYwXqOF8f3 K3o2ssN+/bWVgCRCpQ9J3fS7WBaLH8006zfiX7KynlL09tJz8Npl4fxLDKxk0XZWOR6q coeNRaypyVDZ34/VnLXgIh3hAZjVnwgfvhnQiHrkREe6jZegAyNvLVKIymnHHgKbtZ54 Ch5lHslxZ8jzNZLeEOcdRoCPfUmSFrRpwpFswIO6WXUTt69ws6FWmgTvN410eeuoC7WX sbIVUIuK4WwCp5DBKy6jbuW+j+Wh3+V9eczqiwC9TvtrRqP8NATOxIB22L8f6o7YIA0M VcSQ== 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 t9si258926ejr.422.2020.04.22.15.21.40; Wed, 22 Apr 2020 15:22:03 -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 S1726183AbgDVWSi convert rfc822-to-8bit (ORCPT + 99 others); Wed, 22 Apr 2020 18:18:38 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:40014 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725839AbgDVWSi (ORCPT ); Wed, 22 Apr 2020 18:18:38 -0400 Date: 23 Apr 2020 07:18:37 +0900 X-IronPort-AV: E=Sophos;i="5.73,304,1583161200"; d="scan'208";a="45233694" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 23 Apr 2020 07:18:37 +0900 Received: from mercury.renesas.com (unknown [10.166.252.133]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 4B7594007534; Thu, 23 Apr 2020 07:18:37 +0900 (JST) Message-ID: <87368vuptu.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] ASoC: soc-compress: avoid false-positive Wuninitialized warning In-Reply-To: <20200422073543.1671-1-rong.a.chen@intel.com> References: <202004201540.vYPhhYMs%lkp@intel.com> <20200422073543.1671-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