public inbox for virtualization@lists.linux-foundation.org
 help / color / mirror / Atom feed
From: Juergen Gross <jgross@suse.com>
To: linux-kernel@vger.kernel.org, x86@kernel.org,
	virtualization@lists.linux.dev
Cc: Juergen Gross <jgross@suse.com>,
	Ajay Kaher <ajay.kaher@broadcom.com>,
	Alexey Makhalov <alexey.makhalov@broadcom.com>,
	Broadcom internal kernel review list
	<bcm-kernel-feedback-list@broadcom.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	"H. Peter Anvin" <hpa@zytor.com>,
	"Peter Zijlstra (Intel)" <peterz@infradead.org>
Subject: [PATCH v5 02/21] x86/paravirt: Remove some unneeded struct declarations
Date: Mon,  5 Jan 2026 12:05:01 +0100	[thread overview]
Message-ID: <20260105110520.21356-3-jgross@suse.com> (raw)
In-Reply-To: <20260105110520.21356-1-jgross@suse.com>

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>
Acked-by: Peter Zijlstra (Intel) <peterz@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 3502939415ad..09ec8dc574a9 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


  reply	other threads:[~2026-01-05 11:05 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-05 11:04 [PATCH v5 00/21] paravirt: cleanup and reorg Juergen Gross
2026-01-05 11:05 ` Juergen Gross [this message]
2026-01-05 11:05 ` [PATCH v5 03/21] x86/paravirt: Remove PARAVIRT_DEBUG config option Juergen Gross
2026-01-05 11:05 ` [PATCH v5 04/21] x86/paravirt: Move thunk macros to paravirt_types.h Juergen Gross
2026-01-05 11:05 ` [PATCH v5 05/21] paravirt: Remove asm/paravirt_api_clock.h Juergen Gross
2026-01-05 11:05 ` [PATCH v5 06/21] sched: Move clock related paravirt code to kernel/sched Juergen Gross
2026-01-05 11:05 ` [PATCH v5 07/21] arm/paravirt: Use common code for paravirt_steal_clock() Juergen Gross
2026-01-05 11:05 ` [PATCH v5 08/21] arm64/paravirt: " Juergen Gross
2026-01-05 11:05 ` [PATCH v5 09/21] loongarch/paravirt: " Juergen Gross
2026-01-05 11:05 ` [PATCH v5 10/21] riscv/paravirt: " Juergen Gross
2026-01-05 11:05 ` [PATCH v5 11/21] x86/paravirt: " Juergen Gross
2026-01-05 11:05 ` [PATCH v5 12/21] x86/paravirt: Move paravirt_sched_clock() related code into tsc.c Juergen Gross
2026-01-13  6:56   ` Wei Liu
2026-01-05 11:05 ` [PATCH v5 13/21] x86/paravirt: Introduce new paravirt-base.h header Juergen Gross
2026-01-05 11:05 ` [PATCH v5 14/21] x86/paravirt: Move pv_native_*() prototypes to paravirt.c Juergen Gross
2026-01-05 11:05 ` [PATCH v5 19/21] x86/paravirt: Allow pv-calls outside paravirt.h Juergen Gross
2026-01-05 11:05 ` [PATCH v5 20/21] x86/paravirt: Specify pv_ops array in paravirt macros Juergen Gross
2026-01-05 11:05 ` [PATCH v5 21/21] x86/pvlocks: Move paravirt spinlock functions into own header Juergen Gross
2026-01-13  6:57   ` Wei Liu
2026-02-20  4:10 ` [PATCH v5 00/21] paravirt: cleanup and reorg patchwork-bot+linux-riscv

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260105110520.21356-3-jgross@suse.com \
    --to=jgross@suse.com \
    --cc=ajay.kaher@broadcom.com \
    --cc=alexey.makhalov@broadcom.com \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=tglx@linutronix.de \
    --cc=virtualization@lists.linux.dev \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox