Skip to contentSkip to conversation

vmxnet3" make ethtool ops const

PATCH Applied Stephen Hemminger 3 participants 3 messages Jan 4, 2012 – Jan 5, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vmxnet3" make ethtool ops const

All tables of function pointers should be const to make hacks more difficult. Compile tested only.

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,