parisc/kernel/ftrace: Remove function callback casts
authorOscar Carter <oscar.carter@gmx.com>
Sat, 4 Jul 2020 15:50:57 +0000 (17:50 +0200)
committerHelge Deller <deller@gmx.de>
Tue, 11 Aug 2020 10:06:39 +0000 (12:06 +0200)
In an effort to enable -Wcast-function-type in the top-level Makefile to
support Control Flow Integrity builds, remove all the function callback
casts.

Co-developed-by: Helge Deller <deller@gmx.de>
Signed-off-by: Oscar Carter <oscar.carter@gmx.com>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/ftrace.c

index 1df0f67ed6671cc720ccb1e30c14fb55f359b50d..4bab21c710557b929195b8c2e327c39f7c7290c8 100644 (file)
@@ -64,7 +64,8 @@ void notrace __hot ftrace_function_trampoline(unsigned long parent,
                                function_trace_op, regs);
 
 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
-       if (ftrace_graph_return != (trace_func_graph_ret_t) ftrace_stub ||
+       if (dereference_function_descriptor(ftrace_graph_return) !=
+           dereference_function_descriptor(ftrace_stub) ||
            ftrace_graph_entry != ftrace_graph_entry_stub) {
                unsigned long *parent_rp;