diff options
author | Changli Gao | 2011-01-21 11:02:13 +0100 |
---|---|---|
committer | Simon Horman | 2011-01-22 03:19:36 +0100 |
commit | 091bb34c143674d37a59b2d4857534f7106c5d7d (patch) | |
tree | 38c7eb68b7a7ebc741a336e4414d49f4861bf856 /net/netfilter/ipvs/ip_vs_ctl.c | |
parent | netfilter: add a missing include in nf_conntrack_reasm.c (diff) | |
download | kernel-qcow2-linux-091bb34c143674d37a59b2d4857534f7106c5d7d.tar.gz kernel-qcow2-linux-091bb34c143674d37a59b2d4857534f7106c5d7d.tar.xz kernel-qcow2-linux-091bb34c143674d37a59b2d4857534f7106c5d7d.zip |
netfilter: ipvs: fix compiler warnings
Fix compiler warnings when no transport protocol load balancing support
is configured.
[horms@verge.net.au: removed suprious __ip_vs_cleanup() clean-up hunk]
Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'net/netfilter/ipvs/ip_vs_ctl.c')
-rw-r--r-- | net/netfilter/ipvs/ip_vs_ctl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c index 09ca2ce2f2b7..68b8033a96f7 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/netfilter/ipvs/ip_vs_ctl.c @@ -2062,7 +2062,9 @@ static const struct file_operations ip_vs_stats_percpu_fops = { */ static int ip_vs_set_timeout(struct net *net, struct ip_vs_timeout_user *u) { +#if defined(CONFIG_IP_VS_PROTO_TCP) || defined(CONFIG_IP_VS_PROTO_UDP) struct ip_vs_proto_data *pd; +#endif IP_VS_DBG(2, "Setting timeout tcp:%d tcpfin:%d udp:%d\n", u->tcp_timeout, @@ -2405,7 +2407,9 @@ __ip_vs_get_dest_entries(struct net *net, const struct ip_vs_get_dests *get, static inline void __ip_vs_get_timeouts(struct net *net, struct ip_vs_timeout_user *u) { +#if defined(CONFIG_IP_VS_PROTO_TCP) || defined(CONFIG_IP_VS_PROTO_UDP) struct ip_vs_proto_data *pd; +#endif #ifdef CONFIG_IP_VS_PROTO_TCP pd = ip_vs_proto_data_get(net, IPPROTO_TCP); |