Skip to content

Commit e5aff44

Browse files
committed
x86/xen: Fix sparse warning in enlighten_pv.c
The sparse tool issues a warning for arch/x76/xen/enlighten_pv.c: arch/x86/xen/enlighten_pv.c:120:9: sparse: sparse: incorrect type in initializer (different address spaces) expected void const [noderef] __percpu *__vpp_verify got bool * This is due to the percpu variable xen_in_preemptible_hcall being exported via EXPORT_SYMBOL_GPL() instead of EXPORT_PER_CPU_SYMBOL_GPL(). Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202512140856.Ic6FetG6-lkp@intel.com/ Fixes: fdfd811 ("x86/xen: allow privcmd hypercalls to be preempted") Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Signed-off-by: Juergen Gross <jgross@suse.com> Message-ID: <20251215115112.15072-1-jgross@suse.com>
1 parent 150215b commit e5aff44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/xen/enlighten_pv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ static int xen_cpu_dead_pv(unsigned int cpu);
108108
* calls.
109109
*/
110110
DEFINE_PER_CPU(bool, xen_in_preemptible_hcall);
111-
EXPORT_SYMBOL_GPL(xen_in_preemptible_hcall);
111+
EXPORT_PER_CPU_SYMBOL_GPL(xen_in_preemptible_hcall);
112112

113113
/*
114114
* In case of scheduling the flag must be cleared and restored after

0 commit comments

Comments
 (0)