summaryrefslogtreecommitdiff
path: root/drivers/net/sfc/mcdi_mac.c
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2011-04-14 05:50:12 (GMT)
committerDavid S. Miller <davem@davemloft.net>2011-04-15 04:53:42 (GMT)
commit6c8c2513c86c589a819c161c9abbdea2a3d56f5e (patch)
tree043371fbd07fce16159abf9d58cfd0df35b99268 /drivers/net/sfc/mcdi_mac.c
parent44f4d5a27ee63ec80d498e0d0673605d5ce1427d (diff)
downloadlinux-fsl-qoriq-6c8c2513c86c589a819c161c9abbdea2a3d56f5e.tar.xz
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/mcdi_mac.c')
-rw-r--r--drivers/net/sfc/mcdi_mac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sfc/mcdi_mac.c b/drivers/net/sfc/mcdi_mac.c
index 33f7294..50c2077 100644
--- a/drivers/net/sfc/mcdi_mac.c
+++ b/drivers/net/sfc/mcdi_mac.c
@@ -138,7 +138,7 @@ static bool efx_mcdi_mac_check_fault(struct efx_nic *efx)
}
-struct efx_mac_operations efx_mcdi_mac_operations = {
+const struct efx_mac_operations efx_mcdi_mac_operations = {
.reconfigure = efx_mcdi_mac_reconfigure,
.update_stats = efx_port_dummy_op_void,
.check_fault = efx_mcdi_mac_check_fault,