vmxnet3" make ethtool ops const
Subsystems (3)
PATCH 1/1 vmxnet3" make ethtool ops const
All tables of function pointers should be const to make hacks more difficult. Compile tested only.
Signed-off-by Stephen Hemminger <[email protected]>
drivers/net/vmxnet3/vmxnet3_ethtool.c +1 -1
@@ -608,7 +608,7 @@ vmxnet3_set_rss_indir(struct net_device }#endif -static struct ethtool_ops vmxnet3_ethtool_ops = { +static const struct ethtool_ops vmxnet3_ethtool_ops = { .get_settings = vmxnet3_get_settings, .get_drvinfo = vmxnet3_get_drvinfo, .get_regs_len = vmxnet3_get_regs_len,
Quoted 5 lines
All tables of function pointers should be const to make hacks more difficult. Compile tested only.
Signed-off-by Stephen Hemminger <[email protected]>
Thanks Stephen.
From: Stephen Hemminger <[email protected]>
Date: Wed, 4 Jan 2012 13:58:13 -0800
Quoted 4 lines
All tables of function pointers should be const to make hacks more difficult. Compile tested only.
Signed-off-by Stephen Hemminger <[email protected]>
Applied.