diff options
author | Fengguang Wu <fengguang.wu@intel.com> | 2014-01-19 14:37:12 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-19 22:55:50 -0500 |
commit | a91e6810da3d4e512dc36c4cd655a9bdb471d52b (patch) | |
tree | c4715c93d3d030b68d1f4bd26c1d7aeb22270131 /drivers | |
parent | 4b261c75a99f29c93a0b6babfc180cdf566bd654 (diff) |
qlcnic: fix sparse warnings
Previous patch changed prototypes, but forgot functions.
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c index 8d2ac225c010..294984584d1a 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c | |||
@@ -2066,8 +2066,8 @@ void qlcnic_83xx_change_l2_filter(struct qlcnic_adapter *adapter, u64 *addr, | |||
2066 | qlcnic_83xx_sre_macaddr_change(adapter, mac, vlan_id, QLCNIC_MAC_ADD); | 2066 | qlcnic_83xx_sre_macaddr_change(adapter, mac, vlan_id, QLCNIC_MAC_ADD); |
2067 | } | 2067 | } |
2068 | 2068 | ||
2069 | void qlcnic_83xx_configure_mac(struct qlcnic_adapter *adapter, u8 *mac, | 2069 | static void qlcnic_83xx_configure_mac(struct qlcnic_adapter *adapter, u8 *mac, |
2070 | u8 type, struct qlcnic_cmd_args *cmd) | 2070 | u8 type, struct qlcnic_cmd_args *cmd) |
2071 | { | 2071 | { |
2072 | switch (type) { | 2072 | switch (type) { |
2073 | case QLCNIC_SET_STATION_MAC: | 2073 | case QLCNIC_SET_STATION_MAC: |
@@ -2170,7 +2170,7 @@ static void qlcnic_83xx_handle_link_aen(struct qlcnic_adapter *adapter, | |||
2170 | qlcnic_advert_link_change(adapter, link_status); | 2170 | qlcnic_advert_link_change(adapter, link_status); |
2171 | } | 2171 | } |
2172 | 2172 | ||
2173 | irqreturn_t qlcnic_83xx_handle_aen(int irq, void *data) | 2173 | static irqreturn_t qlcnic_83xx_handle_aen(int irq, void *data) |
2174 | { | 2174 | { |
2175 | struct qlcnic_adapter *adapter = data; | 2175 | struct qlcnic_adapter *adapter = data; |
2176 | struct qlcnic_mailbox *mbx; | 2176 | struct qlcnic_mailbox *mbx; |
@@ -3517,7 +3517,7 @@ int qlcnic_83xx_flash_test(struct qlcnic_adapter *adapter) | |||
3517 | return 0; | 3517 | return 0; |
3518 | } | 3518 | } |
3519 | 3519 | ||
3520 | int qlcnic_83xx_shutdown(struct pci_dev *pdev) | 3520 | static int qlcnic_83xx_shutdown(struct pci_dev *pdev) |
3521 | { | 3521 | { |
3522 | struct qlcnic_adapter *adapter = pci_get_drvdata(pdev); | 3522 | struct qlcnic_adapter *adapter = pci_get_drvdata(pdev); |
3523 | struct net_device *netdev = adapter->netdev; | 3523 | struct net_device *netdev = adapter->netdev; |
@@ -3892,8 +3892,8 @@ int qlcnic_83xx_init_mailbox_work(struct qlcnic_adapter *adapter) | |||
3892 | return 0; | 3892 | return 0; |
3893 | } | 3893 | } |
3894 | 3894 | ||
3895 | pci_ers_result_t qlcnic_83xx_io_error_detected(struct pci_dev *pdev, | 3895 | static pci_ers_result_t qlcnic_83xx_io_error_detected(struct pci_dev *pdev, |
3896 | pci_channel_state_t state) | 3896 | pci_channel_state_t state) |
3897 | { | 3897 | { |
3898 | struct qlcnic_adapter *adapter = pci_get_drvdata(pdev); | 3898 | struct qlcnic_adapter *adapter = pci_get_drvdata(pdev); |
3899 | 3899 | ||
@@ -3914,7 +3914,7 @@ pci_ers_result_t qlcnic_83xx_io_error_detected(struct pci_dev *pdev, | |||
3914 | return PCI_ERS_RESULT_NEED_RESET; | 3914 | return PCI_ERS_RESULT_NEED_RESET; |
3915 | } | 3915 | } |
3916 | 3916 | ||
3917 | pci_ers_result_t qlcnic_83xx_io_slot_reset(struct pci_dev *pdev) | 3917 | static pci_ers_result_t qlcnic_83xx_io_slot_reset(struct pci_dev *pdev) |
3918 | { | 3918 | { |
3919 | struct qlcnic_adapter *adapter = pci_get_drvdata(pdev); | 3919 | struct qlcnic_adapter *adapter = pci_get_drvdata(pdev); |
3920 | int err = 0; | 3920 | int err = 0; |
@@ -3937,7 +3937,7 @@ disconnect: | |||
3937 | return PCI_ERS_RESULT_DISCONNECT; | 3937 | return PCI_ERS_RESULT_DISCONNECT; |
3938 | } | 3938 | } |
3939 | 3939 | ||
3940 | void qlcnic_83xx_io_resume(struct pci_dev *pdev) | 3940 | static void qlcnic_83xx_io_resume(struct pci_dev *pdev) |
3941 | { | 3941 | { |
3942 | struct qlcnic_adapter *adapter = pci_get_drvdata(pdev); | 3942 | struct qlcnic_adapter *adapter = pci_get_drvdata(pdev); |
3943 | 3943 | ||