diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2012-05-25 17:25:58 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2012-07-02 15:34:24 -0400 |
commit | 28f5c693d03530eb15c5354f758b789189b98c37 (patch) | |
tree | 91f226e7afdceb3d62ba51505883dc260619c99e /include/linux/rcupdate.h | |
parent | 2a3fa843b555d202e682bf08c65ee1a4a93c79cf (diff) |
rcu: Remove function versions of __kfree_rcu and __is_kfree_rcu_offset
Commit d8169d4c (Make __kfree_rcu() less dependent on compiler choices)
added cpp macro versions of __kfree_rcu() and __is_kfree_rcu_offset(),
but failed to remove the old inline-function versions. This commit does
this cleanup.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'include/linux/rcupdate.h')
-rw-r--r-- | include/linux/rcupdate.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index 698555ebf49..31568c73452 100644 --- a/include/linux/rcupdate.h +++ b/include/linux/rcupdate.h | |||
@@ -916,24 +916,6 @@ static inline notrace void rcu_read_unlock_sched_notrace(void) | |||
916 | #define RCU_POINTER_INITIALIZER(p, v) \ | 916 | #define RCU_POINTER_INITIALIZER(p, v) \ |
917 | .p = (typeof(*v) __force __rcu *)(v) | 917 | .p = (typeof(*v) __force __rcu *)(v) |
918 | 918 | ||
919 | static __always_inline bool __is_kfree_rcu_offset(unsigned long offset) | ||
920 | { | ||
921 | return offset < 4096; | ||
922 | } | ||
923 | |||
924 | static __always_inline | ||
925 | void __kfree_rcu(struct rcu_head *head, unsigned long offset) | ||
926 | { | ||
927 | typedef void (*rcu_callback)(struct rcu_head *); | ||
928 | |||
929 | BUILD_BUG_ON(!__builtin_constant_p(offset)); | ||
930 | |||
931 | /* See the kfree_rcu() header comment. */ | ||
932 | BUILD_BUG_ON(!__is_kfree_rcu_offset(offset)); | ||
933 | |||
934 | kfree_call_rcu(head, (rcu_callback)offset); | ||
935 | } | ||
936 | |||
937 | /* | 919 | /* |
938 | * Does the specified offset indicate that the corresponding rcu_head | 920 | * Does the specified offset indicate that the corresponding rcu_head |
939 | * structure can be handled by kfree_rcu()? | 921 | * structure can be handled by kfree_rcu()? |