Message ID | 20091019105924.3988.24503.stgit@mchn012c.ww002.siemens.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/external-module-compat-comm.h b/external-module-compat-comm.h index a8f8a2f..cec117b 100644 --- a/external-module-compat-comm.h +++ b/external-module-compat-comm.h @@ -1003,3 +1003,13 @@ int schedule_hrtimeout(ktime_t *expires, const enum hrtimer_mode mode); struct mmu_notifier {}; #endif #endif + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27) +static inline void hlist_del_init_rcu(struct hlist_node *n) +{ + if (!hlist_unhashed(n)) { + __hlist_del(n); + n->pprev = NULL; + } +} +#endif