From 7c46bc3630aa5be5cbbd07eb1032cea3cec9081a Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 25 Jul 2019 04:36:15 +0000 Subject: [PATCH] scst: Backport {init,destroy}_rcu_head() git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8484 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scst/include/backport.h b/scst/include/backport.h index 470740508..5f3be247d 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -1134,6 +1134,15 @@ typedef void (*rcu_callback_t)(struct rcu_head *); __kfree_rcu(&((ptr)->rcu_head), offsetof(typeof(*(ptr)), rcu_head)) #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 16, 0) +/* + * See also commit 546a9d8519ed ("rcu: Export debug_init_rcu_head() and and + * debug_init_rcu_head()") # v3.16. + */ +static inline void init_rcu_head(struct rcu_head *head) { } +static inline void destroy_rcu_head(struct rcu_head *head) { } +#endif + /* */ /* commit ed082d36 */