summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/brocade/bna/cna_fwimg.c
diff options
context:
space:
mode:
authorstephen hemminger2012-01-04 14:02:24 +0100
committerDavid S. Miller2012-01-05 19:23:00 +0100
commite1e0918fcaea7b8100ed9f96f3ecd9eb9b867102 (patch)
tree60caa3f37801b440f2918c05ae838e9480482f43 /drivers/net/ethernet/brocade/bna/cna_fwimg.c
parentbna: make ethtool_ops and strings const (diff)
downloadkernel-qcow2-linux-e1e0918fcaea7b8100ed9f96f3ecd9eb9b867102.tar.gz
kernel-qcow2-linux-e1e0918fcaea7b8100ed9f96f3ecd9eb9b867102.tar.xz
kernel-qcow2-linux-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/cna_fwimg.c')
-rw-r--r--drivers/net/ethernet/brocade/bna/cna_fwimg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/brocade/bna/cna_fwimg.c b/drivers/net/ethernet/brocade/bna/cna_fwimg.c
index 725b9fff337f..cfc22a64157e 100644
--- a/drivers/net/ethernet/brocade/bna/cna_fwimg.c
+++ b/drivers/net/ethernet/brocade/bna/cna_fwimg.c
@@ -16,6 +16,7 @@
* www.brocade.com
*/
#include <linux/firmware.h>
+#include "bnad.h"
#include "bfi.h"
#include "cna.h"