diff options
author | stephen hemminger <shemminger@vyatta.com> | 2010-10-21 03:50:54 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-24 18:07:12 -0400 |
commit | ac409215faccd146e5c755f131d20310a5febe70 (patch) | |
tree | 3a9be6092ee432e41dbfee3b797c9bcd299c200a /drivers/net/qlge | |
parent | 42821a5b393e36f5c0b267473d59d375578df7ec (diff) |
qlge: make local functions static
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlge')
-rw-r--r-- | drivers/net/qlge/qlge.h | 2 | ||||
-rw-r--r-- | drivers/net/qlge/qlge_main.c | 7 | ||||
-rw-r--r-- | drivers/net/qlge/qlge_mpi.c | 6 |
3 files changed, 8 insertions, 7 deletions
diff --git a/drivers/net/qlge/qlge.h b/drivers/net/qlge/qlge.h index a478786840a6..2b7a018593b9 100644 --- a/drivers/net/qlge/qlge.h +++ b/drivers/net/qlge/qlge.h | |||
@@ -2226,7 +2226,6 @@ int ql_dump_risc_ram_area(struct ql_adapter *qdev, void *buf, | |||
2226 | int ql_core_dump(struct ql_adapter *qdev, | 2226 | int ql_core_dump(struct ql_adapter *qdev, |
2227 | struct ql_mpi_coredump *mpi_coredump); | 2227 | struct ql_mpi_coredump *mpi_coredump); |
2228 | int ql_mb_about_fw(struct ql_adapter *qdev); | 2228 | int ql_mb_about_fw(struct ql_adapter *qdev); |
2229 | int ql_wol(struct ql_adapter *qdev); | ||
2230 | int ql_mb_wol_set_magic(struct ql_adapter *qdev, u32 enable_wol); | 2229 | int ql_mb_wol_set_magic(struct ql_adapter *qdev, u32 enable_wol); |
2231 | int ql_mb_wol_mode(struct ql_adapter *qdev, u32 wol); | 2230 | int ql_mb_wol_mode(struct ql_adapter *qdev, u32 wol); |
2232 | int ql_mb_set_led_cfg(struct ql_adapter *qdev, u32 led_config); | 2231 | int ql_mb_set_led_cfg(struct ql_adapter *qdev, u32 led_config); |
@@ -2243,7 +2242,6 @@ netdev_tx_t ql_lb_send(struct sk_buff *skb, struct net_device *ndev); | |||
2243 | void ql_check_lb_frame(struct ql_adapter *, struct sk_buff *); | 2242 | void ql_check_lb_frame(struct ql_adapter *, struct sk_buff *); |
2244 | int ql_own_firmware(struct ql_adapter *qdev); | 2243 | int ql_own_firmware(struct ql_adapter *qdev); |
2245 | int ql_clean_lb_rx_ring(struct rx_ring *rx_ring, int budget); | 2244 | int ql_clean_lb_rx_ring(struct rx_ring *rx_ring, int budget); |
2246 | void qlge_set_multicast_list(struct net_device *ndev); | ||
2247 | 2245 | ||
2248 | #if 1 | 2246 | #if 1 |
2249 | #define QL_ALL_DUMP | 2247 | #define QL_ALL_DUMP |
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c index ba0053d8515e..e6210563abd4 100644 --- a/drivers/net/qlge/qlge_main.c +++ b/drivers/net/qlge/qlge_main.c | |||
@@ -94,6 +94,9 @@ static DEFINE_PCI_DEVICE_TABLE(qlge_pci_tbl) = { | |||
94 | 94 | ||
95 | MODULE_DEVICE_TABLE(pci, qlge_pci_tbl); | 95 | MODULE_DEVICE_TABLE(pci, qlge_pci_tbl); |
96 | 96 | ||
97 | static int ql_wol(struct ql_adapter *qdev); | ||
98 | static void qlge_set_multicast_list(struct net_device *ndev); | ||
99 | |||
97 | /* This hardware semaphore causes exclusive access to | 100 | /* This hardware semaphore causes exclusive access to |
98 | * resources shared between the NIC driver, MPI firmware, | 101 | * resources shared between the NIC driver, MPI firmware, |
99 | * FCOE firmware and the FC driver. | 102 | * FCOE firmware and the FC driver. |
@@ -3842,7 +3845,7 @@ static void ql_display_dev_info(struct net_device *ndev) | |||
3842 | "MAC address %pM\n", ndev->dev_addr); | 3845 | "MAC address %pM\n", ndev->dev_addr); |
3843 | } | 3846 | } |
3844 | 3847 | ||
3845 | int ql_wol(struct ql_adapter *qdev) | 3848 | static int ql_wol(struct ql_adapter *qdev) |
3846 | { | 3849 | { |
3847 | int status = 0; | 3850 | int status = 0; |
3848 | u32 wol = MB_WOL_DISABLE; | 3851 | u32 wol = MB_WOL_DISABLE; |
@@ -4242,7 +4245,7 @@ static struct net_device_stats *qlge_get_stats(struct net_device | |||
4242 | return &ndev->stats; | 4245 | return &ndev->stats; |
4243 | } | 4246 | } |
4244 | 4247 | ||
4245 | void qlge_set_multicast_list(struct net_device *ndev) | 4248 | static void qlge_set_multicast_list(struct net_device *ndev) |
4246 | { | 4249 | { |
4247 | struct ql_adapter *qdev = (struct ql_adapter *)netdev_priv(ndev); | 4250 | struct ql_adapter *qdev = (struct ql_adapter *)netdev_priv(ndev); |
4248 | struct netdev_hw_addr *ha; | 4251 | struct netdev_hw_addr *ha; |
diff --git a/drivers/net/qlge/qlge_mpi.c b/drivers/net/qlge/qlge_mpi.c index f84e8570c7cb..0e7c7c7ee164 100644 --- a/drivers/net/qlge/qlge_mpi.c +++ b/drivers/net/qlge/qlge_mpi.c | |||
@@ -87,7 +87,7 @@ exit: | |||
87 | return status; | 87 | return status; |
88 | } | 88 | } |
89 | 89 | ||
90 | int ql_soft_reset_mpi_risc(struct ql_adapter *qdev) | 90 | static int ql_soft_reset_mpi_risc(struct ql_adapter *qdev) |
91 | { | 91 | { |
92 | int status; | 92 | int status; |
93 | status = ql_write_mpi_reg(qdev, 0x00001010, 1); | 93 | status = ql_write_mpi_reg(qdev, 0x00001010, 1); |
@@ -681,7 +681,7 @@ int ql_mb_get_fw_state(struct ql_adapter *qdev) | |||
681 | /* Send and ACK mailbox command to the firmware to | 681 | /* Send and ACK mailbox command to the firmware to |
682 | * let it continue with the change. | 682 | * let it continue with the change. |
683 | */ | 683 | */ |
684 | int ql_mb_idc_ack(struct ql_adapter *qdev) | 684 | static int ql_mb_idc_ack(struct ql_adapter *qdev) |
685 | { | 685 | { |
686 | struct mbox_params mbc; | 686 | struct mbox_params mbc; |
687 | struct mbox_params *mbcp = &mbc; | 687 | struct mbox_params *mbcp = &mbc; |
@@ -744,7 +744,7 @@ int ql_mb_set_port_cfg(struct ql_adapter *qdev) | |||
744 | return status; | 744 | return status; |
745 | } | 745 | } |
746 | 746 | ||
747 | int ql_mb_dump_ram(struct ql_adapter *qdev, u64 req_dma, u32 addr, | 747 | static int ql_mb_dump_ram(struct ql_adapter *qdev, u64 req_dma, u32 addr, |
748 | u32 size) | 748 | u32 size) |
749 | { | 749 | { |
750 | int status = 0; | 750 | int status = 0; |