summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/svc_xprt.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-10-16 15:40:21 +0200
committerJ. Bruce Fields <bfields@redhat.com>2017-11-07 22:43:57 +0100
commitda36e6dbf478cb67a5df0da6afcd78df226e4c64 (patch)
tree4a53c9076355e9d972f15e0d688fba429ecedd4c /net/sunrpc/svc_xprt.c
parentSUNRPC: Fix tracepoint storage issues with svc_recv and svc_rqst_status (diff)
downloadlinux-da36e6dbf478cb67a5df0da6afcd78df226e4c64.tar.xz
linux-da36e6dbf478cb67a5df0da6afcd78df226e4c64.zip
sunrcp: make function _svc_create_xprt static
The function _svc_create_xprt is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: symbol '_svc_create_xprt' was not declared. Should it be static? Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Jeff Layton <jlayton@poochiereds.net> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/svc_xprt.c')
-rw-r--r--net/sunrpc/svc_xprt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sunrpc/svc_xprt.c b/net/sunrpc/svc_xprt.c
index d16a8b423c20..18e87791350f 100644
--- a/net/sunrpc/svc_xprt.c
+++ b/net/sunrpc/svc_xprt.c
@@ -250,9 +250,9 @@ void svc_add_new_perm_xprt(struct svc_serv *serv, struct svc_xprt *new)
svc_xprt_received(new);
}
-int _svc_create_xprt(struct svc_serv *serv, const char *xprt_name,
- struct net *net, const int family,
- const unsigned short port, int flags)
+static int _svc_create_xprt(struct svc_serv *serv, const char *xprt_name,
+ struct net *net, const int family,
+ const unsigned short port, int flags)
{
struct svc_xprt_class *xcl;