aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorMuchun Song <[email protected]>2020-08-06 01:20:46 +0800
committerSteven Rostedt (VMware) <[email protected]>2020-08-06 09:16:27 -0400
commit10de795a5addd1962406796a6e13ba6cc0fc6bee (patch)
treef1af3e4491e15b702a0c167860ce15601867cbb1 /scripts/gcc-plugins/randomize_layout_plugin.c
parentafcab636657421f7ebfa0783a91f90256bba0091 (diff)
kprobes: Fix compiler warning for !CONFIG_KPROBES_ON_FTRACE
Fix compiler warning(as show below) for !CONFIG_KPROBES_ON_FTRACE. kernel/kprobes.c: In function 'kill_kprobe': kernel/kprobes.c:1116:33: warning: statement with no effect [-Wunused-value] 1116 | #define disarm_kprobe_ftrace(p) (-ENODEV) | ^ kernel/kprobes.c:2154:3: note: in expansion of macro 'disarm_kprobe_ftrace' 2154 | disarm_kprobe_ftrace(p); Link: https://lore.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Reported-by: Stephen Rothwell <[email protected]> Fixes: 0cb2f1372baa ("kprobes: Fix NULL pointer dereference at kprobe_ftrace_handler") Acked-by: Masami Hiramatsu <[email protected]> Acked-by: John Fastabend <[email protected]> Signed-off-by: Muchun Song <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions