summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
diff options
context:
space:
mode:
authorVarun Prakash <varun@chelsio.com>2016-07-21 22:57:19 +0530
committerDavid S. Miller <davem@davemloft.net>2016-07-25 10:31:09 -0700
commit4665bdd53047e70281648d9625b645e3f1740320 (patch)
tree3cf98b036bdd43556d63e66d106c25f69a6e750a /drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
parent9d5c44b7c4f4345341bf96b16fdeb6debc437172 (diff)
downloadlinux-stable-4665bdd53047e70281648d9625b645e3f1740320.tar.gz
linux-stable-4665bdd53047e70281648d9625b645e3f1740320.tar.bz2
linux-stable-4665bdd53047e70281648d9625b645e3f1740320.zip
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>
Diffstat (limited to 'drivers/scsi/cxgbi/cxgb3i/cxgb3i.c')
-rw-r--r--drivers/scsi/cxgbi/cxgb3i/cxgb3i.c2
1 files changed, 1 insertions, 1 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] = {
* cxgb3i_ofld_init - allocate and initialize resources for each adapter found
* @cdev: cxgbi adapter
*/
-int cxgb3i_ofld_init(struct cxgbi_device *cdev)
+static int cxgb3i_ofld_init(struct cxgbi_device *cdev)
{
struct t3cdev *t3dev = (struct t3cdev *)cdev->lldev;
struct adap_ports port;