Skip to contentSkip to conversation

iw_cxgb4: make function read_tcb() static

PATCH Applied Wei Yongjun 3 participants 3 messages Feb 18, 2019 – Feb 19, 2019

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

PATCH 1/1 iw_cxgb4: make function read_tcb() static

Fixes the following sparse warning:

drivers/infiniband/hw/cxgb4/cm.c:658:6: warning:
symbol 'read_tcb' was not declared. Should it be static?

Fixes 11a27e2121a5 ("iw_cxgb4: complete the cached SRQ buffers")
---
 drivers/infiniband/hw/cxgb4/cm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/cxgb4/cm.c +1 -1
index ae90b2932bd2..4d232bdf9e97 100644
@@ -655,7 +655,7 @@ static int send_halfclose(struct c4iw_ep *ep)
 	return c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t);
 }
 
-void read_tcb(struct c4iw_ep *ep)
+static void read_tcb(struct c4iw_ep *ep)
 {
 	struct sk_buff *skb;
 	struct cpl_get_tcb *req;
Acked-by on v1 1/1
#1 lore raw
Quoted 18 lines · Wei Yongjun

Fixes the following sparse warning:

drivers/infiniband/hw/cxgb4/cm.c:658:6: warning:
symbol 'read_tcb' was not declared. Should it be static?

Fixes 11a27e2121a5 ("iw_cxgb4: complete the cached SRQ buffers")
---
 drivers/infiniband/hw/cxgb4/cm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/cxgb4/cm.c +0 -0
index ae90b2932bd2..4d232bdf9e97 100644

drivers/infiniband/hw/cxgb4/cm.c static int send_halfclose(struct c4iw_ep *ep) · line 661

Quoted 8 lines
drivers/infiniband/hw/cxgb4/cm.c +1 -1
@@ -655,7 +655,7 @@ static int send_halfclose(struct c4iw_ep *ep)
 	return c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t);
 }
 
-void read_tcb(struct c4iw_ep *ep)
+static void read_tcb(struct c4iw_ep *ep)
 {
 	struct sk_buff *skb;
 	struct cpl_get_tcb *req;
Quoted 1 line
#2 lore raw
In reply to Wei Yongjun
Quoted 10 lines · Wei Yongjun

Fixes the following sparse warning:

drivers/infiniband/hw/cxgb4/cm.c:658:6: warning:
symbol 'read_tcb' was not declared. Should it be static?

Fixes 11a27e2121a5 ("iw_cxgb4: complete the cached SRQ buffers")
---
 drivers/infiniband/hw/cxgb4/cm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to for-next, thanks

Jason