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)