]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
IPVS: ip_vs_dbg_callid() is only needed for debugging
authorSimon Horman <horms@verge.net.au>
Wed, 13 Oct 2010 19:22:35 +0000 (21:22 +0200)
committerPatrick McHardy <kaber@trash.net>
Wed, 13 Oct 2010 19:22:35 +0000 (21:22 +0200)
ip_vs_dbg_callid() and IP_VS_DEBUG_CALLID() are only needed
it CONFIG_IP_VS_DEBUG is defined.

This resolves the following build warning when CONFIG_IP_VS_DEBUG is
not defined.

net/netfilter/ipvs/ip_vs_pe_sip.c:11: warning: 'ip_vs_dbg_callid' defined but not used

Reported-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/ipvs/ip_vs_pe_sip.c

index a0539f13e2b48f83c0911d829352bd6bc7d10de9..b8b4e9620f3e936251da71d452f1d1f7aed68d04 100644 (file)
@@ -8,6 +8,7 @@
 #include <net/netfilter/nf_conntrack.h>
 #include <linux/netfilter/nf_conntrack_sip.h>
 
+#ifdef CONFIG_IP_VS_DEBUG
 static const char *ip_vs_dbg_callid(char *buf, size_t buf_len,
                                    const char *callid, size_t callid_len,
                                    int *idx)
@@ -22,6 +23,7 @@ static const char *ip_vs_dbg_callid(char *buf, size_t buf_len,
 #define IP_VS_DEBUG_CALLID(callid, len)                                        \
        ip_vs_dbg_callid(ip_vs_dbg_buf, sizeof(ip_vs_dbg_buf),          \
                         callid, len, &ip_vs_dbg_idx)
+#endif
 
 static int get_callid(const char *dptr, unsigned int dataoff,
                      unsigned int datalen,