diff options
Diffstat (limited to 'kernel/include/linux/netfilter/ipset/ip_set_compat.h.in')
-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 |