X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Flinux-2.6%2Fcompat-2.6%2Finclude%2Flinux%2Frcupdate.h;h=99459ea71f69e624506a64de180f834b51b6e34d;hb=cf6cb3a2ab31a16b01e18e1db2d601e92f2a405e;hp=f96299f4c5822e070dbe9e811405604df6401232;hpb=303708cc8417959bbb7662fa52e0761a48bacbb1;p=sliver-openvswitch.git diff --git a/datapath/linux-2.6/compat-2.6/include/linux/rcupdate.h b/datapath/linux-2.6/compat-2.6/include/linux/rcupdate.h index f96299f4c..99459ea71 100644 --- a/datapath/linux-2.6/compat-2.6/include/linux/rcupdate.h +++ b/datapath/linux-2.6/compat-2.6/include/linux/rcupdate.h @@ -11,7 +11,7 @@ #define rcu_dereference_protected(p, c) (p) #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,34) +#ifndef HAVE_RCU_READ_LOCK_HELD static inline int rcu_read_lock_held(void) { return 1;