linux/arch/x86/xen
Juergen Gross 0901f5fe2a x86/xen: Fix sparse warning in enlighten_pv.c
[ Upstream commit e5aff444e3 ]

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: fdfd811ddd ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-01-02 12:56:53 +01:00
..
apic.c x86/xen: eliminate some private header files 2024-07-11 16:33:48 +02:00
debugfs.c x86/xen: eliminate some private header files 2024-07-11 16:33:48 +02:00
efi.c xen/efi: refactor deprecated strncpy 2023-09-19 07:04:49 +02:00
enlighten.c x86/xen: Fix __xen_hypercall_setfunc() 2025-04-11 11:39:50 +02:00
enlighten_hvm.c x86/xen: remove hypercall page 2024-12-17 08:23:42 +01:00
enlighten_pv.c x86/xen: Fix sparse warning in enlighten_pv.c 2026-01-02 12:56:53 +01:00
enlighten_pvh.c x86/xen: disable CPU idle and frequency drivers for PVH dom0 2025-04-08 13:15:56 +02:00
grant-table.c x86/xen: open code alloc_vm_area in arch_gnttab_valloc 2020-10-18 09:27:10 -07:00
irq.c x86/paravirt: Move some functions and defines to alternative.c 2023-12-10 20:30:31 +01:00
Kconfig x86/xen: select HIBERNATE_CALLBACKS more directly 2025-09-08 20:10:20 +02:00
Makefile x86/PVH: obtain VGA console info in Dom0 2023-03-14 15:20:51 +01:00
mmu.c xen: replace XENFEAT_auto_translated_physmap with xen_pv_domain() 2025-09-08 17:01:36 +02:00
mmu_hvm.c x86/xen: eliminate some private header files 2024-07-11 16:33:48 +02:00
mmu_pv.c x86/mm/64: Make 5-level paging support unconditional 2025-05-17 10:38:16 +02:00
multicalls.c xen: fix multicall debug feature 2025-04-11 09:44:50 +02:00
p2m.c xen: replace XENFEAT_auto_translated_physmap with xen_pv_domain() 2025-09-08 17:01:36 +02:00
platform-pci-unplug.c x86: xen: platform-pci-unplug: use pr_err() and pr_warn() instead of raw printk() 2021-08-30 12:09:54 +02:00
pmu.c x86/msr: Change the function type of native_read_msr_safe() 2025-05-02 10:36:36 +02:00
setup.c x86/xen: fix balloon target initialization for PVH dom0 2025-04-07 11:24:12 +02:00
smp.c x86/xen: eliminate some private header files 2024-07-11 16:33:48 +02:00
smp_hvm.c x86/xen: eliminate some private header files 2024-07-11 16:33:48 +02:00
smp_pv.c xen: fix multicall debug feature 2025-04-11 09:44:50 +02:00
spinlock.c x86/xen: remove deprecated xen_nopvspin boot parameter 2024-07-11 16:33:51 +02:00
suspend.c x86/msr: Add explicit includes of <asm/msr.h> 2025-05-02 10:23:47 +02:00
suspend_hvm.c x86/xen: Add support for HVMOP_set_evtchn_upcall_vector 2022-08-12 11:28:21 +02:00
suspend_pv.c locking/seqlock, headers: Untangle the spaghetti monster 2020-08-06 16:13:13 +02:00
time.c x86/xen/time: Reduce Xen timer tick 2024-07-02 09:35:52 +02:00
trace.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vga.c x86: Do not include <asm/bootparam.h> in several files 2024-01-30 15:17:24 +01:00
xen-asm.S objtool, xen: Fix INSN_SYSCALL / INSN_SYSRET semantics 2025-04-08 09:14:12 +02:00
xen-head.S Merge branch 'x86/asm' into x86/core, to pick up dependent commits 2025-03-04 20:29:35 +01:00
xen-ops.h x86/xen/msr: Remove pmu_msr_{read,write}() 2025-05-02 10:36:35 +02:00