Message ID | 20231004144203.151775-1-rf@opensource.cirrus.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:254a:b0:403:3b70:6f57 with SMTP id hf10csp182631vqb; Wed, 4 Oct 2023 07:42:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFG9H/dhmCYyCy04VtrNPmPt1pNxokHpgo5NZaQJczLIqoZ7dYsrCNFONYSbuUtFgqYKzM7 X-Received: by 2002:a05:6358:7e46:b0:13c:c84b:88b9 with SMTP id p6-20020a0563587e4600b0013cc84b88b9mr1690229rwm.15.1696430548264; Wed, 04 Oct 2023 07:42:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696430548; cv=none; d=google.com; s=arc-20160816; b=Lt4bk/JFips4QeJeSDFhjQRcl8nt8VsWODxDFD7XNcFkI5242NvudIKvNl+5kegRAV Cr5sinYpBFPyD/jK+xoaivnS9UdgYqaWBFYX9pav0itVzFUdTFilcHGC15hY/aT5/Ei5 wSS0m2iWgmX3rWRQD9RJw4Ug8aDeUbvJK0nqj8m8ljd2gofvkYRkEwAhb9bisMXcdM2+ qZYwGQzrL5Wbkqe+j91tHyqq140TdNiw11gD+oHwGkhYV53OWv9Nvo/qA3jQMWLdKIiu hj+Pgk7rO9FtScNuLE+fUXgLLtEMDmk8E8Vs2g6tVjSLmU+iVU367ciGDb5zr4qjbzjU Cagw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Sxz1387w7IYaa7wmEtu62QpVmMzjRznmYrElSjKXwTs=; fh=WWvOcm04GqBffvyIjAezM5LcJV6H+7mXpCfKs4gNxsY=; b=hx4lmxQXP9C7qLpLav4RZmxIhk3Ij4PWxhf3o/2CdQCOpi2XjYZ2GnJgrRENf+MyVe KxG1jIBtDS6Y/UjHBm9BeZwJF0vqOakY228F0E8geOaTIgyek1DLfht8eyNF3Om+wzrQ KhaqbYgqwHN8N3Jqcy9GDoNLZkfdmNH/RDK6BuFtZUAK0njPvh3ColiWQLAhepsRgIOJ 3UHW18txZ5fZ3adBnI5pzBCC4JgpVdvzZOKFTJXeItrmXkEFokSm/woOBbdrofCpocXy AN838+NI2tnjWhdozz5DVru0qURdo780DgKWcx8zE4J4kurl73AhW8m+xw9ORPqRj2R+ PXEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=LUUI1unL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id f20-20020a63f114000000b00578f6d31b78si3740627pgi.73.2023.10.04.07.42.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 07:42:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=LUUI1unL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 879C682D1AA2; Wed, 4 Oct 2023 07:42:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233097AbjJDOmX (ORCPT <rfc822;pusanteemu@gmail.com> + 18 others); Wed, 4 Oct 2023 10:42:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242936AbjJDOmR (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 4 Oct 2023 10:42:17 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC60BC1 for <linux-kernel@vger.kernel.org>; Wed, 4 Oct 2023 07:42:13 -0700 (PDT) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 394Eg5cL001398; Wed, 4 Oct 2023 09:42:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=PODMain02222019; bh=S xz1387w7IYaa7wmEtu62QpVmMzjRznmYrElSjKXwTs=; b=LUUI1unLS7Q8eVAZc N8JgCk0dkAFpbwwYPJ2Fvh5O4AdMYJkn3MHingKXDK1SIbywTRnBA7VpUUODtKQ5 mqkQ43HXP6cJkBk7QoKiGVhP39XOH1uMjoQulQtQm1ANuZUI+kKRLMrk1eVQa2IX 2hyB2ezXkgBveDdtXhH8D4NOzUgzTgPIDllNUVOYg2NMcAgBEecrJVWD4a+c4/Af 49YgJRkiaS9jcxwVMhcj+ATDV7lUF5dsNSfDVZHSyeR+cQQuekpeUSrjEx3uRXeP lj5SFbrANIqgCEzEX9kyanD+1i9udaC94jMcMrPpGZ37wf6id610o/gJ4dfimOoB S/p0Q== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3teg3k5jcd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Oct 2023 09:42:05 -0500 (CDT) Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.37; Wed, 4 Oct 2023 15:42:03 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1118.37 via Frontend Transport; Wed, 4 Oct 2023 15:42:03 +0100 Received: from edi-sw-dsktp-006.ad.cirrus.com (edi-sw-dsktp-006.ad.cirrus.com [198.90.251.13]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 9F24411AB; Wed, 4 Oct 2023 14:42:03 +0000 (UTC) From: Richard Fitzgerald <rf@opensource.cirrus.com> To: <broonie@kernel.org> CC: <alsa-devel@alsa-project.org>, <patches@opensource.cirrus.com>, <linux-kernel@vger.kernel.org>, Simon Trimmer <simont@opensource.cirrus.com>, Richard Fitzgerald <rf@opensource.cirrus.com> Subject: [PATCH] ASoC: cs35l56: Initialise a variable to silence possible static analysis error Date: Wed, 4 Oct 2023 15:42:03 +0100 Message-ID: <20231004144203.151775-1-rf@opensource.cirrus.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: Mz-5BQscbemOf1J2sAwCXxS1MWd-TJdP X-Proofpoint-ORIG-GUID: Mz-5BQscbemOf1J2sAwCXxS1MWd-TJdP X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 04 Oct 2023 07:42:27 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778836358549848493 X-GMAIL-MSGID: 1778836358549848493 |
Series |
ASoC: cs35l56: Initialise a variable to silence possible static analysis error
|
|
Commit Message
Richard Fitzgerald
Oct. 4, 2023, 2:42 p.m. UTC
From: Simon Trimmer <simont@opensource.cirrus.com> read_poll_timeout() is a macro and val will be populated before use, however some static analysis tools treat it as a function and warn of uninitialised variable usage. Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com> Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> --- sound/soc/codecs/cs35l56-shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Wed, 04 Oct 2023 15:42:03 +0100, Richard Fitzgerald wrote: > read_poll_timeout() is a macro and val will be populated before use, > however some static analysis tools treat it as a function and warn of > uninitialised variable usage. > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: cs35l56: Initialise a variable to silence possible static analysis error commit: c98a0a83dccd19283da34a298876d26c7f06750f All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
diff --git a/sound/soc/codecs/cs35l56-shared.c b/sound/soc/codecs/cs35l56-shared.c index 98b1e63360ae..01b6fa97b36b 100644 --- a/sound/soc/codecs/cs35l56-shared.c +++ b/sound/soc/codecs/cs35l56-shared.c @@ -242,7 +242,7 @@ EXPORT_SYMBOL_NS_GPL(cs35l56_firmware_shutdown, SND_SOC_CS35L56_SHARED); int cs35l56_wait_for_firmware_boot(struct cs35l56_base *cs35l56_base) { unsigned int reg; - unsigned int val; + unsigned int val = 0; int read_ret, poll_ret; if (cs35l56_base->rev < CS35L56_REVID_B0)