From 28add7a43939e7f9f636690636e8ef7e8f9d0941 Mon Sep 17 00:00:00 2001 From: Silviu-Mihai Popescu Date: Mon, 4 Mar 2013 11:02:34 +0200 Subject: [PATCH] IPVS: mark symbol as static in ip_vs_core The 'ip_vs_net_id' symbol is exported when IP_VS_GENERIC_NETNS is configured. However, there is no such option in Kconfig, so it shouldn't be exported and instead made static. Additionally, this removes the following sparse warning net/netfilter/ipvs/ip_vs_core.c:72:5: warning: symbol 'ip_vs_net_id' was not declared. Should it be static? Signed-off-by: Silviu-Mihai Popescu --- net/netfilter/ipvs/ip_vs_core.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.c index 47edf5a..28b72f0 100644 --- a/net/netfilter/ipvs/ip_vs_core.c +++ b/net/netfilter/ipvs/ip_vs_core.c @@ -69,10 +69,7 @@ EXPORT_SYMBOL(ip_vs_conn_put); EXPORT_SYMBOL(ip_vs_get_debug_level); #endif -int ip_vs_net_id __read_mostly; -#ifdef IP_VS_GENERIC_NETNS -EXPORT_SYMBOL(ip_vs_net_id); -#endif +static int ip_vs_net_id __read_mostly; /* netns cnt used for uniqueness */ static atomic_t ipvs_netns_cnt = ATOMIC_INIT(0); -- 1.7.9.5