summaryrefslogtreecommitdiffstats
path: root/arch/nds32/include
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2021-10-27 12:51:01 -0400
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2021-10-27 13:00:17 -0400
commit4e84dc47bb48accbbeeba4e6bb3f31aa7895323c (patch)
tree412d654fe10f6ee1171ffbc4808edb288e0409d4 /arch/nds32/include
parented65df63a39a3f6ed04f7258de8b6789e5021c18 (diff)
downloadlinux-stable-4e84dc47bb48accbbeeba4e6bb3f31aa7895323c.tar.gz
linux-stable-4e84dc47bb48accbbeeba4e6bb3f31aa7895323c.tar.bz2
linux-stable-4e84dc47bb48accbbeeba4e6bb3f31aa7895323c.zip
ftrace/nds32: Update the proto for ftrace_trace_function to match ftrace_stub
The ftrace callback prototype was changed to pass a special ftrace_regs instead of pt_regs as the last parameter, but the static ftrace for nds32 missed updating ftrace_trace_function and this caused a warning when compared to ftrace_stub: ../arch/nds32/kernel/ftrace.c: In function '_mcount': ../arch/nds32/kernel/ftrace.c:24:35: error: comparison of distinct pointer types lacks a cast [-Werror] 24 | if (ftrace_trace_function != ftrace_stub) | ^~ Link: https://lore.kernel.org/all/20211027055554.19372-1-rdunlap@infradead.org/ Link: https://lkml.kernel.org/r/20211027125101.33449969@gandalf.local.home Cc: Ingo Molnar <mingo@kernel.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Nick Hu <nickhu@andestech.com> Cc: Greentime Hu <green.hu@gmail.com> Cc: Vincent Chen <deanbo422@gmail.com> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: stable@vger.kernel.org Fixes: d19ad0775dcd6 ("ftrace: Have the callbacks receive a struct ftrace_regs instead of pt_regs") Reported-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'arch/nds32/include')
0 files changed, 0 insertions, 0 deletions