diff options
author | Boqun Feng <boqun.feng@gmail.com> | 2015-07-29 13:29:39 +0800 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-10-06 11:08:19 -0700 |
commit | db3e8db45e1cbf8cc22f1083a559d78eb91ccd63 (patch) | |
tree | d5923e24bdcd2958d4d06e635132b964e60cc5e8 /kernel/rcu/rcutorture.c | |
parent | b6a4ae766e3133a4db73fabc81e522d1601cb623 (diff) | |
download | lwn-db3e8db45e1cbf8cc22f1083a559d78eb91ccd63.tar.gz lwn-db3e8db45e1cbf8cc22f1083a559d78eb91ccd63.zip |
rcu: Use call_rcu_func_t to replace explicit type equivalents
We have had the call_rcu_func_t typedef for a quite awhile, but we still
use explicit function pointer types in some places. These types can
confuse cscope and can be hard to read. This patch therefore replaces
these types with the call_rcu_func_t typedef.
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'kernel/rcu/rcutorture.c')
-rw-r--r-- | kernel/rcu/rcutorture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index 51c8e7f02f48..f9ec6cbe77d3 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c @@ -252,7 +252,7 @@ struct rcu_torture_ops { void (*exp_sync)(void); unsigned long (*get_state)(void); void (*cond_sync)(unsigned long oldstate); - void (*call)(struct rcu_head *head, void (*func)(struct rcu_head *rcu)); + call_rcu_func_t call; void (*cb_barrier)(void); void (*fqs)(void); void (*stats)(void); |