diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2014-12-17 08:04:19 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2015-01-06 08:24:48 +0100 |
commit | f5faf94ec994b470ad4a23daa0218a75c5003f46 (patch) | |
tree | 8603fe38c15f3a5333d651b6775f2f32929b02bd | |
parent | c350a7f39402ace2456abe609beb2e6d53b3127a (diff) | |
download | ipset-f5faf94ec994b470ad4a23daa0218a75c5003f46.tar.gz |
Compatibility: define RCU_INIT_POINTER when __rcu is not defined
-rw-r--r-- | kernel/include/linux/netfilter/ipset/ip_set_compat.h.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/include/linux/netfilter/ipset/ip_set_compat.h.in b/kernel/include/linux/netfilter/ipset/ip_set_compat.h.in index c33de44..64d6169 100644 --- a/kernel/include/linux/netfilter/ipset/ip_set_compat.h.in +++ b/kernel/include/linux/netfilter/ipset/ip_set_compat.h.in @@ -63,7 +63,11 @@ #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 |