Skip to content

Commit cad860b

Browse files
KAGA-KOKOIngo Molnar
authored andcommitted
x86/callthunks: Use EXPORT_PER_CPU_SYMBOL_GPL() for per CPU variables
Sparse complains rightfully about the usage of EXPORT_SYMBOL_GPL() for per CPU variables: callthunks.c:346:20: sparse: warning: incorrect type in initializer (different address spaces) callthunks.c:346:20: sparse: expected void const [noderef] __percpu *__vpp_verify callthunks.c:346:20: sparse: got unsigned long long * Use EXPORT_PER_CPU_SYMBOL_GPL() instead. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20240304005104.841915535@linutronix.de
1 parent 65efc4d commit cad860b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/kernel/callthunks.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ DEFINE_PER_CPU(u64, __x86_call_count);
4242
DEFINE_PER_CPU(u64, __x86_ret_count);
4343
DEFINE_PER_CPU(u64, __x86_stuffs_count);
4444
DEFINE_PER_CPU(u64, __x86_ctxsw_count);
45-
EXPORT_SYMBOL_GPL(__x86_ctxsw_count);
46-
EXPORT_SYMBOL_GPL(__x86_call_count);
45+
EXPORT_PER_CPU_SYMBOL_GPL(__x86_ctxsw_count);
46+
EXPORT_PER_CPU_SYMBOL_GPL(__x86_call_count);
4747
#endif
4848

4949
extern s32 __call_sites[], __call_sites_end[];

0 commit comments

Comments
 (0)