diff options
author | Ingo Molnar <mingo@kernel.org> | 2021-07-16 22:31:12 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2022-03-15 12:57:11 +0100 |
commit | 32764fc89f7b7117ae33ff38fd80c3a952e335a8 (patch) | |
tree | 87395c6408e84c1608377f63f53de14cf6fd8bbd /arch | |
parent | 0b7521dcd2624bfb734de9baeba427fb3eeea946 (diff) | |
download | tip-32764fc89f7b7117ae33ff38fd80c3a952e335a8.tar.gz |
headers/deps: x86/paravirt: Optimize <asm/paravirt_types.h> dependencies
--------------------------------------------------------------------
| Combined, preprocessed C code size of header, without line markers,
| with comments stripped:
-------------------------
before: | #include <asm/paravirt_types.h> | LOC: 1,098 | headers: 76
after: | #include <asm/paravirt_types.h> | LOC: 811 | headers: 48
Fix up dangling dependencies.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/include/asm/paravirt.h | 2 | ||||
-rw-r--r-- | arch/x86/include/asm/paravirt_types.h | 12 |
2 files changed, 9 insertions, 5 deletions
diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h index ab2201fffc3c7f..204624bb1a55e9 100644 --- a/arch/x86/include/asm/paravirt.h +++ b/arch/x86/include/asm/paravirt.h @@ -318,7 +318,7 @@ static inline void write_gdt_entry(struct desc_struct *dt, int entry, PVOP_VCALL4(cpu.write_gdt_entry, dt, entry, desc, type); } -static inline void write_idt_entry(gate_desc *dt, int entry, const gate_desc *g) +static inline void write_idt_entry(struct gate_struct *dt, int entry, const struct gate_struct *g) { PVOP_VCALL3(cpu.write_idt_entry, dt, entry, g); } diff --git a/arch/x86/include/asm/paravirt_types.h b/arch/x86/include/asm/paravirt_types.h index 737a1cccadfa77..3690eb3cd1c3f0 100644 --- a/arch/x86/include/asm/paravirt_types.h +++ b/arch/x86/include/asm/paravirt_types.h @@ -2,6 +2,7 @@ #ifndef _ASM_X86_PARAVIRT_TYPES_H #define _ASM_X86_PARAVIRT_TYPES_H + /* Bitmask of what can be clobbered: usually at least eax. */ #define CLBR_EAX (1 << 0) #define CLBR_ECX (1 << 1) @@ -35,9 +36,11 @@ #ifndef __ASSEMBLY__ -#include <asm/desc_defs.h> #include <asm/pgtable_types.h> -#include <asm/nospec-branch.h> + +#ifdef CONFIG_PARAVIRT_DEBUG +#include <linux/bug.h> +#endif struct page; struct thread_struct; @@ -45,6 +48,7 @@ struct desc_ptr; struct tss_struct; struct mm_struct; struct desc_struct; +struct gate_struct; struct task_struct; struct cpumask; struct flush_tlb_info; @@ -102,8 +106,8 @@ struct pv_cpu_ops { const void *desc); void (*write_gdt_entry)(struct desc_struct *, int entrynum, const void *desc, int size); - void (*write_idt_entry)(gate_desc *, - int entrynum, const gate_desc *gate); + void (*write_idt_entry)(struct gate_struct *, + int entrynum, const struct gate_struct *gate); void (*alloc_ldt)(struct desc_struct *ldt, unsigned entries); void (*free_ldt)(struct desc_struct *ldt, unsigned entries); |