]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
x86/paravirt: Remove some unneeded struct declarations
authorJuergen Gross <jgross@suse.com>
Mon, 5 Jan 2026 11:05:01 +0000 (12:05 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 12 Jan 2026 14:17:00 +0000 (15:17 +0100)
In paravirt_types.h and paravirt.h there are some struct declarations which
are not needed. Remove them.

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-3-jgross@suse.com
arch/x86/include/asm/paravirt.h
arch/x86/include/asm/paravirt_types.h

index b5e59a7ba0d0e206e01a2f63b2dfa3dbbe6ef81d..612b3df65b1b43885cc67cdba0fbb70a2eabd621 100644 (file)
@@ -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>
index 3502939415ad0458fb912ff3fbde1b531d8b31f5..09ec8dc574a9686c727d80df3566404d0be644a0 100644 (file)
 #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