]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
iw_cxgb4: Make function read_tcb() static
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 18 Feb 2019 07:04:32 +0000 (07:04 +0000)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 20 Feb 2019 03:52:19 +0000 (20:52 -0700)
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")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Raju Rangoju <rajur@chelsio.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/cxgb4/cm.c

index ae90b2932bd215dce6b57d3de046d85f58c087b3..4d232bdf9e97600b276fed6016e6dd17d0a2bd6a 100644 (file)
@@ -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;