[SUNRPC]: Make xprtsock.c:xs_setup_{udp,tcp}() static
authorAdrian Bunk <bunk@kernel.org>
Thu, 22 Nov 2007 11:38:25 +0000 (19:38 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Nov 2007 11:38:25 +0000 (19:38 +0800)
xs_setup_{udp,tcp}() can now become static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/linux/sunrpc/xprtsock.h
net/sunrpc/xprtsock.c

index 2c6c2c2783d8b899940280c47a70ee3bff588e18..c2a46c45c8f75a3dab16327b78651501e1bd5740 100644 (file)
@@ -9,12 +9,6 @@
 
 #ifdef __KERNEL__
 
-/*
- * Socket transport setup operations
- */
-struct rpc_xprt *xs_setup_udp(struct xprt_create *args);
-struct rpc_xprt *xs_setup_tcp(struct xprt_create *args);
-
 int            init_socket_xprt(void);
 void           cleanup_socket_xprt(void);
 
index 02298f529dad3f4a068ed86d4cf00cbe8e352eaf..2f630a512ab753f7e2df18a42a2abb02f04893ba 100644 (file)
@@ -1828,7 +1828,7 @@ static struct rpc_xprt *xs_setup_xprt(struct xprt_create *args,
  * @args: rpc transport creation arguments
  *
  */
-struct rpc_xprt *xs_setup_udp(struct xprt_create *args)
+static struct rpc_xprt *xs_setup_udp(struct xprt_create *args)
 {
        struct sockaddr *addr = args->dstaddr;
        struct rpc_xprt *xprt;
@@ -1894,7 +1894,7 @@ struct rpc_xprt *xs_setup_udp(struct xprt_create *args)
  * @args: rpc transport creation arguments
  *
  */
-struct rpc_xprt *xs_setup_tcp(struct xprt_create *args)
+static struct rpc_xprt *xs_setup_tcp(struct xprt_create *args)
 {
        struct sockaddr *addr = args->dstaddr;
        struct rpc_xprt *xprt;