Re: [PATCH v2 03/10] x86: assembly, use SYM_FUNC_END for functions

From: Josh Poimboeuf
Date: Tue Mar 21 2017 - 10:48:59 EST


On Mon, Mar 20, 2017 at 01:32:15PM +0100, Jiri Slaby wrote:
> ENTRY(ftrace_caller)
> /* save_mcount_regs fills in first two parameters */
> @@ -184,11 +184,12 @@ GLOBAL(ftrace_epilogue)
> GLOBAL(ftrace_graph_call)
> jmp ftrace_stub
> #endif
> +SYM_FUNC_END(ftrace_caller)
>
> /* This is weak to keep gas from relaxing the jumps */
> WEAK(ftrace_stub)
> retq
> -END(ftrace_caller)
> +SYM_FUNC_END(ftrace_caller)

This gives ftrace_caller() two ends.

--
Josh