提交 5a51f13a 编写于 作者: H H Hartley Sweeten 提交者: Trond Myklebust

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: NH 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: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 7a88efe9
...@@ -2100,7 +2100,7 @@ static void xs_tcp_print_stats(struct rpc_xprt *xprt, struct seq_file *seq) ...@@ -2100,7 +2100,7 @@ static void xs_tcp_print_stats(struct rpc_xprt *xprt, struct seq_file *seq)
* we allocate pages instead doing a kmalloc like rpc_malloc is because we want * we allocate pages instead doing a kmalloc like rpc_malloc is because we want
* to use the server side send routines. * to use the server side send routines.
*/ */
void *bc_malloc(struct rpc_task *task, size_t size) static void *bc_malloc(struct rpc_task *task, size_t size)
{ {
struct page *page; struct page *page;
struct rpc_buffer *buf; struct rpc_buffer *buf;
...@@ -2120,7 +2120,7 @@ void *bc_malloc(struct rpc_task *task, size_t size) ...@@ -2120,7 +2120,7 @@ void *bc_malloc(struct rpc_task *task, size_t size)
/* /*
* Free the space allocated in the bc_alloc routine * Free the space allocated in the bc_alloc routine
*/ */
void bc_free(void *buffer) static void bc_free(void *buffer)
{ {
struct rpc_buffer *buf; struct rpc_buffer *buf;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册