Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

x86/paravirt: Remove not needed includes of paravirt.h

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

authored by

Juergen Gross and committed by
Borislav Petkov (AMD)
07f29612 0f61b186

-22
-1
arch/x86/entry/entry_64.S
··· 31 31 #include <asm/hw_irq.h> 32 32 #include <asm/page_types.h> 33 33 #include <asm/irqflags.h> 34 - #include <asm/paravirt.h> 35 34 #include <asm/percpu.h> 36 35 #include <asm/asm.h> 37 36 #include <asm/smap.h>
-1
arch/x86/entry/vsyscall/vsyscall_64.c
··· 37 37 #include <asm/unistd.h> 38 38 #include <asm/fixmap.h> 39 39 #include <asm/traps.h> 40 - #include <asm/paravirt.h> 41 40 42 41 #define CREATE_TRACE_POINTS 43 42 #include "vsyscall_trace.h"
-1
arch/x86/hyperv/hv_spinlock.c
··· 13 13 #include <linux/spinlock.h> 14 14 15 15 #include <asm/mshyperv.h> 16 - #include <asm/paravirt.h> 17 16 #include <asm/apic.h> 18 17 #include <asm/msr.h> 19 18
-4
arch/x86/include/asm/apic.h
··· 90 90 /* 91 91 * Basic functions accessing APICs. 92 92 */ 93 - #ifdef CONFIG_PARAVIRT 94 - #include <asm/paravirt.h> 95 - #endif 96 - 97 93 static inline void native_apic_mem_write(u32 reg, u32 v) 98 94 { 99 95 volatile u32 *addr = (volatile u32 *)(APIC_BASE + reg);
-1
arch/x86/include/asm/highmem.h
··· 24 24 #include <linux/interrupt.h> 25 25 #include <linux/threads.h> 26 26 #include <asm/tlbflush.h> 27 - #include <asm/paravirt.h> 28 27 #include <asm/fixmap.h> 29 28 #include <asm/pgtable_areas.h> 30 29
-1
arch/x86/include/asm/mshyperv.h
··· 8 8 #include <linux/io.h> 9 9 #include <linux/static_call.h> 10 10 #include <asm/nospec-branch.h> 11 - #include <asm/paravirt.h> 12 11 #include <asm/msr.h> 13 12 #include <hyperv/hvhdk.h> 14 13 #include <asm/fpu/types.h>
-1
arch/x86/include/asm/pgtable_32.h
··· 16 16 #ifndef __ASSEMBLER__ 17 17 #include <asm/processor.h> 18 18 #include <linux/threads.h> 19 - #include <asm/paravirt.h> 20 19 21 20 #include <linux/bitops.h> 22 21 #include <linux/list.h>
-1
arch/x86/include/asm/spinlock.h
··· 7 7 #include <asm/page.h> 8 8 #include <asm/processor.h> 9 9 #include <linux/compiler.h> 10 - #include <asm/paravirt.h> 11 10 #include <asm/bitops.h> 12 11 13 12 /*
-4
arch/x86/include/asm/tlbflush.h
··· 300 300 static inline bool mm_in_asid_transition(struct mm_struct *mm) { return false; } 301 301 #endif /* CONFIG_BROADCAST_TLB_FLUSH */ 302 302 303 - #ifdef CONFIG_PARAVIRT 304 - #include <asm/paravirt.h> 305 - #endif 306 - 307 303 #define flush_tlb_mm(mm) \ 308 304 flush_tlb_mm_range(mm, 0UL, TLB_FLUSH_ALL, 0UL, true) 309 305
-1
arch/x86/kernel/apm_32.c
··· 229 229 #include <linux/uaccess.h> 230 230 #include <asm/desc.h> 231 231 #include <asm/olpc.h> 232 - #include <asm/paravirt.h> 233 232 #include <asm/reboot.h> 234 233 #include <asm/nospec-branch.h> 235 234 #include <asm/ibt.h>
-1
arch/x86/kernel/callthunks.c
··· 15 15 #include <asm/insn.h> 16 16 #include <asm/kexec.h> 17 17 #include <asm/nospec-branch.h> 18 - #include <asm/paravirt.h> 19 18 #include <asm/sections.h> 20 19 #include <asm/switch_to.h> 21 20 #include <asm/sync_core.h>
-1
arch/x86/kernel/cpu/bugs.c
··· 26 26 #include <asm/fpu/api.h> 27 27 #include <asm/msr.h> 28 28 #include <asm/vmx.h> 29 - #include <asm/paravirt.h> 30 29 #include <asm/cpu_device_id.h> 31 30 #include <asm/e820/api.h> 32 31 #include <asm/hypervisor.h>
-1
arch/x86/kernel/vsmp_64.c
··· 18 18 #include <asm/apic.h> 19 19 #include <asm/pci-direct.h> 20 20 #include <asm/io.h> 21 - #include <asm/paravirt.h> 22 21 #include <asm/setup.h> 23 22 24 23 #define TOPOLOGY_REGISTER_OFFSET 0x10
-1
arch/x86/lib/cache-smp.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 - #include <asm/paravirt.h> 3 2 #include <linux/smp.h> 4 3 #include <linux/export.h> 5 4 #include <linux/kvm_types.h>
-1
arch/x86/mm/init.c
··· 27 27 #include <asm/pti.h> 28 28 #include <asm/text-patching.h> 29 29 #include <asm/memtype.h> 30 - #include <asm/paravirt.h> 31 30 #include <asm/mmu_context.h> 32 31 33 32 /*
-1
arch/x86/xen/spinlock.c
··· 8 8 #include <linux/slab.h> 9 9 #include <linux/atomic.h> 10 10 11 - #include <asm/paravirt.h> 12 11 #include <asm/qspinlock.h> 13 12 14 13 #include <xen/events.h>