Steven Rostedt (VMware)
2519c1bbe3
tracing: Quiet gcc warning about maybe unused link variable
...
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 >
2018-07-25 22:33:50 -04:00
..
2018-07-12 14:00:54 -07:00
2018-06-15 18:10:01 -03:00
2018-06-15 07:15:28 +09:00
2018-06-12 16:19:22 -07:00
2018-06-28 14:00:40 +02:00
2018-06-27 09:55:58 +02:00
2018-06-08 18:56:02 +09:00
2018-06-22 14:22:00 +02:00
2018-04-17 13:42:48 +02:00
2018-06-24 19:36:16 +08:00
2018-06-15 18:10:01 -03:00
2018-06-06 16:04:55 -07:00
2018-06-12 16:19:22 -07:00
2018-07-15 23:47:33 +02:00
2018-07-10 22:12:47 +02:00
2018-07-25 22:33:50 -04:00
2018-01-04 16:45:09 -08:00
2018-02-06 18:32:44 -08:00
2018-05-18 14:58:22 +02:00
2018-05-18 14:58:22 +02:00
2018-06-17 05:06:18 +09:00
2018-05-14 17:24:18 -04:00
2018-02-23 11:22:22 -05:00
2018-05-18 15:47:54 -04:00
2018-05-21 14:27:43 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-06-04 20:27:54 -07:00
2017-07-31 13:09:49 +02:00
2018-03-15 20:34:40 +01:00
2018-06-07 17:34:37 -07:00
2017-05-18 10:30:19 -06:00
2018-04-27 14:34:51 +02:00
2018-05-16 07:23:35 +02:00
2017-11-02 11:10:55 +01:00
2018-05-16 07:23:35 +02:00
2018-04-02 20:14:51 +02:00
2018-02-21 16:54:06 +01:00
2018-06-12 16:19:22 -07:00
2018-07-21 15:24:03 -07:00
2017-11-02 11:10:55 +01:00
2018-02-06 18:32:46 -08:00
2017-12-14 16:00:49 -08:00
2018-06-07 17:34:39 -07:00
2018-05-15 23:08:33 -07:00
2018-01-08 19:43:15 +01:00
2018-03-20 08:57:17 +01:00
2018-02-01 13:36:15 -08:00
2017-11-02 11:10:55 +01:00
2018-06-15 07:55:24 +09:00
2018-06-15 07:55:24 +09:00
2018-06-12 16:19:22 -07:00
2017-11-02 11:10:55 +01:00
2018-04-02 20:15:01 +02:00
2017-09-08 18:26:51 -07:00
2018-04-25 10:27:56 -04:00
2017-07-12 16:25:59 -07:00
2018-07-03 09:17:30 +02:00
2018-06-14 08:50:37 +02:00
2018-05-22 06:59:39 -07:00
2018-06-16 07:36:39 +09:00
2018-01-05 18:43:00 +11:00
2018-06-14 12:21:18 +09:00
2018-04-11 10:28:37 -07:00
2018-04-03 19:15:32 -07:00
2018-04-11 10:28:39 -07:00
2018-02-06 18:32:46 -08:00
2017-11-02 11:10:55 +01:00
2017-11-17 16:10:04 -08:00
2018-06-15 07:55:24 +09:00
2018-06-08 17:21:52 -07:00
2018-07-10 22:18:52 +02:00
2018-06-06 16:34:00 -07:00
2018-06-10 06:14:01 +02:00
2017-11-08 11:13:50 +01:00
2017-10-04 10:53:54 +02:00
2017-11-02 11:10:55 +01:00
2018-07-17 11:12:43 -07:00
2018-07-15 12:12:45 +02:00
2018-06-10 10:17:09 -07:00
2018-06-07 17:34:34 -07:00
2018-04-16 11:26:49 +02:00
2018-06-12 16:19:22 -07:00
2017-12-17 13:57:15 +01:00
2018-02-06 18:32:46 -08:00
2017-10-20 11:02:54 +02:00
2018-05-15 10:27:29 -07:00
2018-05-28 12:49:51 -04:00
2018-04-05 21:36:27 -07:00
2018-04-02 20:15:59 +02:00
2018-04-02 20:15:30 +02:00
2018-06-07 16:56:28 -04:00
2017-08-29 15:14:38 +02:00
2018-06-12 16:19:22 -07:00
2018-02-22 10:21:02 -08:00
2018-04-11 10:28:35 -07:00
2017-11-04 08:53:04 +01:00
2017-11-08 10:17:15 +01:00
2018-05-18 08:47:13 -07:00
2018-06-12 16:19:22 -07:00