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

x86/asm/ftrace: Mark function_hook as function

Relabel function_hook to be marked really as a function. It is called
from C and has the same expectations towards the stack etc.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: linux-arch@vger.kernel.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: "Steven Rostedt (VMware)" <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: x86-ml <x86@kernel.org>
Link: https://lkml.kernel.org/r/20191011115108.12392-22-jslaby@suse.cz

authored by

Jiri Slaby and committed by
Borislav Petkov
f13ad88a ef1e0315

+2 -2
+2 -2
arch/x86/kernel/ftrace_32.S
··· 21 21 # define MCOUNT_FRAME 0 /* using frame = false */ 22 22 #endif 23 23 24 - ENTRY(function_hook) 24 + SYM_FUNC_START(function_hook) 25 25 ret 26 - END(function_hook) 26 + SYM_FUNC_END(function_hook) 27 27 28 28 ENTRY(ftrace_caller) 29 29