From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0A31323717F; Thu, 8 Jan 2026 15:59:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767887998; cv=none; b=CR7Ki1wYavHWw1tOnyCHmyafmu9lzPc4dsR79WfPUKmju6gM3rtgWBP32g5cPswAoQl6ghBzORN2tlNhD3FPZZZre/ghaiBHImS/bwLRXupFmKbbT8Xqep/Q4W2voLbHikmJ6+gDzjflqAMQ2O7Ty2pGRDASzHvejD4mUFVnDD4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767887998; c=relaxed/simple; bh=sgvITlXj9ilI7M6aqw0oCqZXs79wIBWPDtsQUt1afCc=; h=Subject:To:Cc:From:Date:In-Reply-To:Message-ID:MIME-Version: Content-Type; b=c2SZAhrVdYKeeXHAz0JHFN46NaNsBCvrC17Av55dRxafUb9zt7kMBayM9bLq/7iZjoJddhsfYI7YVTgPZzFxgVGJP5qkx8cZnHRxdgYH5dgt5LyRLWeWOME3p4UKmUfYCAltftePaJm37l9tY4dswy/M0PCAM6kj+RmiTWV3gbA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JmFgsRnM; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="JmFgsRnM" 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> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit X-stable: commit X-Patchwork-Hint: ignore 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