[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200210073927.8769-1-chenwandun@huawei.com>
Date: Mon, 10 Feb 2020 15:39:27 +0800
From: Chen Wandun <chenwandun@...wei.com>
To: <bfields@...ldses.org>, <chuck.lever@...cle.com>,
<trond.myklebust@...merspace.com>, <Anna.Schumaker@...app.com>,
<davem@...emloft.net>, <kuba@...nel.org>,
<linux-nfs@...r.kernel.org>, <netdev@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
CC: <chenwandun@...wei.com>
Subject: [PATCH next] xprtrdma: make the symbol 'xprt_rdma_slot_table_entries' static
Fix the following sparse warning:
net/sunrpc/xprtrdma/transport.c:71:14: warning: symbol 'xprt_rdma_slot_table_entries' was not declared. Should it be static?
Fixes: 86c4ccd9b92b ("xprtrdma: Eliminate struct rpcrdma_create_data_internal")
Signed-off-by: Chen Wandun <chenwandun@...wei.com>
---
net/sunrpc/xprtrdma/transport.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/sunrpc/xprtrdma/transport.c b/net/sunrpc/xprtrdma/transport.c
index 3cfeba68ee9a..14c2a852d2a1 100644
--- a/net/sunrpc/xprtrdma/transport.c
+++ b/net/sunrpc/xprtrdma/transport.c
@@ -68,7 +68,7 @@
* tunables
*/
-unsigned int xprt_rdma_slot_table_entries = RPCRDMA_DEF_SLOT_TABLE;
+static unsigned int xprt_rdma_slot_table_entries = RPCRDMA_DEF_SLOT_TABLE;
unsigned int xprt_rdma_max_inline_read = RPCRDMA_DEF_INLINE;
unsigned int xprt_rdma_max_inline_write = RPCRDMA_DEF_INLINE;
unsigned int xprt_rdma_memreg_strategy = RPCRDMA_FRWR;
--
2.17.1
Powered by blists - more mailing lists