diff options
| author | HyeongJun An <sammiee5311@gmail.com> | 2026-06-05 00:00:52 +0900 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2026-06-05 12:07:11 +0200 |
| commit | 10a5d65856b9dbea0d63118e226b6fd820ee1d9d (patch) | |
| tree | cfbce770945ca217d1729f381520b3dd0562e262 /rust/kernel/alloc/allocator | |
| parent | e43ffb69e0438cddd72aaa30898b4dc446f664f8 (diff) | |
x86/process: Convert rdmsr() to rdmsrq() in arch_post_acpi_subsys_init() to address W=1 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=1:
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 <sammiee5311@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Jürgen Groß <jgross@suse.com>
Link: https://patch.msgid.link/20260604150052.3337246-1-sammiee5311@gmail.com
Diffstat (limited to 'rust/kernel/alloc/allocator')
0 files changed, 0 insertions, 0 deletions
