Skip to content

Commit 875102e

Browse files
Oscar Carterhdeller
authored andcommitted
parisc/kernel/ftrace: Remove function callback casts
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 <[email protected]> Signed-off-by: Oscar Carter <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent 60e5da6 commit 875102e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/parisc/kernel/ftrace.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ void notrace __hot ftrace_function_trampoline(unsigned long parent,
6464
function_trace_op, regs);
6565

6666
#ifdef CONFIG_FUNCTION_GRAPH_TRACER
67-
if (ftrace_graph_return != (trace_func_graph_ret_t) ftrace_stub ||
67+
if (dereference_function_descriptor(ftrace_graph_return) !=
68+
dereference_function_descriptor(ftrace_stub) ||
6869
ftrace_graph_entry != ftrace_graph_entry_stub) {
6970
unsigned long *parent_rp;
7071

0 commit comments

Comments
 (0)