From nobody Fri Dec 19 17:16:26 2025 Received: from mail-oi1-f202.google.com (mail-oi1-f202.google.com [209.85.167.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 165A0322523 for ; Thu, 4 Dec 2025 20:50:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764881421; cv=none; b=B3cTxMvRFlxLrA/jySA69fNibZsUd9XhwGMvEd02RTiS1U9gaXPoKF+TdNuS5zRqD3+XUCvoNs51jzK3h9Ru03wD7PCCe4bnK0uLkR47GDlPeyhG8/H/8cgi2Ylt79wVXEWm0x47Ij3fF+56Vy/7jm6FKVHnGD9W1zQTVfHNdMw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764881421; c=relaxed/simple; bh=QdxSdzVzK5xrxxMWmz/dhJgRurzJ2W+fjhM9MUROI4E=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=NI74MJNdbJUmv6gXws0VI+ImCpkDza3X8BSmQrZdcjj1i6OHdZY+fbghDbbG5WDBNo/7ivcPO73oXuiJYsiQNtvLRCx0+g0sNkirRSJ+u2kV5gF366N+j+KL3C2H24J3Bt5Dn5NJlLAXYTBLZ0DisGXQdCljWXF0pFx0E897ZC0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--justinstitt.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=lYtcNpMr; arc=none smtp.client-ip=209.85.167.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--justinstitt.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="lYtcNpMr" Received: by mail-oi1-f202.google.com with SMTP id 5614622812f47-4501fcc3affso1028781b6e.2 for ; Thu, 04 Dec 2025 12:50:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1764881415; x=1765486215; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=jfhXtjVpMYWte58x/PC24J5XI6+isvfw/8Zcbl9+DZA=; b=lYtcNpMrW6xfMys23S4emLlGUrEyjMNu0rdGqEqswLXe2BO23OEjxmTzoWxMUE0dUz TEhvLL8+xldwfLn8pZU+zsZgO8jXjOUDUQjY5S8BEPT7vkTdHg+UjopoGGBirxL73Ucz ZtqadlimRsavr24rDtgoZrDak2Zc/uNT802oEjN6nnz6oh0/7kjA44nvXXlJjUFSnKZr w+uK5G9yuDBeEAx2cChzMn74L8N2nHFg6KWBwLnN6/e2PcFnBC/CoTD6guaZskL4U74d dz1GtlD/IzdVf+rxVZ3/sptufP7MZGcXgrPXrJcCQvQwtODlP/MWv6I09Yh/DOb/NZSk tYHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764881415; x=1765486215; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=jfhXtjVpMYWte58x/PC24J5XI6+isvfw/8Zcbl9+DZA=; b=p2yulRiHOx0Wa28sVfFaapPzRhdqRgSVU335nRnpgon5+S4c2W2TWb5PlS4guPgAMx zHD278pKK5SlmUcWkzyMbhlPPdPGcq0W6Wqc893AEMEQ0aZRO0hTX/KnhyjgCkvPO43n jgjNYF7pg79B1LFblfVNiyeMHdy85lzkqdFZiNm8EP3zwuWZdT6S4aZya28Li9jaG4TW YTa7hSLpC6Vb9f6gq8IV83/kQldc1vRow0JGmJLcxU4XiyLgmOS63gNehTseJPo2pBIy n7VUv3wITuCcb/nFehTdifgoWb1Fv+G+G+HTTg4IAVY0TXoJuenww9R6Q4IwfNLjzuj3 mKzA== X-Forwarded-Encrypted: i=1; AJvYcCVq1XOeE058BRjUtmwLWlDwcx1ZqZlEP0FZ9x9W51yHCw65epjWb2hvCnR+mSHLf56gP8W+XaMF9asRFs4=@vger.kernel.org X-Gm-Message-State: AOJu0Yz5xINBu3IUe2HmkNTTnJchIDgwH/mn3uWZ9/GGw7o1tiaoa1rq b8pikSO8H7qte4OboKbOU6wG5oHmkQpNCIUPoFzCwsJwnVEkSw90OLLVnpcvXoHo2CEED9h7tqc fZj46DXjEDM68dVQ2+PVy0BKp/Q== X-Google-Smtp-Source: AGHT+IHKRkFsm1qvW8FHQgUBY9rowKQV8LQD4wg/pfFAOzqqCDtedAh9KEfVk/fSu+irJi0QEI5yC6OCMXP8ByDcyQ== X-Received: from ilbbb7.prod.google.com ([2002:a05:6e02:7:b0:433:56ba:b9cb]) (user=justinstitt job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6808:1184:b0:450:c0c4:3728 with SMTP id 5614622812f47-4536e428247mr3791671b6e.30.1764881415297; Thu, 04 Dec 2025 12:50:15 -0800 (PST) Date: Thu, 04 Dec 2025 12:50:11 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAAP0MWkC/42NQQ7CIBBFr9LM2jGAlUZXvYfpQmBsJ6nQADaah ruLPYHL95L//gaJIlOCa7NBpJUTB19BHhqw092PhOwqgxLqLDrVomnRzuwivjz7jDb4lHHJETt y5qKFsSfjoM6XSA9+7+nbUHnilEP87E+r/Nk/oqtEibqzrdNKGG10P4YwznS04QlDKeULzWUJn sEAAAA= X-Developer-Key: i=justinstitt@google.com; a=ed25519; pk=tC3hNkJQTpNX/gLKxTNQKDmiQl6QjBNCGKJINqAdJsE= X-Developer-Signature: v=1; a=ed25519-sha256; t=1764881414; l=1644; i=justinstitt@google.com; s=20230717; h=from:subject:message-id; bh=QdxSdzVzK5xrxxMWmz/dhJgRurzJ2W+fjhM9MUROI4E=; b=xsVQAx0YLXTKT8wTYbzwnSITaZIYSGNlnwQWqZJic5nR3ojchC2UaEVQCaQ7cnY5/r5sGShFg e7G0a5kMKZmDg9asmBU5U2THu+tB9937IvPJlrFBxjct0SSPaHwhSq/ X-Mailer: b4 0.12.3 Message-ID: <20251204-b4-clidr-unint-const-ptr-v1-1-95161315ad92@google.com> Subject: [PATCH 6.1.y RESEND] KVM: arm64: silence -Wuninitialized-const-pointer warning From: Justin Stitt 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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. Silence the warning by initializing the struct. This patch won't apply to anything past v6.1 as this code section was reworked in Commit 7af0c2534f4c ("KVM: arm64: Normalize cache configuration"). There is no upstream equivalent so this patch only needs to be applied (stable only) to 6.1. Cc: stable@vger.kernel.org Fixes: 7c8c5e6a9101e ("arm64: KVM: system register handling") Link: https://github.com/llvm/llvm-project/commit/00dacf8c22f065cb52efb14cd= 091d441f19b319e [1] Signed-off-by: Justin Stitt --- Resending this with Nathan's RB tag, an updated commit log and better recipients from checkpatch.pl. I've also sent a similar patch resend for 5.15 --- arch/arm64/kvm/sys_regs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kvm/sys_regs.c b/arch/arm64/kvm/sys_regs.c index f4a7c5abcbca..d7ebd7387221 100644 --- a/arch/arm64/kvm/sys_regs.c +++ b/arch/arm64/kvm/sys_regs.c @@ -2948,7 +2948,7 @@ int kvm_sys_reg_table_init(void) { bool valid =3D true; unsigned int i; - struct sys_reg_desc clidr; + struct sys_reg_desc clidr =3D {0}; =20 /* Make sure tables are unique and in order. */ valid &=3D check_sysreg_table(sys_reg_descs, ARRAY_SIZE(sys_reg_descs), f= alse); --- base-commit: 830b3c68c1fb1e9176028d02ef86f3cf76aa2476 change-id: 20250724-b4-clidr-unint-const-ptr-7edb960bc3bd Best regards, -- Justin Stitt