projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
813abbb
)
vmxnet3" make ethtool ops const
author
stephen hemminger
<
[email protected]
>
Wed, 4 Jan 2012 11:58:13 +0000
(11:58 +0000)
committer
David S. Miller
<
[email protected]
>
Thu, 5 Jan 2012 18:23:00 +0000
(13:23 -0500)
All tables of function pointers should be const to make hacks
more difficult. Compile tested only.
Signed-off-by: Stephen Hemminger <
[email protected]
>
Acked-by: Shreyas N Bhatewara <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/vmxnet3/vmxnet3_ethtool.c
patch
|
blob
|
history
diff --git
a/drivers/net/vmxnet3/vmxnet3_ethtool.c
b/drivers/net/vmxnet3/vmxnet3_ethtool.c
index a3eb75a62ea941ba46dd79bdedaf32e37d9cec1f..587a218b2345ed06eb938f5d01ed832c48dd7459 100644
(file)
--- 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,