From: stephen hemminger Date: Wed, 4 Jan 2012 11:58:13 +0000 (+0000) Subject: vmxnet3" make ethtool ops const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c8b88efc3047063f98eba26d8d08d9a6b968c73a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Shreyas N Bhatewara Signed-off-by: David S. Miller --- 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) } #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,