aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVarun Prakash <varun@chelsio.com>2016-07-21 13:27:19 -0400
committerDavid S. Miller <davem@davemloft.net>2016-07-25 13:31:09 -0400
commit4665bdd53047e70281648d9625b645e3f1740320 (patch)
tree3cf98b036bdd43556d63e66d106c25f69a6e750a
parent9d5c44b7c4f4345341bf96b16fdeb6debc437172 (diff)
cxgb3i, cxgb4i: fix symbol not declared sparse warning
Fix following sparse warnings warning: symbol 'cxgb3i_ofld_init' was not declared. Should it be static? warning: symbol 'cxgb4i_cplhandlers' was not declared. Should it be static? warning: symbol 'cxgb4i_ofld_init' was not declared. Should it be static? Signed-off-by: Varun Prakash <varun@chelsio.com> Reviewed-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/scsi/cxgbi/cxgb3i/cxgb3i.c2
-rw-r--r--drivers/scsi/cxgbi/cxgb4i/cxgb4i.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c b/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
index 61f16a2438f0..33e83464e091 100644
--- a/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
+++ b/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
@@ -1028,7 +1028,7 @@ cxgb3_cpl_handler_func cxgb3i_cpl_handlers[NUM_CPL_CMDS] = {
1028 * cxgb3i_ofld_init - allocate and initialize resources for each adapter found 1028 * cxgb3i_ofld_init - allocate and initialize resources for each adapter found
1029 * @cdev: cxgbi adapter 1029 * @cdev: cxgbi adapter
1030 */ 1030 */
1031int cxgb3i_ofld_init(struct cxgbi_device *cdev) 1031static int cxgb3i_ofld_init(struct cxgbi_device *cdev)
1032{ 1032{
1033 struct t3cdev *t3dev = (struct t3cdev *)cdev->lldev; 1033 struct t3cdev *t3dev = (struct t3cdev *)cdev->lldev;
1034 struct adap_ports port; 1034 struct adap_ports port;
diff --git a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
index 521f9e43f880..e4ba2d2616cd 100644
--- a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
+++ b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
@@ -1503,7 +1503,7 @@ rel_resource_without_clip:
1503 return -EINVAL; 1503 return -EINVAL;
1504} 1504}
1505 1505
1506cxgb4i_cplhandler_func cxgb4i_cplhandlers[NUM_CPL_CMDS] = { 1506static cxgb4i_cplhandler_func cxgb4i_cplhandlers[NUM_CPL_CMDS] = {
1507 [CPL_ACT_ESTABLISH] = do_act_establish, 1507 [CPL_ACT_ESTABLISH] = do_act_establish,
1508 [CPL_ACT_OPEN_RPL] = do_act_open_rpl, 1508 [CPL_ACT_OPEN_RPL] = do_act_open_rpl,
1509 [CPL_PEER_CLOSE] = do_peer_close, 1509 [CPL_PEER_CLOSE] = do_peer_close,
@@ -1519,7 +1519,7 @@ cxgb4i_cplhandler_func cxgb4i_cplhandlers[NUM_CPL_CMDS] = {
1519 [CPL_RX_DATA] = do_rx_data, 1519 [CPL_RX_DATA] = do_rx_data,
1520}; 1520};
1521 1521
1522int cxgb4i_ofld_init(struct cxgbi_device *cdev) 1522static int cxgb4i_ofld_init(struct cxgbi_device *cdev)
1523{ 1523{
1524 int rc; 1524 int rc;
1525 1525