diff options
author | stephen hemminger <shemminger@vyatta.com> | 2012-01-04 06:58:13 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-05 13:23:00 -0500 |
commit | c8b88efc3047063f98eba26d8d08d9a6b968c73a (patch) | |
tree | cf1b8a617fd1762cf5c35a694175340aad28f389 | |
parent | 813abbbaa3750c561f8ed7560664e652997be3dc (diff) |
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 <shemminger@vyatta.com>
Acked-by: Shreyas N Bhatewara <sbhatewara@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/vmxnet3/vmxnet3_ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vmxnet3/vmxnet3_ethtool.c b/drivers/net/vmxnet3/vmxnet3_ethtool.c index a3eb75a62ea9..587a218b2345 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethtool.c +++ b/drivers/net/vmxnet3/vmxnet3_ethtool.c | |||
@@ -608,7 +608,7 @@ vmxnet3_set_rss_indir(struct net_device *netdev, const u32 *p) | |||
608 | } | 608 | } |
609 | #endif | 609 | #endif |
610 | 610 | ||
611 | static struct ethtool_ops vmxnet3_ethtool_ops = { | 611 | static const struct ethtool_ops vmxnet3_ethtool_ops = { |
612 | .get_settings = vmxnet3_get_settings, | 612 | .get_settings = vmxnet3_get_settings, |
613 | .get_drvinfo = vmxnet3_get_drvinfo, | 613 | .get_drvinfo = vmxnet3_get_drvinfo, |
614 | .get_regs_len = vmxnet3_get_regs_len, | 614 | .get_regs_len = vmxnet3_get_regs_len, |