Skip to contentSkip to conversation

sunrpc: xprtrdma: Remove repeated struct declaration

PATCH In review Wan Jiabing 2 participants 2 messages Apr 1, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sunrpc: xprtrdma: Remove repeated struct declaration

struct rpcrdma_req is declared twice. One is declared at 216th line. The blew one is not needed. Remove the duplicate.

---
 net/sunrpc/xprtrdma/xprt_rdma.h | 1 -
 1 file changed, 1 deletion(-)
net/sunrpc/xprtrdma/xprt_rdma.h +0 -1
index fe3be985e239..11e5fbfc642c 100644
@@ -239,7 +239,6 @@ struct rpcrdma_frwr {
 	};
 };
 
-struct rpcrdma_req;
 struct rpcrdma_mr {
 	struct list_head	mr_list;
 	struct rpcrdma_req	*mr_req;
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw

Hi -

Quoted 4 lines · Wan Jiabing

struct rpcrdma_req is declared twice. One is declared at 216th line. The blew one is not needed. Remove the duplicate.

s/blew/below/

Quoted 2 lines

Thanks! This one goes to Anna.

Quoted 19 lines

---
net/sunrpc/xprtrdma/xprt_rdma.h | 1 -

1 file changed, 1 deletion(-)
net/sunrpc/xprtrdma/xprt_rdma.h +0 -1
index fe3be985e239..11e5fbfc642c 100644
@@ -239,7 +239,6 @@ struct rpcrdma_frwr {
 	};
 };
 
-struct rpcrdma_req;
 struct rpcrdma_mr {
 	struct list_head	mr_list;
 	struct rpcrdma_req	*mr_req;
Signature · 1 line
2.25.1

--
Chuck Lever