diff options
author | Changli Gao <xiaosuo@gmail.com> | 2011-01-21 18:02:13 +0800 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2011-01-22 13:19:36 +1100 |
commit | 091bb34c143674d37a59b2d4857534f7106c5d7d (patch) | |
tree | 38c7eb68b7a7ebc741a336e4414d49f4861bf856 /net/netfilter/ipvs/ip_vs_proto.c | |
parent | bced94ed5efad836859d9426f37f48d46218e99a (diff) | |
download | op-kernel-dev-091bb34c143674d37a59b2d4857534f7106c5d7d.zip op-kernel-dev-091bb34c143674d37a59b2d4857534f7106c5d7d.tar.gz |
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_proto.c')
-rw-r--r-- | net/netfilter/ipvs/ip_vs_proto.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/netfilter/ipvs/ip_vs_proto.c b/net/netfilter/ipvs/ip_vs_proto.c index 6ac986c..17484a4 100644 --- a/net/netfilter/ipvs/ip_vs_proto.c +++ b/net/netfilter/ipvs/ip_vs_proto.c @@ -60,6 +60,9 @@ static int __used __init register_ip_vs_protocol(struct ip_vs_protocol *pp) return 0; } +#if defined(CONFIG_IP_VS_PROTO_TCP) || defined(CONFIG_IP_VS_PROTO_UDP) || \ + defined(CONFIG_IP_VS_PROTO_SCTP) || defined(CONFIG_IP_VS_PROTO_AH) || \ + defined(CONFIG_IP_VS_PROTO_ESP) /* * register an ipvs protocols netns related data */ @@ -85,6 +88,7 @@ register_ip_vs_proto_netns(struct net *net, struct ip_vs_protocol *pp) return 0; } +#endif /* * unregister an ipvs protocol |