x86/msr: Add missing __percpu annotations
Sparse rightfully complains about using a plain pointer for per CPU accessors: msr-smp.c:15:23: sparse: warning: incorrect type in initializer (different address spaces) msr-smp.c:15:23: sparse: expected void const [noderef] __percpu *__vpp_verify msr-smp.c:15:23: sparse: got struct msr * Add __percpu annotations to the related datastructure and function arguments to cure this. This also cures the related sparse warnings at the callsites in drivers/edac/amd64_edac.c. Signed-off-by:Thomas Gleixner <tglx@linutronix.de> Signed-off-by:
Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20240304005104.513181735@linutronix.de
Showing
- arch/x86/include/asm/msr.h 14 additions, 12 deletionsarch/x86/include/asm/msr.h
- arch/x86/include/asm/processor.h 0 additions, 1 deletionarch/x86/include/asm/processor.h
- arch/x86/include/asm/tsc.h 2 additions, 1 deletionarch/x86/include/asm/tsc.h
- arch/x86/lib/msr-smp.c 5 additions, 7 deletionsarch/x86/lib/msr-smp.c
- arch/x86/lib/msr.c 3 additions, 3 deletionsarch/x86/lib/msr.c
Please register or sign in to comment