linux/drivers/net/ethernet/qlogic/qlcnic
Sony Chacko 6d973cb163 qlcnic: fix sparse warnings
qlcnic_hw.c:1337:17: warning: cast removes address space of expression
qlcnic_hw.c:1337:17: warning: incorrect type in argument 2 (different address spaces)
qlcnic_hw.c:1337:17:    expected void volatile [noderef] <asn:2>*addr
qlcnic_hw.c:1337:17:    got void *<noident>
qlcnic_hw.c:1337:17: warning: cast removes address space of expression
qlcnic_hw.c:1337:17: warning: incorrect type in argument 1 (different address spaces)
qlcnic_hw.c:1337:17:    expected void const volatile [noderef] <asn:2>*addr
qlcnic_hw.c:1337:17:    got void *<noident>

The above warnings are originating from the macros QLCNIC_RD_DUMP_REG and
QLCNIC_WR_DUMP_REG.
The warnings are fixed and macros are replaced with equivalent functions
in the only file from where it is called.

The following warnings are fixed by making the functions static.

qlcnic_hw.c:543:5: warning: symbol 'qlcnic_set_fw_loopback' was not declared. Should it be static?
qlcnic_init.c:1853:6: warning: symbol 'qlcnic_process_rcv_diag' was not declared. Should it be static?

Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-11-18 02:32:16 -05:00
..
Makefile
qlcnic.h qlcnic: fix compiler warnings 2012-11-18 02:32:16 -05:00
qlcnic_ctx.c qlcnic: fix compiler warnings 2012-11-18 02:32:16 -05:00
qlcnic_ethtool.c qlcnic-ethtool: set the ethtool_dump flag by ETH_FW_DUMP_DISABLE value that is zero, if firmware dump is disabled. 2012-05-15 13:13:33 -04:00
qlcnic_hdr.h qlcnic: fix sparse warnings 2012-11-18 02:32:16 -05:00
qlcnic_hw.c qlcnic: fix sparse warnings 2012-11-18 02:32:16 -05:00
qlcnic_init.c qlcnic: fix sparse warnings 2012-11-18 02:32:16 -05:00
qlcnic_main.c qlcnic: fix compiler warnings 2012-11-18 02:32:16 -05:00