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 96EACD1D47F for ; Thu, 8 Jan 2026 16:00:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:From:Cc:To:Subject: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:References:List-Owner; bh=X/LV2+1BCaTDt7CPTEFOFhoJKlPtQgJP27ixrSIAYj0=; b=VGpWLjmRzWa39cpNwsQncKL4Ow WCkrY9y99H0GJ7ELkY0IIK6vB7UXB8Q7I8utRe8qYTxqRz+rPy7V8/+C8mkQva3y9c5XSvHFnT0LF Yg8yEV0SVZ2FmKkvDYNDWnS1gV42kAtZiQJMv45/D0hnhWvDMkhR+oH4r5ju9RECvfMhxGkqLlpwy hm2Q1hzS5WZJfcOqvDfTYgDryG9N/qvRDOMGlc4RpOtITxCqeu+wewhWLqxy/H0kIz5JBJyS04mPC WEKUnaxHe9F+bH7Pl6BDObfUShF7wLpf2y7fyCswJxT5RyEP7FlvhvgImSRb2IafQf8RNmZsDR+FH 7P3RMeww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vdsQe-000000001LO-2YE6; Thu, 08 Jan 2026 16:00:04 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vdsQY-000000001J5-1ftC for linux-arm-kernel@lists.infradead.org; Thu, 08 Jan 2026 16:00:01 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id B6B34401E0; Thu, 8 Jan 2026 15:59:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 280F3C116C6; Thu, 8 Jan 2026 15:59:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767887997; bh=sgvITlXj9ilI7M6aqw0oCqZXs79wIBWPDtsQUt1afCc=; h=Subject:To:Cc:From:Date:In-Reply-To:From; b=JmFgsRnMt8GyzaR2yDzGnx96J2E/cTBA8Q7f45RwG/Sjpjl5TeKY3vbRMdbl6e91e 1dsbSu6LsOxa6fs0SYqgmncjMTJvQieWUAKqV78QRPKWKaQNmFhk2RS51rl76HzwPw leai23tPUM9bNhUlWR6U1oc47jFSOSRW89vu9KtU= Subject: Patch "KVM: arm64: sys_regs: disable -Wuninitialized-const-pointer warning" has been added to the 5.15-stable tree To: alexandru.elisei@arm.com,catalin.marinas@arm.com,cov@codeaurora.org,gregkh@linuxfoundation.org,joey.gouly@arm.com,justinstitt@google.com,kvmarm@lists.cs.columbia.edu,linux-arm-kernel@lists.infradead.org,llvm@lists.linux.dev,maz@kernel.org,nathan@kernel.org,oliver.upton@linux.dev,suzuki.poulose@arm.com,will@kernel.org,yuzenghui@huawei.com Cc: From: Date: Thu, 08 Jan 2026 16:58:15 +0100 In-Reply-To: <20251204-b4-stable-disable-uninit-ptr-warn-5-15-v1-1-41212e2c6409@google.com> Message-ID: <2026010815-scraggly-flagship-ebb1@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit X-stable: commit X-Patchwork-Hint: ignore X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260108_075959_790512_79D04C5E X-CRM114-Status: GOOD ( 13.87 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This is a note to let you know that I've just added the patch titled KVM: arm64: sys_regs: disable -Wuninitialized-const-pointer warning to the 5.15-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: kvm-arm64-sys_regs-disable-wuninitialized-const-pointer-warning.patch and it can be found in the queue-5.15 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >From justinstitt@google.com Thu Jan 8 16:52:32 2026 From: Justin Stitt Date: Thu, 04 Dec 2025 12:44:48 -0800 Subject: KVM: arm64: sys_regs: disable -Wuninitialized-const-pointer warning To: Marc Zyngier , Oliver Upton , Alexandru Elisei , Joey Gouly , Suzuki K Poulose , Catalin Marinas , Zenghui Yu , Will Deacon , Nathan Chancellor , Christopher Covington Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, stable@vger.kernel.org, Justin Stitt Message-ID: <20251204-b4-stable-disable-uninit-ptr-warn-5-15-v1-1-41212e2c6409@google.com> From: Justin Stitt A new warning in Clang 22 [1] complains that @clidr passed to get_clidr_el1() is an uninitialized const pointer. get_clidr_el1() doesn't really care since it casts away the const-ness anyways -- it is a false positive. | ../arch/arm64/kvm/sys_regs.c:2838:23: warning: variable 'clidr' is uninitialized when passed as a const pointer argument here [-Wuninitialized-const-pointer] | 2838 | get_clidr_el1(NULL, &clidr); /* Ugly... */ | | ^~~~~ This patch isn't needed for anything past 6.1 as this code section was reworked in Commit 7af0c2534f4c ("KVM: arm64: Normalize cache configuration"). Since there is no upstream equivalent, this patch just needs to be applied to 5.15. Disable this warning for sys_regs.o with an iron fist as it doesn't make sense to waste maintainer's time or potentially break builds by backporting large changelists from 6.2+. Cc: stable@vger.kernel.org Fixes: 7c8c5e6a9101e ("arm64: KVM: system register handling") Link: https://github.com/llvm/llvm-project/commit/00dacf8c22f065cb52efb14cd091d441f19b319e [1] Reviewed-by: Nathan Chancellor Signed-off-by: Justin Stitt Signed-off-by: Greg Kroah-Hartman --- arch/arm64/kvm/Makefile | 3 +++ 1 file changed, 3 insertions(+) --- a/arch/arm64/kvm/Makefile +++ b/arch/arm64/kvm/Makefile @@ -25,3 +25,6 @@ kvm-y := $(KVM)/kvm_main.o $(KVM)/coales vgic/vgic-its.o vgic/vgic-debug.o kvm-$(CONFIG_HW_PERF_EVENTS) += pmu-emul.o + +# Work around a false positive Clang 22 -Wuninitialized-const-pointer warning +CFLAGS_sys_regs.o := $(call cc-disable-warning, uninitialized-const-pointer) Patches currently in stable-queue which might be from justinstitt@google.com are queue-5.15/kvm-arm64-sys_regs-disable-wuninitialized-const-pointer-warning.patch