aboutsummaryrefslogtreecommitdiff
path: root/include/linux/compiler-gcc.h
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2024-03-04 11:12:26 +0100
committerIngo Molnar <[email protected]>2024-03-04 12:09:13 +0100
commitca3ec9e5540428afa3d372fb39f0d88c4f44af8b (patch)
treeda39df94be410ec2263e25c1017236fbe00b159d /include/linux/compiler-gcc.h
parentae6b0195f5c503f22673a4acf21111822305c1e0 (diff)
x86/cpu: Use EXPORT_PER_CPU_SYMBOL_GPL() for x86_spec_ctrl_current
Sparse rightfully complains: bugs.c:71:9: sparse: warning: incorrect type in initializer (different address spaces) bugs.c:71:9: sparse: expected void const [noderef] __percpu *__vpp_verify bugs.c:71:9: sparse: got unsigned long long * The reason is that x86_spec_ctrl_current which is a per CPU variable is exported with EXPORT_SYMBOL_GPL(). Use EXPORT_PER_CPU_SYMBOL_GPL() instead. Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include/linux/compiler-gcc.h')
0 files changed, 0 insertions, 0 deletions