Re: [PATCH] x86/ftrace: avoid an unused-function warning

2019-03-04 Thread Arnd Bergmann
On Mon, Mar 4, 2019 at 10:43 PM Steven Rostedt wrote: > On Mon, 4 Mar 2019 21:07:39 +0100 Arnd Bergmann wrote: ... > Also, it's basically identical to ftrace_call_replace(). I'm going to > combine the two and move the jmp replace and have it do this instead. Sounds good. >

Re: [PATCH] x86/ftrace: avoid an unused-function warning

2019-03-04 Thread Steven Rostedt
On Mon, 4 Mar 2019 21:07:39 +0100 Arnd Bergmann wrote: > Depending on the configuration, ftrace_jmp_replace() sometimes > has no callers at all, since one of the users was removed: > > arch/x86/kernel/ftrace.c:669:23: error: 'ftrace_jmp_replace' defined but not > used

[PATCH] x86/ftrace: avoid an unused-function warning

2019-03-04 Thread Arnd Bergmann
Depending on the configuration, ftrace_jmp_replace() sometimes has no callers at all, since one of the users was removed: arch/x86/kernel/ftrace.c:669:23: error: 'ftrace_jmp_replace' defined but not used [-Werror=unused-function] Rather than trying to figure out the correct #ifdef check for