[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <fb329344d8dbf825c344c6fd655dbc988b5704af.1581282103.git.jbi.octave@gmail.com>
Date: Sun, 9 Feb 2020 22:33:20 +0000
From: Jules Irenge <jbi.octave@...il.com>
To: boqun.feng@...il.com
Cc: dvhart@...radead.org, peterz@...radead.org, mingo@...hat.com,
acme@...nel.org, mark.rutland@....com,
alexander.shishkin@...ux.intel.com, jolsa@...hat.com,
namhyung@...nel.org, linux-kernel@...r.kernel.org,
Jules Irenge <jbi.octave@...il.com>
Subject: [PATCH 04/11] perf/ring_buffer: Add missing annotation to perf_output_end()
Sparse reports a warning at perf_output_end()
warning: context imbalance in perf_output_end() - unexpected unlock
The root cause is a missing annotation for perf_output_end()
Add the missing __releases(RCU) annotation
Signed-off-by: Jules Irenge <jbi.octave@...il.com>
---
kernel/events/ring_buffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/events/ring_buffer.c b/kernel/events/ring_buffer.c
index 7ffd5c763f93..c09edc49a4fc 100644
--- a/kernel/events/ring_buffer.c
+++ b/kernel/events/ring_buffer.c
@@ -294,7 +294,7 @@ unsigned int perf_output_skip(struct perf_output_handle *handle,
return __output_skip(handle, NULL, len);
}
-void perf_output_end(struct perf_output_handle *handle)
+void perf_output_end(struct perf_output_handle *handle) __releases(RCU)
{
perf_output_put_handle(handle);
rcu_read_unlock();
--
2.24.1
Powered by blists - more mailing lists