From nobody Mon Jun 8 07:24:43 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 BA5DE3F58C1; Fri, 5 Jun 2026 10:15:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780654511; cv=none; b=ezz3eNJ5NjEhgq/kct/jwGmOc1CbYxng0A6dFPfKGrmBXZGsSuEjzQDSMQ0Kmf2i3+68RMrdFGXAc11hYbbyiZcuVnqvh+CIp3lSpZe9/in4a2mxwHc/DkU7OwzkAzGkBKe8seA3bdUq5mFQD4PX524pLxQzcGC6D9Es4gVU7QY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780654511; c=relaxed/simple; bh=gs0uc/L6y0gS5ISqrAEx9lB7sta1Bmzx+jNV7TsPCaE=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=G4T05fdYxJNUwyNN7BuOvo2MUjNZvX+0tt8BCpYqTb644sgWb4DqOWZ0NKhl5wm4hrUPR86+5HfEtFl6ayWA+fh7p1E3IlqOmMg5q9PKmT2LoKXuaP15mM797TyH2nIjq13juOIMnDXb/l5THroQhebrwVJwoxeCS+I6AlvLUYI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=rG6FVUvI; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=YLWvj1uE; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="rG6FVUvI"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="YLWvj1uE" Date: Fri, 05 Jun 2026 10:15:06 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780654507; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JK0VjTePH926lOUi5WZ6XLLzW4eGztkNg1lmCDynAOw=; b=rG6FVUvI3PNPH0UjoCDzYg5nKqW+n42ihfyXHwisZN/ib4gy85J1AkSBvLlqccyxeNYfUP +/QCFw52RNZlWF4H3tDX99Fe95SiUQqk9QlhH/KgH0h5iLsP2keKJeyXaY4JYy4REQC44B mqQbrLtGjaTMRzawdvWBvrtgvwCuAz8whesu/1vK7oXJZbGyT9V+uwVrKMjk5OODzUY8/Y /N87s5fur8KeoDNK8G8BrY567T0JiTEqJNzCYu/LB8aurtfmediIAjS5SgCmp/DRfpYdfp PVOCLTn6G8R0TcDV48No/iWXHILE0f1W0FRjp9iBVw5h4AE7Ofrx5ws7BThhfA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780654507; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JK0VjTePH926lOUi5WZ6XLLzW4eGztkNg1lmCDynAOw=; b=YLWvj1uEdTF3th1gbcKw32nzvKuT+bPgXeKTpyGV2FnZwYBcbaE1jZ5vjS0LQQ5OZ3h1vD XFreNyNCjPMxC1Bg== From: "tip-bot2 for HyeongJun An" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/msr] x86/process: Convert rdmsr() to rdmsrq() in arch_post_acpi_subsys_init() to address W=1 warning Cc: HyeongJun An , Ingo Molnar , jgross@suse.com, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260604150052.3337246-1-sammiee5311@gmail.com> References: <20260604150052.3337246-1-sammiee5311@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178065450627.710.9092766640581140001.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the x86/msr branch of tip: Commit-ID: 10a5d65856b9dbea0d63118e226b6fd820ee1d9d Gitweb: https://git.kernel.org/tip/10a5d65856b9dbea0d63118e226b6fd82= 0ee1d9d Author: HyeongJun An AuthorDate: Fri, 05 Jun 2026 00:00:52 +09:00 Committer: Ingo Molnar CommitterDate: Fri, 05 Jun 2026 12:07:11 +02:00 x86/process: Convert rdmsr() to rdmsrq() in arch_post_acpi_subsys_init() to= address W=3D1 warning arch_post_acpi_subsys_init() reads MSR_K8_INT_PENDING_MSG with rdmsr() into a lo/hi pair but only uses the low 32 bits: K8_INTP_C1E_ACTIVE_MASK (0x18000000) lies entirely within them. The 'hi' half is never consumed, which triggers a -Wunused-but-set-variable warning under W=3D1: arch/x86/kernel/process.c: In function 'arch_post_acpi_subsys_init': arch/x86/kernel/process.c:972:17: warning: variable 'hi' set but not used Read the full MSR into a single u64 with rdmsrq() and test the mask against it, dropping the now-unnecessary lo/hi variables. No functional change intended. Signed-off-by: HyeongJun An Signed-off-by: Ingo Molnar Cc: J=C3=BCrgen Gro=C3=9F Link: https://patch.msgid.link/20260604150052.3337246-1-sammiee5311@gmail.c= om --- arch/x86/kernel/process.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c index 4c718f8..a554f19 100644 --- a/arch/x86/kernel/process.c +++ b/arch/x86/kernel/process.c @@ -969,7 +969,7 @@ void amd_e400_c1e_apic_setup(void) =20 void __init arch_post_acpi_subsys_init(void) { - u32 lo, hi; + u64 val; =20 if (!boot_cpu_has_bug(X86_BUG_AMD_E400)) return; @@ -979,8 +979,8 @@ void __init arch_post_acpi_subsys_init(void) * the machine is affected K8_INTP_C1E_ACTIVE_MASK bits are set in * MSR_K8_INT_PENDING_MSG. */ - rdmsr(MSR_K8_INT_PENDING_MSG, lo, hi); - if (!(lo & K8_INTP_C1E_ACTIVE_MASK)) + rdmsrq(MSR_K8_INT_PENDING_MSG, val); + if (!(val & K8_INTP_C1E_ACTIVE_MASK)) return; =20 boot_cpu_set_bug(X86_BUG_AMD_APIC_C1E);