aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <[email protected]>2018-07-26 02:28:56 +0000
committerSteven Rostedt (VMware) <[email protected]>2018-07-26 02:33:50 +0000
commit2519c1bbe38d7acacc9aacba303ca6f97482ed53 (patch)
tree6d60632f0a1cbd4fb9a9c79462e6a0887bd4c19a /lib/debugobjects.c
parenttracing: Fix possible double free in event_enable_trigger_func() (diff)
downloadkernel-2519c1bbe38d7acacc9aacba303ca6f97482ed53.tar.gz
kernel-2519c1bbe38d7acacc9aacba303ca6f97482ed53.zip
tracing: Quiet gcc warning about maybe unused link variable
Commit 57ea2a34adf4 ("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: [email protected] Fixes: 57ea2a34adf4 ("tracing/kprobes: Fix trace_probe flags on enable_trace_kprobe() failure") Reported-by: kbuild test robot <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions