sfc: make function tables const
authorstephen hemminger <shemminger@vyatta.com>
Thu, 14 Apr 2011 05:50:12 +0000 (05:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Apr 2011 04:53:42 +0000 (21:53 -0700)
commit6c8c2513c86c589a819c161c9abbdea2a3d56f5e
tree043371fbd07fce16159abf9d58cfd0df35b99268
parent44f4d5a27ee63ec80d498e0d0673605d5ce1427d
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>
13 files changed:
drivers/net/sfc/efx.c
drivers/net/sfc/falcon.c
drivers/net/sfc/falcon_xmac.c
drivers/net/sfc/mac.h
drivers/net/sfc/mcdi_mac.c
drivers/net/sfc/mcdi_phy.c
drivers/net/sfc/net_driver.h
drivers/net/sfc/nic.h
drivers/net/sfc/phy.h
drivers/net/sfc/qt202x_phy.c
drivers/net/sfc/siena.c
drivers/net/sfc/tenxpress.c
drivers/net/sfc/txc43128_phy.c