summaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/tenxpress.c
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2011-04-14 07:50:12 +0200
committerDavid S. Miller <davem@davemloft.net>2011-04-15 06:53:42 +0200
commit6c8c2513c86c589a819c161c9abbdea2a3d56f5e (patch)
tree043371fbd07fce16159abf9d58cfd0df35b99268 /drivers/net/sfc/tenxpress.c
parentPhonet: convert bound sockets hash list to RCU (diff)
downloadlinux-6c8c2513c86c589a819c161c9abbdea2a3d56f5e.tar.xz
linux-6c8c2513c86c589a819c161c9abbdea2a3d56f5e.zip
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/tenxpress.c')
-rw-r--r--drivers/net/sfc/tenxpress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sfc/tenxpress.c b/drivers/net/sfc/tenxpress.c
index efdceb35aaae..204ecdaac9ab 100644
--- a/drivers/net/sfc/tenxpress.c
+++ b/drivers/net/sfc/tenxpress.c
@@ -478,7 +478,7 @@ static void sfx7101_set_npage_adv(struct efx_nic *efx, u32 advertising)
advertising & ADVERTISED_10000baseT_Full);
}
-struct efx_phy_operations falcon_sfx7101_phy_ops = {
+const struct efx_phy_operations falcon_sfx7101_phy_ops = {
.probe = tenxpress_phy_probe,
.init = tenxpress_phy_init,
.reconfigure = tenxpress_phy_reconfigure,