[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1472396231-16937-1-git-send-email-baoyou.xie@linaro.org>
Date: Sun, 28 Aug 2016 22:57:11 +0800
From: Baoyou Xie <baoyou.xie@...aro.org>
To: swise@...lsio.com, dledford@...hat.com, sean.hefty@...el.com,
hal.rosenstock@...il.com
Cc: linux-rdma@...r.kernel.org, linux-kernel@...r.kernel.org,
arnd@...aro.org, baoyou.xie@...aro.org, xie.baoyou@....com.cn
Subject: [PATCH v3] IB/cxgb4: Mark symbols static for _free_qp
We get 1 warning when build kernel with W=1:
drivers/infiniband/hw/cxgb4/qp.c:686:6: warning: no previous prototype for '_free_qp' [-Wmissing-prototypes]
In fact, this function is only used in the file in which it is declared
and don't need a declaration, but can be made static.
so this patch marks it 'static'.
Signed-off-by: Baoyou Xie <baoyou.xie@...aro.org>
Reviewed-by: Yuval Shaia <yuval.shaia@...cle.com>
Reviewed-by: Leon Romanovsky <leonro@...lanox.com>
---
drivers/infiniband/hw/cxgb4/qp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/infiniband/hw/cxgb4/qp.c b/drivers/infiniband/hw/cxgb4/qp.c
index edb1172..6904352 100644
--- a/drivers/infiniband/hw/cxgb4/qp.c
+++ b/drivers/infiniband/hw/cxgb4/qp.c
@@ -683,7 +683,7 @@ static int build_inv_stag(union t4_wr *wqe, struct ib_send_wr *wr,
return 0;
}
-void _free_qp(struct kref *kref)
+static void _free_qp(struct kref *kref)
{
struct c4iw_qp *qhp;
--
2.7.4
Powered by blists - more mailing lists