Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ipvs: fixed sparse warning

Removed the following sparse warnings, wether CONFIG_SYSCTL
is defined or not:
* warning: symbol 'ip_vs_control_net_init_sysctl' was not
declared. Should it be static?
* warning: symbol 'ip_vs_control_net_cleanup_sysctl' was
not declared. Should it be static?

Signed-off-by: Claudiu Ghioc <claudiu.ghioc@gmail.com>
Signed-off-by: Simon Horman <horms@verge.net.au>

authored by

Claudiu Ghioc and committed by
Simon Horman
2b2d2808 be97fdb5

+4 -4
+4 -4
net/netfilter/ipvs/ip_vs_ctl.c
··· 3675 3675 * per netns intit/exit func. 3676 3676 */ 3677 3677 #ifdef CONFIG_SYSCTL 3678 - int __net_init ip_vs_control_net_init_sysctl(struct net *net) 3678 + static int __net_init ip_vs_control_net_init_sysctl(struct net *net) 3679 3679 { 3680 3680 int idx; 3681 3681 struct netns_ipvs *ipvs = net_ipvs(net); ··· 3743 3743 return 0; 3744 3744 } 3745 3745 3746 - void __net_exit ip_vs_control_net_cleanup_sysctl(struct net *net) 3746 + static void __net_exit ip_vs_control_net_cleanup_sysctl(struct net *net) 3747 3747 { 3748 3748 struct netns_ipvs *ipvs = net_ipvs(net); 3749 3749 ··· 3754 3754 3755 3755 #else 3756 3756 3757 - int __net_init ip_vs_control_net_init_sysctl(struct net *net) { return 0; } 3758 - void __net_exit ip_vs_control_net_cleanup_sysctl(struct net *net) { } 3757 + static int __net_init ip_vs_control_net_init_sysctl(struct net *net) { return 0; } 3758 + static void __net_exit ip_vs_control_net_cleanup_sysctl(struct net *net) { } 3759 3759 3760 3760 #endif 3761 3761