diff options
author | Muchun Song <songmuchun@bytedance.com> | 2020-08-05 19:20:46 +0200 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2020-08-06 15:16:27 +0200 |
commit | 10de795a5addd1962406796a6e13ba6cc0fc6bee (patch) | |
tree | f1af3e4491e15b702a0c167860ce15601867cbb1 /kernel/compat.c | |
parent | tracing: Use trace_sched_process_free() instead of exit() for pid tracing (diff) | |
download | linux-10de795a5addd1962406796a6e13ba6cc0fc6bee.tar.xz linux-10de795a5addd1962406796a6e13ba6cc0fc6bee.zip |
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/20200805142136.0331f7ea@canb.auug.org.au
Link: https://lkml.kernel.org/r/20200805172046.19066-1-songmuchun@bytedance.com
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Fixes: 0cb2f1372baa ("kprobes: Fix NULL pointer dereference at kprobe_ftrace_handler")
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Muchun Song <songmuchun@bytedance.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/compat.c')
0 files changed, 0 insertions, 0 deletions