[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250917145220.31064-3-jgross@suse.com>
Date: Wed, 17 Sep 2025 16:52:01 +0200
From: Juergen Gross <jgross@...e.com>
To: linux-kernel@...r.kernel.org,
x86@...nel.org,
virtualization@...ts.linux.dev
Cc: Juergen Gross <jgross@...e.com>,
Ajay Kaher <ajay.kaher@...adcom.com>,
Alexey Makhalov <alexey.makhalov@...adcom.com>,
Broadcom internal kernel review list <bcm-kernel-feedback-list@...adcom.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>,
"H. Peter Anvin" <hpa@...or.com>,
"Peter Zijlstra (Intel)" <peterz@...radead.org>
Subject: [PATCH v2 02/21] x86/paravirt: Remove some unneeded struct declarations
In paravirt_types.h iand paravirt.h there are some struct declarations
which are not needed. Remove them.
Signed-off-by: Juergen Gross <jgross@...e.com>
Acked-by: Peter Zijlstra (Intel) <peterz@...radead.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
Powered by blists - more mailing lists