Skip to content

Commit e0b4904

Browse files
jgross1bp3tk0v
authored andcommitted
x86/paravirt: Remove some unneeded struct declarations
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
1 parent 07f2961 commit e0b4904

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

arch/x86/include/asm/paravirt.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66

77
#include <asm/paravirt_types.h>
88

9-
#ifndef __ASSEMBLER__
10-
struct mm_struct;
11-
#endif
12-
139
#ifdef CONFIG_PARAVIRT
1410
#include <asm/pgtable_types.h>
1511
#include <asm/asm.h>

arch/x86/include/asm/paravirt_types.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,11 @@
1111
#include <asm/pgtable_types.h>
1212
#include <asm/nospec-branch.h>
1313

14-
struct page;
1514
struct thread_struct;
16-
struct desc_ptr;
17-
struct tss_struct;
1815
struct mm_struct;
19-
struct desc_struct;
2016
struct task_struct;
2117
struct cpumask;
2218
struct flush_tlb_info;
23-
struct mmu_gather;
2419
struct vm_area_struct;
2520

2621
/*
@@ -205,7 +200,6 @@ struct pv_mmu_ops {
205200
#endif
206201
} __no_randomize_layout;
207202

208-
struct arch_spinlock;
209203
#ifdef CONFIG_SMP
210204
#include <asm/spinlock_types.h>
211205
#endif

0 commit comments

Comments
 (0)