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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF3BEC38142 for ; Tue, 24 Jan 2023 15:41:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234512AbjAXPlR (ORCPT ); Tue, 24 Jan 2023 10:41:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232793AbjAXPlM (ORCPT ); Tue, 24 Jan 2023 10:41:12 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B361E4B8AA for ; Tue, 24 Jan 2023 07:41:07 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3D60B4B3; Tue, 24 Jan 2023 07:41:49 -0800 (PST) Received: from cam-smtp0.cambridge.arm.com (pierre123.nice.arm.com [10.34.100.128]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 4789A3F5A1; Tue, 24 Jan 2023 07:41:05 -0800 (PST) From: Pierre Gondois To: linux-kernel@vger.kernel.org Cc: Geert Uytterhoeven , Conor Dooley , Dan Carpenter , Pierre Gondois , Catalin Marinas , Will Deacon , Greg Kroah-Hartman , "Rafael J. Wysocki" , Sudeep Holla , Jeremy Linton , Akihiko Odaki , Palmer Dabbelt , Gavin Shan , linux-arm-kernel@lists.infradead.org Subject: [PATCH -next v2 0/3] cacheinfo: Fix misbehaviours around init_cache_level() Date: Tue, 24 Jan 2023 16:40:45 +0100 Message-Id: <20230124154053.355376-1-pierre.gondois@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v2: https://lore.kernel.org/all/20230124123450.321852-1-pierre.gondois@arm.com/ - Split initial patch in 3. - Add links to static-analysis reports. Some cases were not correctly evaluated when updating init_cache_level()'s prototype, in particular if CONFIG_ACPI_PPTT is not defined. Fix them. The initial diagnostic was done thanks to: - the kernel test robot Link: https://lore.kernel.org/all/202301052307.JYt1GWaJ-lkp@intel.com/ - Dan Carpenter Link: https://lore.kernel.org/all/Y86iruJPuwNN7rZw@kili/ Pierre Gondois (3): cacheinfo: Initialize variables in fetch_cache_info() cacheinfo: Make default acpi_get_cache_info() return an error cacheinfo: Remove unused check in init_cache_level() arch/arm64/kernel/cacheinfo.c | 5 +---- drivers/base/cacheinfo.c | 2 +- include/linux/cacheinfo.h | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) -- 2.25.1