summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2013-05-01 18:48:27 +0200
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2013-05-01 18:48:27 +0200
commit6188caa43bc24bd246b61f5eb853d6c416abada9 (patch)
treefa86c7a4847a1c6c36e18ee5acecf4e61b7666e5 /kernel
parentda05c9810976e6f166f89c5d7b6db43eee987ff4 (diff)
Make sure kernel configured properly for sparse checkings
Diffstat (limited to 'kernel')
-rw-r--r--kernel/include/linux/netfilter/ipset/ip_set_compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/include/linux/netfilter/ipset/ip_set_compat.h b/kernel/include/linux/netfilter/ipset/ip_set_compat.h
index 940a3c3..f5edef6 100644
--- a/kernel/include/linux/netfilter/ipset/ip_set_compat.h
+++ b/kernel/include/linux/netfilter/ipset/ip_set_compat.h
@@ -20,6 +20,12 @@
#define __rcu
#endif
+#ifdef CHECK_KCONFIG
+#ifndef CONFIG_SPARSE_RCU_POINTER
+#error "CONFIG_SPARSE_RCU_POINTER must be enabled"
+#endif
+#endif
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 35)
#define xt_action_param xt_match_param
#endif