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

x86: fix missing includes/forward declarations

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>

+9
+1
arch/x86/include/asm/debugreg.h
··· 5 5 #include <linux/bug.h> 6 6 #include <linux/percpu.h> 7 7 #include <uapi/asm/debugreg.h> 8 + #include <asm/cpufeature.h> 8 9 9 10 DECLARE_PER_CPU(unsigned long, cpu_dr7); 10 11
+4
arch/x86/include/asm/paravirt.h
··· 6 6 7 7 #include <asm/paravirt_types.h> 8 8 9 + #ifndef __ASSEMBLY__ 10 + struct mm_struct; 11 + #endif 12 + 9 13 #ifdef CONFIG_PARAVIRT 10 14 #include <asm/pgtable_types.h> 11 15 #include <asm/asm.h>
+2
arch/x86/include/asm/paravirt_types.h
··· 3 3 #define _ASM_X86_PARAVIRT_TYPES_H 4 4 5 5 #ifndef __ASSEMBLY__ 6 + #include <linux/types.h> 7 + 6 8 /* These all sit in the .parainstructions section to tell us what to patch. */ 7 9 struct paravirt_patch_site { 8 10 u8 *instr; /* original instructions */
+1
arch/x86/kernel/fpu/bugs.c
··· 2 2 /* 3 3 * x86 FPU bug checks: 4 4 */ 5 + #include <asm/cpufeature.h> 5 6 #include <asm/fpu/api.h> 6 7 7 8 /*
+1
arch/x86/lib/cache-smp.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 + #include <asm/paravirt.h> 2 3 #include <linux/smp.h> 3 4 #include <linux/export.h> 4 5