1
0
Fork 0
remarkable-linux/kernel/trace
Steven Rostedt (VMware) 4681e8820f tracing: Quiet gcc warning about maybe unused link variable
commit 2519c1bbe3 upstream.

Commit 57ea2a34ad ("tracing/kprobes: Fix trace_probe flags on
enable_trace_kprobe() failure") added an if statement that depends on another
if statement that gcc doesn't see will initialize the "link" variable and
gives the warning:

 "warning: 'link' may be used uninitialized in this function"

It is really a false positive, but to quiet the warning, and also to make
sure that it never actually is used uninitialized, initialize the "link"
variable to NULL and add an if (!WARN_ON_ONCE(!link)) where the compiler
thinks it could be used uninitialized.

Cc: stable@vger.kernel.org
Fixes: 57ea2a34ad ("tracing/kprobes: Fix trace_probe flags on enable_trace_kprobe() failure")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-08-03 07:50:21 +02:00
..
Kconfig
Makefile
blktrace.c
bpf_trace.c
ftrace.c
power-traces.c
ring_buffer.c ring-buffer: Check if memory is available before allocation 2018-04-24 09:36:32 +02:00
ring_buffer_benchmark.c
rpm-traces.c
trace.c tracing: Reorder display of TGID to be after PID 2018-07-17 11:39:30 +02:00
trace.h tracing: Make the snapshot trigger work with instances 2018-06-05 11:41:56 +02:00
trace_benchmark.c
trace_benchmark.h
trace_branch.c
trace_clock.c
trace_entries.h tracing: Fix missing tab for hwlat_detector print format 2018-04-29 11:33:17 +02:00
trace_event_perf.c
trace_events.c
trace_events_filter.c tracing: Fix regex_match_front() to not over compare the test string 2018-05-16 10:10:27 +02:00
trace_events_filter_test.h
trace_events_hist.c
trace_events_trigger.c tracing: Fix possible double free in event_enable_trigger_func() 2018-08-03 07:50:21 +02:00
trace_export.c
trace_functions.c
trace_functions_graph.c tracing: Fix missing return symbol in function_graph output 2018-07-11 16:29:14 +02:00
trace_hwlat.c
trace_irqsoff.c
trace_kdb.c
trace_kprobe.c tracing: Quiet gcc warning about maybe unused link variable 2018-08-03 07:50:21 +02:00
trace_mmiotrace.c
trace_nop.c
trace_output.c tracing: Reorder display of TGID to be after PID 2018-07-17 11:39:30 +02:00
trace_output.h
trace_printk.c
trace_probe.c tracing: probeevent: Fix to support minus offset from symbol 2018-03-28 18:24:42 +02:00
trace_probe.h tracing: probeevent: Fix to support minus offset from symbol 2018-03-28 18:24:42 +02:00
trace_sched_switch.c
trace_sched_wakeup.c
trace_selftest.c
trace_selftest_dynamic.c
trace_seq.c
trace_stack.c
trace_stat.c
trace_stat.h
trace_syscalls.c
trace_uprobe.c tracing/uprobe_event: Fix strncpy corner case 2018-05-16 10:10:31 +02:00
tracing_map.c
tracing_map.h