From: Jozsef Kadlecsik Date: Wed, 1 May 2013 16:48:27 +0000 (+0200) Subject: Make sure kernel configured properly for sparse checkings X-Git-Tag: v6.19~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6188caa43bc24bd246b61f5eb853d6c416abada9;p=ipset Make sure kernel configured properly for sparse checkings --- 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