diff options
author | stephen hemminger <shemminger@vyatta.com> | 2011-04-14 01:50:12 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-15 00:53:42 -0400 |
commit | 6c8c2513c86c589a819c161c9abbdea2a3d56f5e (patch) | |
tree | 043371fbd07fce16159abf9d58cfd0df35b99268 /drivers/net/sfc/mac.h | |
parent | 44f4d5a27ee63ec80d498e0d0673605d5ce1427d (diff) |
sfc: make function tables const
The phy, mac, and board information structures should be const.
Since tables contain function pointer this improves security
(at least theoretically).
Compile tested only.
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/mac.h')
-rw-r--r-- | drivers/net/sfc/mac.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/sfc/mac.h b/drivers/net/sfc/mac.h index 6886cdf87c12..d6a255d0856b 100644 --- a/drivers/net/sfc/mac.h +++ b/drivers/net/sfc/mac.h | |||
@@ -13,8 +13,8 @@ | |||
13 | 13 | ||
14 | #include "net_driver.h" | 14 | #include "net_driver.h" |
15 | 15 | ||
16 | extern struct efx_mac_operations falcon_xmac_operations; | 16 | extern const struct efx_mac_operations falcon_xmac_operations; |
17 | extern struct efx_mac_operations efx_mcdi_mac_operations; | 17 | extern const struct efx_mac_operations efx_mcdi_mac_operations; |
18 | extern int efx_mcdi_mac_stats(struct efx_nic *efx, dma_addr_t dma_addr, | 18 | extern int efx_mcdi_mac_stats(struct efx_nic *efx, dma_addr_t dma_addr, |
19 | u32 dma_len, int enable, int clear); | 19 | u32 dma_len, int enable, int clear); |
20 | 20 | ||