Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Juergen Gross and committed by
Borislav Petkov (AMD)
e0b4904a 07f29612

-10
-4
arch/x86/include/asm/paravirt.h
··· 6 6 7 7 #include <asm/paravirt_types.h> 8 8 9 - #ifndef __ASSEMBLER__ 10 - struct mm_struct; 11 - #endif 12 - 13 9 #ifdef CONFIG_PARAVIRT 14 10 #include <asm/pgtable_types.h> 15 11 #include <asm/asm.h>
-6
arch/x86/include/asm/paravirt_types.h
··· 11 11 #include <asm/pgtable_types.h> 12 12 #include <asm/nospec-branch.h> 13 13 14 - struct page; 15 14 struct thread_struct; 16 - struct desc_ptr; 17 - struct tss_struct; 18 15 struct mm_struct; 19 - struct desc_struct; 20 16 struct task_struct; 21 17 struct cpumask; 22 18 struct flush_tlb_info; 23 - struct mmu_gather; 24 19 struct vm_area_struct; 25 20 26 21 /* ··· 200 205 #endif 201 206 } __no_randomize_layout; 202 207 203 - struct arch_spinlock; 204 208 #ifdef CONFIG_SMP 205 209 #include <asm/spinlock_types.h> 206 210 #endif