Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3ed5df445eddce6f37767df3ebe8b27b614c7d98
Commit:     3ed5df445eddce6f37767df3ebe8b27b614c7d98
Parent:     e5dfb815181fcb186d6080ac3a091eadff2d98fe
Author:     Pavel Emelyanov <[EMAIL PROTECTED]>
AuthorDate: Thu Jan 31 18:42:26 2008 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Thu Jan 31 19:28:36 2008 -0800

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 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 54aaf5b..744c7f2 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,
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to