The following commit has been merged into the x86/paravirt branch of tip:
Commit-ID: e0b4904a401fad8593b85c698677dda95bec51a6
Gitweb: https://git.kernel.org/tip/e0b4904a401fad8593b85c698677dda95bec51a6
Author: Juergen Gross <jgross@suse.com>
AuthorDate: Mon, 05 Jan 2026 12:05:01 +01:00
Committer: Borislav Petkov (AMD) <bp@alien8.de>
CommitterDate: Mon, 12 Jan 2026 15:17:00 +01:00
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
---
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 b5e59a7..612b3df 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 3502939..09ec8dc 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