Commit a5a0abfd authored by Kent Overstreet's avatar Kent Overstreet

x86: fix missing includes/forward declarations

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent fc09b491
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include <linux/bug.h> #include <linux/bug.h>
#include <linux/percpu.h> #include <linux/percpu.h>
#include <uapi/asm/debugreg.h> #include <uapi/asm/debugreg.h>
#include <asm/cpufeature.h>
DECLARE_PER_CPU(unsigned long, cpu_dr7); DECLARE_PER_CPU(unsigned long, cpu_dr7);
......
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
#include <asm/paravirt_types.h> #include <asm/paravirt_types.h>
#ifndef __ASSEMBLY__
struct mm_struct;
#endif
#ifdef CONFIG_PARAVIRT #ifdef CONFIG_PARAVIRT
#include <asm/pgtable_types.h> #include <asm/pgtable_types.h>
#include <asm/asm.h> #include <asm/asm.h>
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
#define _ASM_X86_PARAVIRT_TYPES_H #define _ASM_X86_PARAVIRT_TYPES_H
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#include <linux/types.h>
/* These all sit in the .parainstructions section to tell us what to patch. */ /* These all sit in the .parainstructions section to tell us what to patch. */
struct paravirt_patch_site { struct paravirt_patch_site {
u8 *instr; /* original instructions */ u8 *instr; /* original instructions */
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
/* /*
* x86 FPU bug checks: * x86 FPU bug checks:
*/ */
#include <asm/cpufeature.h>
#include <asm/fpu/api.h> #include <asm/fpu/api.h>
/* /*
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
#include <asm/paravirt.h>
#include <linux/smp.h> #include <linux/smp.h>
#include <linux/export.h> #include <linux/export.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment