Re: [PATCH v5 05/12] x86/retpoline/ftrace: Convert ftrace assembler indirect jumps

From: Linus Torvalds
Date: Sat Jan 06 2018 - 13:13:48 EST


On Sat, Jan 6, 2018 at 3:49 AM, David Woodhouse <dwmw@xxxxxxxxxxxx> wrote:
>
> - call *ftrace_trace_function
> + movl ftrace_trace_function, %ecx
> + NOSPEC_CALL %ecx

Can't we just do

NOSPEC_CALL ftrace_trace_function

now?

[ Goes off and looks ]

Oh. The AMD lfence version wants a register. Oh well.

Linus