diff mbox series

[v2,03/12] x86/ftrace: Explicitly include vmalloc.h for set_vm_flush_reset_perms()

Message ID 20191126165417.22423-4-sean.j.christopherson@intel.com (mailing list archive)
State Not Applicable, archived
Headers show
Series treewide: break dependencies on x86's RM header | expand

Commit Message

Sean Christopherson Nov. 26, 2019, 4:54 p.m. UTC
The inclusion of linux/vmalloc.h, which is required for its definition
of set_vm_flush_reset_perms(), is somehow dependent on asm/realmode.h
being included by asm/acpi.h.  Explicitly include linux/vmalloc.h so
that a future patch can drop the realmode.h include from asm/acpi.h
without breaking the build.

Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
---
 arch/x86/kernel/ftrace.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/arch/x86/kernel/ftrace.c b/arch/x86/kernel/ftrace.c
index 024c3053dbba..2009047bb015 100644
--- a/arch/x86/kernel/ftrace.c
+++ b/arch/x86/kernel/ftrace.c
@@ -23,6 +23,7 @@ 
 #include <linux/list.h>
 #include <linux/module.h>
 #include <linux/memory.h>
+#include <linux/vmalloc.h>
 
 #include <trace/syscall.h>