scst: Fix a RHEL 6 compiler warning

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6771 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2015-12-18 12:11:18 +00:00
parent 39c3b79497
commit 9294102efe

View File

@@ -367,7 +367,7 @@ int no_printk(const char *s, ...) { return 0; }
/* <linux/rcupdate.h> */
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 0, 0)
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 0, 0) && !defined(kfree_rcu)
typedef void (*rcu_callback_t)(struct rcu_head *);
#define __is_kfree_rcu_offset(offset) ((offset) < 4096)
#define kfree_call_rcu(head, rcb) call_rcu(head, rcb)