mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 18:51:27 +00:00
scst: Backport {init,destroy}_rcu_head()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8484 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -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
|
||||
|
||||
/* <rdma/ib_verbs.h> */
|
||||
|
||||
/* commit ed082d36 */
|
||||
|
||||
Reference in New Issue
Block a user