In paravirt_types.h iand paravirt.h there are some struct declarations which are not needed. Remove them.
Signed-off-by: Juergen Gross <jgr...@suse.com> Acked-by: Peter Zijlstra (Intel) <pet...@infradead.org> --- V2: - remove mm_struct from paravirt.h, too --- arch/x86/include/asm/paravirt.h | 4 ---- arch/x86/include/asm/paravirt_types.h | 6 ------ 2 files changed, 10 deletions(-) diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h index b5e59a7ba0d0..612b3df65b1b 100644 --- a/arch/x86/include/asm/paravirt.h +++ b/arch/x86/include/asm/paravirt.h @@ -6,10 +6,6 @@ #include <asm/paravirt_types.h> -#ifndef __ASSEMBLER__ -struct mm_struct; -#endif - #ifdef CONFIG_PARAVIRT #include <asm/pgtable_types.h> #include <asm/asm.h> diff --git a/arch/x86/include/asm/paravirt_types.h b/arch/x86/include/asm/paravirt_types.h index 37a8627d8277..84cc8c95713b 100644 --- a/arch/x86/include/asm/paravirt_types.h +++ b/arch/x86/include/asm/paravirt_types.h @@ -11,16 +11,11 @@ #include <asm/pgtable_types.h> #include <asm/nospec-branch.h> -struct page; struct thread_struct; -struct desc_ptr; -struct tss_struct; struct mm_struct; -struct desc_struct; struct task_struct; struct cpumask; struct flush_tlb_info; -struct mmu_gather; struct vm_area_struct; /* @@ -205,7 +200,6 @@ struct pv_mmu_ops { #endif } __no_randomize_layout; -struct arch_spinlock; #ifdef CONFIG_SMP #include <asm/spinlock_types.h> #endif -- 2.51.0