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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3C0E8C54E94 for ; Tue, 24 Jan 2023 17:20:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=b4AmzIdddg+5LZSFWxVk3Xx3BlGmOZ6BsQK2FxCEt5w=; b=YywHjtxtK9ZKR29KjbLM7MrvuZ +RCjI20z0Hmv+RUa3Ul5cf9EUqXTR84+QygFqAE8Xz8kCWKwTOqf/g92bWO0bScqzPtzMjw1vo9o1 ZbLfGb97sn6CiqDQfSJmbtG3mOwlfWaKJV76lKJEag8r/3CLV6ABqeprXgm0cjIbofXAQbLrzl0Tt c1z2OxIj+75Vv5ynTjrXHhFJuKXIFbgrPUZO+h+AaVG+Ru9TXkvKdetRWmhuXsIAlIhLnehPzrh1Z riUtgZGvsHsVw5wErt70wE90quHXUjGnZFTWe5CUhxzEniKeg54gr/l3/eRAA7IP0wlHLl26Zo7Ci N83BbEDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKMx4-004nsV-Tl; Tue, 24 Jan 2023 17:19:19 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKMx2-004nrA-07 for linux-arm-kernel@lists.infradead.org; Tue, 24 Jan 2023 17:19:17 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 72344B815FA; Tue, 24 Jan 2023 17:19:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C34D5C433EF; Tue, 24 Jan 2023 17:19:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674580753; bh=1kQ5c/1mRBqMRVTbC6270y6arGlgEmeq3utuZc9QgSQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gmjhljOmw5u9T3x+D8TrUWIbGxAbtg2dVVYGPIcvJO6u8BOPVNGm5Rb2cW8LXTRLG o4w2h0oSRLtPDJVCTrM7ysldwN/zXs8bYgQn4QA4oZi2AzBva4UR+UqVSXRCDt7Wk1 6IG9MEy5ZSO9rhR1DEJLYj7UX6ejd+PL4f0IEwaRVSeQwRq+DSas881i/+LUSCa0qB ngW3rLaIKlfaBmFtyakuLFtbg9fZ9OhCz2q9R8udI5ChO4Kg/taWbFELmZHaOqoa7N zyTy8eRXQvR1XpY539/nQhu0hfrxvvyYs3T1qIfixo+DecCUUBI0BfrNIAc098kiGE Qk+xIz+Szc9bQ== Date: Tue, 24 Jan 2023 17:19:07 +0000 From: Conor Dooley To: Pierre Gondois Cc: linux-kernel@vger.kernel.org, Geert Uytterhoeven , Conor Dooley , Dan Carpenter , kernel test robot , Catalin Marinas , Will Deacon , Greg Kroah-Hartman , "Rafael J. Wysocki" , Sudeep Holla , Palmer Dabbelt , Oliver Upton , Akihiko Odaki , Gavin Shan , Jeremy Linton , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH -next v2 1/3] cacheinfo: Initialize variables in fetch_cache_info() Message-ID: References: <20230124154053.355376-1-pierre.gondois@arm.com> <20230124154053.355376-2-pierre.gondois@arm.com> MIME-Version: 1.0 In-Reply-To: <20230124154053.355376-2-pierre.gondois@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230124_091916_210399_3D7BC2C3 X-CRM114-Status: GOOD ( 20.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============3155950052390409158==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============3155950052390409158== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="kd7w2DvTOd3+8EZQ" Content-Disposition: inline --kd7w2DvTOd3+8EZQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 24, 2023 at 04:40:46PM +0100, Pierre Gondois wrote: > Set potentially uninitialized variables to 0. This is particularly > relevant when CONFIG_ACPI_PPTT is not set. >=20 > Reported-by: kernel test robot > Link: https://lore.kernel.org/all/202301052307.JYt1GWaJ-lkp@intel.com/ > Reported-by: Dan Carpenter > Link: https://lore.kernel.org/all/Y86iruJPuwNN7rZw@kili/ > Fixes: 5944ce092b97 ("arch_topology: Build cacheinfo from primary CPU") > Signed-off-by: Pierre Gondois Reviewed-by: Conor Dooley Thanks for the quick respin Pierre :) > --- > drivers/base/cacheinfo.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/base/cacheinfo.c b/drivers/base/cacheinfo.c > index 418a18acc8f9..f6573c335f4c 100644 > --- a/drivers/base/cacheinfo.c > +++ b/drivers/base/cacheinfo.c > @@ -424,7 +424,7 @@ int allocate_cache_info(int cpu) > int fetch_cache_info(unsigned int cpu) > { > struct cpu_cacheinfo *this_cpu_ci; > - unsigned int levels, split_levels; > + unsigned int levels =3D 0, split_levels =3D 0; > int ret; > =20 > if (acpi_disabled) { > --=20 > 2.25.1 >=20 --kd7w2DvTOd3+8EZQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCY9ATCwAKCRB4tDGHoIJi 0vWLAQDb8fExDpV5Pof5v1hotbkUozRcMazBZEbDrpWMXOreWwEAvP0piCG5cSbq hiv1bz87YuZPDSOtf1K9/+oY8R/h6wo= =i0NU -----END PGP SIGNATURE----- --kd7w2DvTOd3+8EZQ-- --===============3155950052390409158== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============3155950052390409158==--