diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2010-01-14 17:38:31 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-02-10 08:30:53 -0500 |
commit | 5a51f13adf7909caec2f8182767485c30e21364e (patch) | |
tree | 1d7955951f9b863b9cb30318bbc405d0e7f7a90c /net | |
parent | 7a88efe9760de3bc75bde61b0a4c56dbb6cf2494 (diff) |
xprtsock.c: make bc_{malloc/free} static
xprtsock.c: make bc_{malloc/free} static
The server backchannel buf_alloc and buf_free methods should
be static since they are not used outside this file.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: J. Bruce Fields <bfields@fieldses.org>
Cc: Neil Brown <neilb@suse.de>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/xprtsock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 3d739e5d15d..721bafd95a0 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c | |||
@@ -2100,7 +2100,7 @@ static void xs_tcp_print_stats(struct rpc_xprt *xprt, struct seq_file *seq) | |||
2100 | * we allocate pages instead doing a kmalloc like rpc_malloc is because we want | 2100 | * we allocate pages instead doing a kmalloc like rpc_malloc is because we want |
2101 | * to use the server side send routines. | 2101 | * to use the server side send routines. |
2102 | */ | 2102 | */ |
2103 | void *bc_malloc(struct rpc_task *task, size_t size) | 2103 | static void *bc_malloc(struct rpc_task *task, size_t size) |
2104 | { | 2104 | { |
2105 | struct page *page; | 2105 | struct page *page; |
2106 | struct rpc_buffer *buf; | 2106 | struct rpc_buffer *buf; |
@@ -2120,7 +2120,7 @@ void *bc_malloc(struct rpc_task *task, size_t size) | |||
2120 | /* | 2120 | /* |
2121 | * Free the space allocated in the bc_alloc routine | 2121 | * Free the space allocated in the bc_alloc routine |
2122 | */ | 2122 | */ |
2123 | void bc_free(void *buffer) | 2123 | static void bc_free(void *buffer) |
2124 | { | 2124 | { |
2125 | struct rpc_buffer *buf; | 2125 | struct rpc_buffer *buf; |
2126 | 2126 | ||