[for-next][PATCH 5/5] tracing: Fix sparse RCU warning

From: Steven Rostedt
Date: Thu Oct 29 2015 - 03:11:29 EST

From: "Steven Rostedt (Red Hat)" <rostedt@xxxxxxxxxxx>

p_start() and p_stop() are seq_file functions that match. Teach sparse to
know that rcu_read_lock_sched() that is taken by p_start() is released by

Reported-by: kbuild test robot <fengguang.wu@xxxxxxxxx>
Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx>
kernel/trace/trace_events.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
index 2b7fccd499c6..fb0261e90acc 100644
--- a/kernel/trace/trace_events.c
+++ b/kernel/trace/trace_events.c
@@ -938,6 +938,7 @@ static void t_stop(struct seq_file *m, void *p)

static void *p_start(struct seq_file *m, loff_t *pos)
+ __acquires(RCU)
struct trace_pid_list *pid_list;
struct trace_array *tr = m->private;
@@ -960,6 +961,7 @@ static void *p_start(struct seq_file *m, loff_t *pos)

static void p_stop(struct seq_file *m, void *p)
+ __releases(RCU)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/