projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] rcu: add lock annotations to rcu{,_bh}_torture_read_{lock,unlock}
[powerpc.git]
/
kernel
/
rcutorture.c
diff --git
a/kernel/rcutorture.c
b/kernel/rcutorture.c
index
4d1c3d2
..
4f2c427
100644
(file)
--- a/
kernel/rcutorture.c
+++ b/
kernel/rcutorture.c
@@
-192,13
+192,13
@@
static struct rcu_torture_ops *cur_ops = NULL;
* Definitions for rcu torture testing.
*/
* Definitions for rcu torture testing.
*/
-static int rcu_torture_read_lock(void)
+static int rcu_torture_read_lock(void)
__acquires(RCU)
{
rcu_read_lock();
return 0;
}
{
rcu_read_lock();
return 0;
}
-static void rcu_torture_read_unlock(int idx)
+static void rcu_torture_read_unlock(int idx)
__releases(RCU)
{
rcu_read_unlock();
}
{
rcu_read_unlock();
}
@@
-250,13
+250,13
@@
static struct rcu_torture_ops rcu_ops = {
* Definitions for rcu_bh torture testing.
*/
* Definitions for rcu_bh torture testing.
*/
-static int rcu_bh_torture_read_lock(void)
+static int rcu_bh_torture_read_lock(void)
__acquires(RCU_BH)
{
rcu_read_lock_bh();
return 0;
}
{
rcu_read_lock_bh();
return 0;
}
-static void rcu_bh_torture_read_unlock(int idx)
+static void rcu_bh_torture_read_unlock(int idx)
__releases(RCU_BH)
{
rcu_read_unlock_bh();
}
{
rcu_read_unlock_bh();
}