netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] IPVS: ip_vs_proto.c: local functions should not be exposed globally
@ 2012-04-26 18:26 H Hartley Sweeten
  2012-04-26 18:17 ` [PATCH] IPVS: ip_vs_ftp.c: " H Hartley Sweeten
  0 siblings, 1 reply; 3+ messages in thread
From: H Hartley Sweeten @ 2012-04-26 18:26 UTC (permalink / raw)
  To: Linux Kernel; +Cc: netdev, davem

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 '__ipvs_proto_data_get' was not declared. Should it be static?

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: "David S. Miller" <davem@davemloft.net>

---

diff --git a/net/netfilter/ipvs/ip_vs_proto.c b/net/netfilter/ipvs/ip_vs_proto.c
index 6eda11d..d5d1d92 100644
--- a/net/netfilter/ipvs/ip_vs_proto.c
+++ b/net/netfilter/ipvs/ip_vs_proto.c
@@ -153,7 +153,7 @@ EXPORT_SYMBOL(ip_vs_proto_get);
 /*
  *	get ip_vs_protocol object data by netns and proto
  */
-struct ip_vs_proto_data *
+static struct ip_vs_proto_data *
 __ipvs_proto_data_get(struct netns_ipvs *ipvs, unsigned short proto)
 {
 	struct ip_vs_proto_data *pd;

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-04-27  1:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-26 18:26 [PATCH] IPVS: ip_vs_proto.c: local functions should not be exposed globally H Hartley Sweeten
2012-04-26 18:17 ` [PATCH] IPVS: ip_vs_ftp.c: " H Hartley Sweeten
2012-04-27  1:01   ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).