From: Steven Rostedt Date: Fri, 4 May 2012 13:26:16 +0000 (-0400) Subject: ftrace/x86: Use asm/kprobes.h instead of linux/kprobes.h X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=59a094c994a138049b41a44bc29cff9407d51c5b;p=linux-beck.git ftrace/x86: Use asm/kprobes.h instead of linux/kprobes.h If CONFIG_KPROBES is not set, then linux/kprobes.h will not include asm/kprobes.h needed by x86/ftrace.c for the BREAKPOINT macro. The x86/ftrace.c file should just include asm/kprobes.h as it does not need the rest of kprobes. Reported-by: Ingo Molnar Cc: Masami Hiramatsu Signed-off-by: Steven Rostedt --- diff --git a/arch/x86/kernel/ftrace.c b/arch/x86/kernel/ftrace.c index cf2d03ec1793..4243e8bbdcb1 100644 --- a/arch/x86/kernel/ftrace.c +++ b/arch/x86/kernel/ftrace.c @@ -20,11 +20,11 @@ #include #include #include -#include #include #include +#include #include #include