summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/brocade/bna/bnad.c
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2012-01-04 13:02:24 +0000
committerDavid S. Miller <davem@davemloft.net>2012-01-05 13:23:00 -0500
commite1e0918fcaea7b8100ed9f96f3ecd9eb9b867102 (patch)
tree60caa3f37801b440f2918c05ae838e9480482f43 /drivers/net/ethernet/brocade/bna/bnad.c
parent975419cf01fc6997879196d1c8f5ebffd30d3b20 (diff)
downloadlwn-e1e0918fcaea7b8100ed9f96f3ecd9eb9b867102.tar.gz
lwn-e1e0918fcaea7b8100ed9f96f3ecd9eb9b867102.zip
bna: fix sparse warnings/errors
This fixes a several sparse warnings. * the __iomem tag was being used incorrectly (needs to be a prefix) * several variables should have been static since local to one file * the firmware was not being forwared declared and was const one place and not the other Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/brocade/bna/bnad.c')
-rw-r--r--drivers/net/ethernet/brocade/bna/bnad.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c
index 2eddbaa5db47..be7d91e4b785 100644
--- a/drivers/net/ethernet/brocade/bna/bnad.c
+++ b/drivers/net/ethernet/brocade/bna/bnad.c
@@ -53,9 +53,9 @@ MODULE_PARM_DESC(bna_debugfs_enable, "Enables debugfs feature, default=1,"
* Global variables
*/
u32 bnad_rxqs_per_cq = 2;
-u32 bna_id;
-struct mutex bnad_list_mutex;
-LIST_HEAD(bnad_list);
+static u32 bna_id;
+static struct mutex bnad_list_mutex;
+static LIST_HEAD(bnad_list);
static const u8 bnad_bcast_addr[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
/*