]> granicus.if.org Git - ipset/commitdiff
Compatibility: define RCU_INIT_POINTER when __rcu is not defined
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Wed, 17 Dec 2014 07:04:19 +0000 (08:04 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Tue, 6 Jan 2015 07:24:48 +0000 (08:24 +0100)
kernel/include/linux/netfilter/ipset/ip_set_compat.h.in

index c33de443ccb241840bd01c9325a61490e559d388..64d61699255be28ec1d92fc303bdc5dd0761e8f8 100644 (file)
 
 #ifndef __rcu
 #define        __rcu
-#endif
+#define RCU_INIT_POINTER(p, v) \
+       do { \
+               p = v; \
+       } while (0)
+#else
 
 #ifndef RCU_INITIALIZER
 #define RCU_INITIALIZER(v)     (typeof(*(v)) __force __rcu *)(v)
@@ -72,6 +76,7 @@
                p = RCU_INITIALIZER(v); \
        } while (0)
 #endif
+#endif
 
 #ifdef CHECK_KCONFIG
 #ifndef CONFIG_SPARSE_RCU_POINTER