Skip to content

Commit ad68670

Browse files
samitolvanenrostedt
authored andcommitted
x86/ftrace: Include <asm/ptrace.h>
<asm/ftrace.h> uses struct pt_regs in several places. Include <asm/ptrace.h> to ensure it's visible. This is needed to make sure object files that only include <asm/asm-prototypes.h> compile. Cc: Mark Rutland <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Dave Hansen <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Link: https://lore.kernel.org/[email protected] Suggested-by: Masahiro Yamada <[email protected]> Signed-off-by: Sami Tolvanen <[email protected]> Acked-by: Masami Hiramatsu (Google) <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 3d7b8ea commit ad68670

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/x86/include/asm/ftrace.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#ifndef _ASM_X86_FTRACE_H
33
#define _ASM_X86_FTRACE_H
44

5+
#include <asm/ptrace.h>
6+
57
#ifdef CONFIG_FUNCTION_TRACER
68
#ifndef CC_USING_FENTRY
79
# error Compiler does not support fentry?

0 commit comments

Comments
 (0)