* [PATCH v2] kernel: events: add releases() annotation
@ 2019-12-16 13:14 Jules Irenge
0 siblings, 0 replies; only message in thread
From: Jules Irenge @ 2019-12-16 13:14 UTC (permalink / raw)
To: bokun.feng
Cc: peterz, mingo, acme, mark.rutland, alexander.shishkin, jolsa,
namhyung, linux-kernel, Jules Irenge
Add releases() annotation to remove issue detected by sparse tool.
warning: context imbalance in perf_output_end() - unexpected unlock
Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
---
Change
Added RCU as an argument in the releases() annotation
kernel/events/ring_buffer.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/events/ring_buffer.c b/kernel/events/ring_buffer.c
index 7ffd5c763f93..3381e70fb0f5 100644
--- a/kernel/events/ring_buffer.c
+++ b/kernel/events/ring_buffer.c
@@ -295,6 +295,7 @@ unsigned int perf_output_skip(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.23.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-12-16 13:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-16 13:14 [PATCH v2] kernel: events: add releases() annotation Jules Irenge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®