]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
x86/paravirt: Remove not needed includes of paravirt.h
authorJuergen Gross <jgross@suse.com>
Mon, 5 Jan 2026 11:05:00 +0000 (12:05 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 12 Jan 2026 10:26:52 +0000 (11:26 +0100)
In some places asm/paravirt.h is included without really being needed.

Remove the related #include statements.

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260105110520.21356-2-jgross@suse.com
16 files changed:
arch/x86/entry/entry_64.S
arch/x86/entry/vsyscall/vsyscall_64.c
arch/x86/hyperv/hv_spinlock.c
arch/x86/include/asm/apic.h
arch/x86/include/asm/highmem.h
arch/x86/include/asm/mshyperv.h
arch/x86/include/asm/pgtable_32.h
arch/x86/include/asm/spinlock.h
arch/x86/include/asm/tlbflush.h
arch/x86/kernel/apm_32.c
arch/x86/kernel/callthunks.c
arch/x86/kernel/cpu/bugs.c
arch/x86/kernel/vsmp_64.c
arch/x86/lib/cache-smp.c
arch/x86/mm/init.c
arch/x86/xen/spinlock.c

index f9983a1907bfa9d2e17d16f6d70e0852a5364475..42447b1e1dffa47eb9ce45edd90f471485de24f4 100644 (file)
@@ -31,7 +31,6 @@
 #include <asm/hw_irq.h>
 #include <asm/page_types.h>
 #include <asm/irqflags.h>
-#include <asm/paravirt.h>
 #include <asm/percpu.h>
 #include <asm/asm.h>
 #include <asm/smap.h>
index 6e6c0a7408371aa83903831f7363d754442f9d36..4bd1e271bb22b313fd6140cd0430a4ed94ab4f01 100644 (file)
@@ -37,7 +37,6 @@
 #include <asm/unistd.h>
 #include <asm/fixmap.h>
 #include <asm/traps.h>
-#include <asm/paravirt.h>
 
 #define CREATE_TRACE_POINTS
 #include "vsyscall_trace.h"
index 81b006601370cb6cf8de50d3af55cb2213c3fa5f..2a3c2afb015450afa9b92fbc33ec718c18af73ad 100644 (file)
@@ -13,7 +13,6 @@
 #include <linux/spinlock.h>
 
 #include <asm/mshyperv.h>
-#include <asm/paravirt.h>
 #include <asm/apic.h>
 #include <asm/msr.h>
 
index a26e66d66444a8ae97544daeafc3fe790e6112f2..9cd493d467d4d17925d25e99330faff2e158a5e1 100644 (file)
@@ -90,10 +90,6 @@ static inline bool apic_from_smp_config(void)
 /*
  * Basic functions accessing APICs.
  */
-#ifdef CONFIG_PARAVIRT
-#include <asm/paravirt.h>
-#endif
-
 static inline void native_apic_mem_write(u32 reg, u32 v)
 {
        volatile u32 *addr = (volatile u32 *)(APIC_BASE + reg);
index 585bdadba47d1484cc0fb10f97c85209154f4100..decfaaf52326280ffa49d21b32610795ebb4b868 100644 (file)
@@ -24,7 +24,6 @@
 #include <linux/interrupt.h>
 #include <linux/threads.h>
 #include <asm/tlbflush.h>
-#include <asm/paravirt.h>
 #include <asm/fixmap.h>
 #include <asm/pgtable_areas.h>
 
index eef4c3a5ba28ee13173ea649ae05c1d9a9e063ef..f64393e853ee314c984a7c80e5cdb3499a3a476a 100644 (file)
@@ -8,7 +8,6 @@
 #include <linux/io.h>
 #include <linux/static_call.h>
 #include <asm/nospec-branch.h>
-#include <asm/paravirt.h>
 #include <asm/msr.h>
 #include <hyperv/hvhdk.h>
 #include <asm/fpu/types.h>
index b612cc57a4d349384efe3bfa7377cf0063cb6df3..acea0cfa2460d337de0c98e45a191d809476ebe4 100644 (file)
@@ -16,7 +16,6 @@
 #ifndef __ASSEMBLER__
 #include <asm/processor.h>
 #include <linux/threads.h>
-#include <asm/paravirt.h>
 
 #include <linux/bitops.h>
 #include <linux/list.h>
index 5b6bc7016c223e7496fc2645ae8b3434ef83b96b..934632b78d09c07f5337982b238db138c640738b 100644 (file)
@@ -7,7 +7,6 @@
 #include <asm/page.h>
 #include <asm/processor.h>
 #include <linux/compiler.h>
-#include <asm/paravirt.h>
 #include <asm/bitops.h>
 
 /*
index 00daedfefc1b02e7e000676bbf6ee5a4c2a74ebb..238a6b807da5b002295664ddc9b3dcdcb0a78d42 100644 (file)
@@ -300,10 +300,6 @@ static inline void mm_clear_asid_transition(struct mm_struct *mm) { }
 static inline bool mm_in_asid_transition(struct mm_struct *mm) { return false; }
 #endif /* CONFIG_BROADCAST_TLB_FLUSH */
 
-#ifdef CONFIG_PARAVIRT
-#include <asm/paravirt.h>
-#endif
-
 #define flush_tlb_mm(mm)                                               \
                flush_tlb_mm_range(mm, 0UL, TLB_FLUSH_ALL, 0UL, true)
 
index b37ab10957074fb60211db3ec21cf63a69b59609..3175d7c134e9f5999f0f850f0da9030ec5855dcb 100644 (file)
 #include <linux/uaccess.h>
 #include <asm/desc.h>
 #include <asm/olpc.h>
-#include <asm/paravirt.h>
 #include <asm/reboot.h>
 #include <asm/nospec-branch.h>
 #include <asm/ibt.h>
index a951333c5995d5d3c1133296497cf28ce72f0bda..e37728f7032277a99ffb0e6bb7dfa318660e56a0 100644 (file)
@@ -15,7 +15,6 @@
 #include <asm/insn.h>
 #include <asm/kexec.h>
 #include <asm/nospec-branch.h>
-#include <asm/paravirt.h>
 #include <asm/sections.h>
 #include <asm/switch_to.h>
 #include <asm/sync_core.h>
index d0a2847a4bb050f9a8f4168b5295e95acc39fa6b..83f51cab0b1e393e79123002869bb3da6f00e3d2 100644 (file)
@@ -26,7 +26,6 @@
 #include <asm/fpu/api.h>
 #include <asm/msr.h>
 #include <asm/vmx.h>
-#include <asm/paravirt.h>
 #include <asm/cpu_device_id.h>
 #include <asm/e820/api.h>
 #include <asm/hypervisor.h>
index 73511332bb670074ddc83861b60c946e8e7004cd..25625e3fc1830ddd0bbb784fbe56bee94be90fbf 100644 (file)
@@ -18,7 +18,6 @@
 #include <asm/apic.h>
 #include <asm/pci-direct.h>
 #include <asm/io.h>
-#include <asm/paravirt.h>
 #include <asm/setup.h>
 
 #define TOPOLOGY_REGISTER_OFFSET 0x10
index 824664c0ecbdef33a8cd5e7c668bb1471ba70f83..7d3edd6deb6b8291d806f66c7f1c222d642088a9 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0
-#include <asm/paravirt.h>
 #include <linux/smp.h>
 #include <linux/export.h>
 #include <linux/kvm_types.h>
index 8bf6ad4b9400e7a04e9dc4e341e20a4a67ddb7ab..76537d40493c5634117c1fbb3a1b48509e1a99de 100644 (file)
@@ -27,7 +27,6 @@
 #include <asm/pti.h>
 #include <asm/text-patching.h>
 #include <asm/memtype.h>
-#include <asm/paravirt.h>
 #include <asm/mmu_context.h>
 
 /*
index 8e4efe0fb6f9aa86838fc099e688291e0fc6ab22..fe56646d6919e54c9b7f85a93a913e688d0a6f2c 100644 (file)
@@ -8,7 +8,6 @@
 #include <linux/slab.h>
 #include <linux/atomic.h>
 
-#include <asm/paravirt.h>
 #include <asm/qspinlock.h>
 
 #include <xen/events.h>