* [RCU]: preemptible RCU: sparse annotations
@ 2008-01-30 19:44 Patrick McHardy
2008-01-30 23:25 ` Paul E. McKenney
0 siblings, 1 reply; 2+ messages in thread
From: Patrick McHardy @ 2008-01-30 19:44 UTC (permalink / raw)
To: paulmck, dipankar; +Cc: Linux Kernel Mailing List
[-- Attachment #1: Type: text/plain, Size: 53 bytes --]
Annotate rcu_read_lock/rcu_read_unlock for sparse.
[-- Attachment #2: x --]
[-- Type: text/plain, Size: 614 bytes --]
[RCU]: preemptible RCU: sparse annotations
Signed-off-by: Patrick McHardy <kaber@trash.net>
diff --git a/include/linux/rcupreempt.h b/include/linux/rcupreempt.h
index ece8eb3..60c2a03 100644
--- a/include/linux/rcupreempt.h
+++ b/include/linux/rcupreempt.h
@@ -46,8 +46,8 @@
#define rcu_bh_qsctr_inc(cpu)
#define call_rcu_bh(head, rcu) call_rcu(head, rcu)
-extern void __rcu_read_lock(void);
-extern void __rcu_read_unlock(void);
+extern void __rcu_read_lock(void) __acquires(RCU);
+extern void __rcu_read_unlock(void) __releases(RCU);
extern int rcu_pending(int cpu);
extern int rcu_needs_cpu(int cpu);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RCU]: preemptible RCU: sparse annotations
2008-01-30 19:44 [RCU]: preemptible RCU: sparse annotations Patrick McHardy
@ 2008-01-30 23:25 ` Paul E. McKenney
0 siblings, 0 replies; 2+ messages in thread
From: Paul E. McKenney @ 2008-01-30 23:25 UTC (permalink / raw)
To: Patrick McHardy; +Cc: dipankar, Linux Kernel Mailing List
On Wed, Jan 30, 2008 at 08:44:42PM +0100, Patrick McHardy wrote:
> Annotate rcu_read_lock/rcu_read_unlock for sparse.
>
>
> [RCU]: preemptible RCU: sparse annotations
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
> Signed-off-by: Patrick McHardy <kaber@trash.net>
>
> diff --git a/include/linux/rcupreempt.h b/include/linux/rcupreempt.h
> index ece8eb3..60c2a03 100644
> --- a/include/linux/rcupreempt.h
> +++ b/include/linux/rcupreempt.h
> @@ -46,8 +46,8 @@
> #define rcu_bh_qsctr_inc(cpu)
> #define call_rcu_bh(head, rcu) call_rcu(head, rcu)
>
> -extern void __rcu_read_lock(void);
> -extern void __rcu_read_unlock(void);
> +extern void __rcu_read_lock(void) __acquires(RCU);
> +extern void __rcu_read_unlock(void) __releases(RCU);
> extern int rcu_pending(int cpu);
> extern int rcu_needs_cpu(int cpu);
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-01-30 23:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-30 19:44 [RCU]: preemptible RCU: sparse annotations Patrick McHardy
2008-01-30 23:25 ` Paul E. McKenney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox