diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-01-31 21:42:26 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-31 22:28:36 -0500 |
commit | 3ed5df445eddce6f37767df3ebe8b27b614c7d98 (patch) | |
tree | 2fcc1304b85550c432d8666480843b65edc7a3f5 /net | |
parent | e5dfb815181fcb186d6080ac3a091eadff2d98fe (diff) |
[NETFILTER]: Ipv6-related xt_hashlimit compilation fix.
The hashlimit_ipv6_mask() is called from under IP6_NF_IPTABLES config
option, but is not under it by itself.
gcc warns us about it :) :
net/netfilter/xt_hashlimit.c:473: warning: "hashlimit_ipv6_mask" defined but not used
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/xt_hashlimit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/netfilter/xt_hashlimit.c b/net/netfilter/xt_hashlimit.c index 54aaf5bac2d7..744c7f2ab0b1 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) | |||
469 | return htonl(ntohl(a) & ~(~(u_int32_t)0 >> l)); | 469 | return htonl(ntohl(a) & ~(~(u_int32_t)0 >> l)); |
470 | } | 470 | } |
471 | 471 | ||
472 | #if defined(CONFIG_IP6_NF_IPTABLES) || defined(CONFIG_IP6_NF_IPTABLES_MODULE) | ||
472 | static void hashlimit_ipv6_mask(__be32 *i, unsigned int p) | 473 | static void hashlimit_ipv6_mask(__be32 *i, unsigned int p) |
473 | { | 474 | { |
474 | switch (p) { | 475 | switch (p) { |
@@ -503,6 +504,7 @@ static void hashlimit_ipv6_mask(__be32 *i, unsigned int p) | |||
503 | break; | 504 | break; |
504 | } | 505 | } |
505 | } | 506 | } |
507 | #endif | ||
506 | 508 | ||
507 | static int | 509 | static int |
508 | hashlimit_init_dst(const struct xt_hashlimit_htable *hinfo, | 510 | hashlimit_init_dst(const struct xt_hashlimit_htable *hinfo, |