diff options
author | stephen hemminger <shemminger@vyatta.com> | 2010-10-18 01:27:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-21 06:09:43 -0400 |
commit | d215697fe14a0c5a96765c6279b4751e632587a5 (patch) | |
tree | 2fd4639adc97e907853d08bfb4b6c3ee2a495694 /drivers/net/sfc/efx.c | |
parent | d0280232813a6a5e2bfca6e9257b866352115c09 (diff) |
sfc: make functions static
Make local functions and variable static. Do some rearrangement
of the string table stuff to put it where it gets used.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/efx.c')
-rw-r--r-- | drivers/net/sfc/efx.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c index fa6e0207de17..05df20e47976 100644 --- a/drivers/net/sfc/efx.c +++ b/drivers/net/sfc/efx.c | |||
@@ -68,14 +68,6 @@ const char *efx_loopback_mode_names[] = { | |||
68 | [LOOPBACK_PHYXS_WS] = "PHYXS_WS", | 68 | [LOOPBACK_PHYXS_WS] = "PHYXS_WS", |
69 | }; | 69 | }; |
70 | 70 | ||
71 | /* Interrupt mode names (see INT_MODE())) */ | ||
72 | const unsigned int efx_interrupt_mode_max = EFX_INT_MODE_MAX; | ||
73 | const char *efx_interrupt_mode_names[] = { | ||
74 | [EFX_INT_MODE_MSIX] = "MSI-X", | ||
75 | [EFX_INT_MODE_MSI] = "MSI", | ||
76 | [EFX_INT_MODE_LEGACY] = "legacy", | ||
77 | }; | ||
78 | |||
79 | const unsigned int efx_reset_type_max = RESET_TYPE_MAX; | 71 | const unsigned int efx_reset_type_max = RESET_TYPE_MAX; |
80 | const char *efx_reset_type_names[] = { | 72 | const char *efx_reset_type_names[] = { |
81 | [RESET_TYPE_INVISIBLE] = "INVISIBLE", | 73 | [RESET_TYPE_INVISIBLE] = "INVISIBLE", |
@@ -128,7 +120,7 @@ static int napi_weight = 64; | |||
128 | * - Check the on-board hardware monitor; | 120 | * - Check the on-board hardware monitor; |
129 | * - Poll the link state and reconfigure the hardware as necessary. | 121 | * - Poll the link state and reconfigure the hardware as necessary. |
130 | */ | 122 | */ |
131 | unsigned int efx_monitor_interval = 1 * HZ; | 123 | static unsigned int efx_monitor_interval = 1 * HZ; |
132 | 124 | ||
133 | /* This controls whether or not the driver will initialise devices | 125 | /* This controls whether or not the driver will initialise devices |
134 | * with invalid MAC addresses stored in the EEPROM or flash. If true, | 126 | * with invalid MAC addresses stored in the EEPROM or flash. If true, |
@@ -2180,10 +2172,8 @@ int efx_port_dummy_op_int(struct efx_nic *efx) | |||
2180 | return 0; | 2172 | return 0; |
2181 | } | 2173 | } |
2182 | void efx_port_dummy_op_void(struct efx_nic *efx) {} | 2174 | void efx_port_dummy_op_void(struct efx_nic *efx) {} |
2183 | void efx_port_dummy_op_set_id_led(struct efx_nic *efx, enum efx_led_mode mode) | 2175 | |
2184 | { | 2176 | static bool efx_port_dummy_op_poll(struct efx_nic *efx) |
2185 | } | ||
2186 | bool efx_port_dummy_op_poll(struct efx_nic *efx) | ||
2187 | { | 2177 | { |
2188 | return false; | 2178 | return false; |
2189 | } | 2179 | } |