diff options
Diffstat (limited to 'drivers/net/e1000/e1000_main.c')
-rw-r--r-- | drivers/net/e1000/e1000_main.c | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c index efbbda7cbcbf..8b207f0e139e 100644 --- a/drivers/net/e1000/e1000_main.c +++ b/drivers/net/e1000/e1000_main.c | |||
@@ -37,7 +37,7 @@ | |||
37 | */ | 37 | */ |
38 | 38 | ||
39 | char e1000_driver_name[] = "e1000"; | 39 | char e1000_driver_name[] = "e1000"; |
40 | char e1000_driver_string[] = "Intel(R) PRO/1000 Network Driver"; | 40 | static char e1000_driver_string[] = "Intel(R) PRO/1000 Network Driver"; |
41 | #ifndef CONFIG_E1000_NAPI | 41 | #ifndef CONFIG_E1000_NAPI |
42 | #define DRIVERNAPI | 42 | #define DRIVERNAPI |
43 | #else | 43 | #else |
@@ -45,7 +45,7 @@ char e1000_driver_string[] = "Intel(R) PRO/1000 Network Driver"; | |||
45 | #endif | 45 | #endif |
46 | #define DRV_VERSION "6.1.16-k2"DRIVERNAPI | 46 | #define DRV_VERSION "6.1.16-k2"DRIVERNAPI |
47 | char e1000_driver_version[] = DRV_VERSION; | 47 | char e1000_driver_version[] = DRV_VERSION; |
48 | char e1000_copyright[] = "Copyright (c) 1999-2005 Intel Corporation."; | 48 | static char e1000_copyright[] = "Copyright (c) 1999-2005 Intel Corporation."; |
49 | 49 | ||
50 | /* e1000_pci_tbl - PCI Device ID Table | 50 | /* e1000_pci_tbl - PCI Device ID Table |
51 | * | 51 | * |
@@ -112,14 +112,14 @@ int e1000_setup_all_tx_resources(struct e1000_adapter *adapter); | |||
112 | int e1000_setup_all_rx_resources(struct e1000_adapter *adapter); | 112 | int e1000_setup_all_rx_resources(struct e1000_adapter *adapter); |
113 | void e1000_free_all_tx_resources(struct e1000_adapter *adapter); | 113 | void e1000_free_all_tx_resources(struct e1000_adapter *adapter); |
114 | void e1000_free_all_rx_resources(struct e1000_adapter *adapter); | 114 | void e1000_free_all_rx_resources(struct e1000_adapter *adapter); |
115 | int e1000_setup_tx_resources(struct e1000_adapter *adapter, | 115 | static int e1000_setup_tx_resources(struct e1000_adapter *adapter, |
116 | struct e1000_tx_ring *txdr); | 116 | struct e1000_tx_ring *txdr); |
117 | int e1000_setup_rx_resources(struct e1000_adapter *adapter, | 117 | static int e1000_setup_rx_resources(struct e1000_adapter *adapter, |
118 | struct e1000_rx_ring *rxdr); | 118 | struct e1000_rx_ring *rxdr); |
119 | void e1000_free_tx_resources(struct e1000_adapter *adapter, | 119 | static void e1000_free_tx_resources(struct e1000_adapter *adapter, |
120 | struct e1000_tx_ring *tx_ring); | 120 | struct e1000_tx_ring *tx_ring); |
121 | void e1000_free_rx_resources(struct e1000_adapter *adapter, | 121 | static void e1000_free_rx_resources(struct e1000_adapter *adapter, |
122 | struct e1000_rx_ring *rx_ring); | 122 | struct e1000_rx_ring *rx_ring); |
123 | void e1000_update_stats(struct e1000_adapter *adapter); | 123 | void e1000_update_stats(struct e1000_adapter *adapter); |
124 | 124 | ||
125 | /* Local Function Prototypes */ | 125 | /* Local Function Prototypes */ |
@@ -296,7 +296,8 @@ e1000_irq_enable(struct e1000_adapter *adapter) | |||
296 | E1000_WRITE_FLUSH(&adapter->hw); | 296 | E1000_WRITE_FLUSH(&adapter->hw); |
297 | } | 297 | } |
298 | } | 298 | } |
299 | void | 299 | |
300 | static void | ||
300 | e1000_update_mng_vlan(struct e1000_adapter *adapter) | 301 | e1000_update_mng_vlan(struct e1000_adapter *adapter) |
301 | { | 302 | { |
302 | struct net_device *netdev = adapter->netdev; | 303 | struct net_device *netdev = adapter->netdev; |
@@ -1141,7 +1142,7 @@ e1000_check_64k_bound(struct e1000_adapter *adapter, | |||
1141 | * Return 0 on success, negative on failure | 1142 | * Return 0 on success, negative on failure |
1142 | **/ | 1143 | **/ |
1143 | 1144 | ||
1144 | int | 1145 | static int |
1145 | e1000_setup_tx_resources(struct e1000_adapter *adapter, | 1146 | e1000_setup_tx_resources(struct e1000_adapter *adapter, |
1146 | struct e1000_tx_ring *txdr) | 1147 | struct e1000_tx_ring *txdr) |
1147 | { | 1148 | { |
@@ -1359,7 +1360,7 @@ e1000_configure_tx(struct e1000_adapter *adapter) | |||
1359 | * Returns 0 on success, negative on failure | 1360 | * Returns 0 on success, negative on failure |
1360 | **/ | 1361 | **/ |
1361 | 1362 | ||
1362 | int | 1363 | static int |
1363 | e1000_setup_rx_resources(struct e1000_adapter *adapter, | 1364 | e1000_setup_rx_resources(struct e1000_adapter *adapter, |
1364 | struct e1000_rx_ring *rxdr) | 1365 | struct e1000_rx_ring *rxdr) |
1365 | { | 1366 | { |
@@ -1747,7 +1748,7 @@ e1000_configure_rx(struct e1000_adapter *adapter) | |||
1747 | * Free all transmit software resources | 1748 | * Free all transmit software resources |
1748 | **/ | 1749 | **/ |
1749 | 1750 | ||
1750 | void | 1751 | static void |
1751 | e1000_free_tx_resources(struct e1000_adapter *adapter, | 1752 | e1000_free_tx_resources(struct e1000_adapter *adapter, |
1752 | struct e1000_tx_ring *tx_ring) | 1753 | struct e1000_tx_ring *tx_ring) |
1753 | { | 1754 | { |
@@ -1858,7 +1859,7 @@ e1000_clean_all_tx_rings(struct e1000_adapter *adapter) | |||
1858 | * Free all receive software resources | 1859 | * Free all receive software resources |
1859 | **/ | 1860 | **/ |
1860 | 1861 | ||
1861 | void | 1862 | static void |
1862 | e1000_free_rx_resources(struct e1000_adapter *adapter, | 1863 | e1000_free_rx_resources(struct e1000_adapter *adapter, |
1863 | struct e1000_rx_ring *rx_ring) | 1864 | struct e1000_rx_ring *rx_ring) |
1864 | { | 1865 | { |