diff --git a/net/netfilter/xt_hashlimit.c b/net/netfilter/xt_hashlimit.c index 54aaf5bac2d72fd0edca94ed2c31a0b8793b49ac..744c7f2ab0b1feb7c01c8d05c4867160a945caf3 100644 --- a/net/netfilter/xt_hashlimit.c +++ b/net/netfilter/xt_hashlimit.c @@ -469,6 +469,7 @@ static inline __be32 maskl(__be32 a, unsigned int l) return htonl(ntohl(a) & ~(~(u_int32_t)0 >> l)); } +#if defined(CONFIG_IP6_NF_IPTABLES) || defined(CONFIG_IP6_NF_IPTABLES_MODULE) static void hashlimit_ipv6_mask(__be32 *i, unsigned int p) { switch (p) { @@ -503,6 +504,7 @@ static void hashlimit_ipv6_mask(__be32 *i, unsigned int p) break; } } +#endif static int hashlimit_init_dst(const struct xt_hashlimit_htable *hinfo,