Skip to content

Commit efd81e9

Browse files
chuckleveramschuma-ntap
authored andcommitted
xprtrdma: Make rpcrdma_sendctx_put_locked() a static function
Clean up: The only call site is in the same file as the function's definition. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
1 parent 9d95cd5 commit efd81e9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

net/sunrpc/xprtrdma/verbs.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
/*
7373
* internal functions
7474
*/
75+
static void rpcrdma_sendctx_put_locked(struct rpcrdma_sendctx *sc);
7576
static void rpcrdma_mrs_create(struct rpcrdma_xprt *r_xprt);
7677
static void rpcrdma_mrs_destroy(struct rpcrdma_buffer *buf);
7778
static int rpcrdma_create_rep(struct rpcrdma_xprt *r_xprt, bool temp);
@@ -949,7 +950,8 @@ struct rpcrdma_sendctx *rpcrdma_sendctx_get_locked(struct rpcrdma_buffer *buf)
949950
*
950951
* The caller serializes calls to this function (per rpcrdma_buffer).
951952
*/
952-
void rpcrdma_sendctx_put_locked(struct rpcrdma_sendctx *sc)
953+
static void
954+
rpcrdma_sendctx_put_locked(struct rpcrdma_sendctx *sc)
953955
{
954956
struct rpcrdma_buffer *buf = &sc->sc_xprt->rx_buf;
955957
unsigned long next_tail;

net/sunrpc/xprtrdma/xprt_rdma.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,6 @@ void rpcrdma_destroy_req(struct rpcrdma_req *);
568568
int rpcrdma_buffer_create(struct rpcrdma_xprt *);
569569
void rpcrdma_buffer_destroy(struct rpcrdma_buffer *);
570570
struct rpcrdma_sendctx *rpcrdma_sendctx_get_locked(struct rpcrdma_buffer *buf);
571-
void rpcrdma_sendctx_put_locked(struct rpcrdma_sendctx *sc);
572571

573572
struct rpcrdma_mr *rpcrdma_mr_get(struct rpcrdma_xprt *r_xprt);
574573
void rpcrdma_mr_put(struct rpcrdma_mr *mr);

0 commit comments

Comments
 (0)