From 9294102efe5f528676c59a9c9d4816ed4eae691b Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 18 Dec 2015 12:11:18 +0000 Subject: [PATCH] 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 --- scst/include/backport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/include/backport.h b/scst/include/backport.h index 8f7c53478..d379b735b 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -367,7 +367,7 @@ int no_printk(const char *s, ...) { return 0; } /* */ -#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)