]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
rcu: Use call_rcu_func_t to replace explicit type equivalents
authorBoqun Feng <boqun.feng@gmail.com>
Wed, 29 Jul 2015 05:29:39 +0000 (13:29 +0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 6 Oct 2015 18:08:19 +0000 (11:08 -0700)
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>
kernel/rcu/rcutorture.c
kernel/rcu/tree.h

index 51c8e7f02f48b65955b94118d42610515eb3126d..f9ec6cbe77d365f37c76768e157c046db48f2b1f 100644 (file)
@@ -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);
index ad11529375cce82b7184b08962d68ddd2040eee2..0c33c82cec643ddba18dc2894f034c7af48aaad6 100644 (file)
@@ -464,8 +464,7 @@ struct rcu_state {
                                                /*  shut bogus gcc warning) */
        u8 flavor_mask;                         /* bit in flavor mask. */
        struct rcu_data __percpu *rda;          /* pointer of percu rcu_data. */
-       void (*call)(struct rcu_head *head,     /* call_rcu() flavor. */
-                    void (*func)(struct rcu_head *head));
+       call_rcu_func_t call;                   /* call_rcu() flavor. */
 
        /* The following fields are guarded by the root rcu_node's lock. */