Skip to content

Commit

Permalink
ipvs: ip_vs_ftp: local functions should not be exposed globally
Browse files Browse the repository at this point in the history
Functions not referenced outside of a source file should be marked
static to prevent it from being exposed globally.

This quiets the sparse warnings:

warning: symbol 'ip_vs_ftp_init' was not declared. Should it be static?

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
  • Loading branch information
H Hartley Sweeten authored and Pablo Neira Ayuso committed May 8, 2012
1 parent 6b324db commit d5cce20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netfilter/ipvs/ip_vs_ftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ static struct pernet_operations ip_vs_ftp_ops = {
.exit = __ip_vs_ftp_exit,
};

int __init ip_vs_ftp_init(void)
static int __init ip_vs_ftp_init(void)
{
int rv;

Expand Down

0 comments on commit d5cce20

Please sign in to comment.