Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1835273ybz; Thu, 23 Apr 2020 06:52:10 -0700 (PDT) X-Google-Smtp-Source: APiQypJaGwj4niILb7PQiKzIJq+woGXBh1o2UCENEfClu6CtFbIamcEq4gY/099aSqws7nG5honW X-Received: by 2002:a17:906:15d4:: with SMTP id l20mr2634555ejd.91.1587649930022; Thu, 23 Apr 2020 06:52:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587649930; cv=none; d=google.com; s=arc-20160816; b=s99VzcLtH43Wx3Izs5d2PQxFWmdMtQQ5CIWIJnq4lGzJuw2QaT0BsI8aTCJrY3Rng0 yxbqhJbnXQ1RsD8bgTs1ZS8WFgLCSwXEnrXbF4/EM2DOtcg+QzDvZC49hpcjsnVQynlT s1uMYhGXt132V3z8dkqBYAjI2jRDQweoz0Ts3OmYdIL8BNK9ZXle206GRqJo3pxc6S+w OP0cH2EhqAMIFxrvCClCnXM4UmcC1YuAnuvSEn9iT5zScp9NzU0tfj9YVCUerXI0w/3m SbzZsS9JlgTvhGCac7//N2J40ZsubD1bnznM2mouiabhDXxNrmYDXCl1BksHTlvQ79WD gatg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4L0Oi4gXJMZJU5RUFrdSqf59bm055GMNJVkuJR7HgBk=; b=C7tIYrIqPeYFO6+cizhwI1tyOmAUVSU3UTSE4TcBqzD8rnP5JwU02InNf7Q3ZeOYPg 4Uzbt2D9BHczvcWfVfLOn5Wov3NJzSScWl11uJNyaNExDaximqRmDulkn3KAKH1Z+vB/ q6Q8+C2Q4TmpSZK0y9Mk5NUmQwkHwQz/aDq5wM2aqn5VgSdg2WRYoAEbq42Lr98hbmKO 2cNhkIZcUXvhErLRH+p6DvwLnjW1yEeAMgsJ5TOMmjLtQ6AxjZa1/qq6A6x+1k4/19uE y2MyXfVpLTDRqpKIYKgQD6X0ED39Wr23PkhHOouw8L327ypOqmmcwtCIk3bGVyplkC5l dOxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qvr+wOAn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 35si1165632edm.560.2020.04.23.06.51.45; Thu, 23 Apr 2020 06:52:10 -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; dkim=pass header.i=@kernel.org header.s=default header.b=qvr+wOAn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728545AbgDWNt2 (ORCPT + 99 others); Thu, 23 Apr 2020 09:49:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:38762 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726926AbgDWNt1 (ORCPT ); Thu, 23 Apr 2020 09:49:27 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0F87D20728; Thu, 23 Apr 2020 13:49:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587649767; bh=L5kU010tRLvlDykx2R2LNiOC7P2uliyNrRS983QiysA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qvr+wOAne/Dt5gCDxSwumAQtaM06h6Rcx2mWfPYuxyWvAg3INOrC9pI0TVoGhWBJ3 jkiC3PBLU2ox2NIZk0eLhWl5o06CytG87FVIoGtj8Hb6SQ5VaJo5kYvFjWZZJvLkJI yoTLzM0JfEldXK7OyD+07JPX6BdYQbwWSboj1+44= Date: Thu, 23 Apr 2020 14:49:24 +0100 From: Mark Brown To: Rong Chen Cc: Vinod Koul , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, kbuild test robot , Kuninori Morimoto Subject: Re: [PATCH] ASoC: soc-compress: avoid false-positive Wuninitialized warning Message-ID: <20200423134924.GA53068@sirena.org.uk> References: <202004201540.vYPhhYMs%lkp@intel.com> <20200422073543.1671-1-rong.a.chen@intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ikeVEW9yuYc//A+q" Content-Disposition: inline In-Reply-To: <20200422073543.1671-1-rong.a.chen@intel.com> X-Cookie: Must be under 48 inches in height. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 22, 2020 at 03:35:43PM +0800, Rong Chen wrote: > gcc-6.5 and earlier show a new warning: >=20 > sound/soc/soc-compress.c: In function =E2=80=98soc_compr_open=E2=80=99: > sound/soc/soc-compress.c:75:28: warning: =E2=80=98component=E2=80=99 is u= sed uninitialized in this function [-Wuninitialized] > struct snd_soc_component *component, *save =3D NULL; > ^~~~~~~~~ > Simplest fix is to initialize it to avoid the warning. This doesn't apply against current code, please check and resend. TBH I'm not 100% sure the benefit here is worth it, this is a very old compiler and it seems like a bug in the compiler. --ikeVEW9yuYc//A+q Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl6hnOQACgkQJNaLcl1U h9B11gf+Oc9Yy/dxZEWmYZXf4NvQ//qzlH4elElRYAl5NqjfV3NVh5GQmoZRnerX uA8j0Nkb9lM/Tw+mpj7W4YYu8seuBqFolV94YnsPGnlsVcePMlFZuZGcAeeMQ3QW 3oMOcmp8EqlC2jtKTK4apSqOqJSnJdhRWRcGl/4KiFAodJ12bRASMJIKONxVDfT9 tRqC7l4xmIoblzQ58tocFy6cTZMFzC9Rtx90T/3QFMVaDICCWEU0AwKmUqLeWxXW d3dbyaDaabfmjbSFGAdUY5/mEAiJZN3g9MgJUcxTdtuXZcW+Dw3+ERCmS5XHIeVd 75wiLWNECNnXTUKVn6QWhSJjEDdEgQ== =IV9o -----END PGP SIGNATURE----- --ikeVEW9yuYc//A+q--