aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcu/tree.h
diff options
context:
space:
mode:
authorBoqun Feng <boqun.feng@gmail.com>2015-07-29 01:29:39 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2015-10-06 14:08:19 -0400
commitdb3e8db45e1cbf8cc22f1083a559d78eb91ccd63 (patch)
treed5923e24bdcd2958d4d06e635132b964e60cc5e8 /kernel/rcu/tree.h
parentb6a4ae766e3133a4db73fabc81e522d1601cb623 (diff)
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/tree.h')
-rw-r--r--kernel/rcu/tree.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h
index ad11529375cc..0c33c82cec64 100644
--- a/kernel/rcu/tree.h
+++ b/kernel/rcu/tree.h
@@ -464,8 +464,7 @@ struct rcu_state {
464 /* shut bogus gcc warning) */ 464 /* shut bogus gcc warning) */
465 u8 flavor_mask; /* bit in flavor mask. */ 465 u8 flavor_mask; /* bit in flavor mask. */
466 struct rcu_data __percpu *rda; /* pointer of percu rcu_data. */ 466 struct rcu_data __percpu *rda; /* pointer of percu rcu_data. */
467 void (*call)(struct rcu_head *head, /* call_rcu() flavor. */ 467 call_rcu_func_t call; /* call_rcu() flavor. */
468 void (*func)(struct rcu_head *head));
469 468
470 /* The following fields are guarded by the root rcu_node's lock. */ 469 /* The following fields are guarded by the root rcu_node's lock. */
471 470