genetlink: make all genl_ops users const
authorJohannes Berg <johannes.berg@intel.com>
Thu, 14 Nov 2013 16:14:46 +0000 (17:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Nov 2013 22:10:41 +0000 (17:10 -0500)
commit4534de8305b3f1460a527a0cda0e3dc2224c6f0c
tree8d140f8ea1c583a4f4ab4e7dc74a3d5dfdaa9ddc
parentf84f771d942182e39a56ec2989d6a67d3ca33a13
genetlink: make all genl_ops users const

Now that genl_ops are no longer modified in place when
registering, they can be made const. This patch was done
mostly with spatch:

@@
identifier ops;
@@
+const
 struct genl_ops ops[] = {
 ...
 };

(except the struct thing in net/openvswitch/datapath.c)

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 files changed:
drivers/net/team/team.c
drivers/net/wireless/mac80211_hwsim.c
kernel/taskstats.c
net/core/drop_monitor.c
net/hsr/hsr_netlink.c
net/ieee802154/netlink.c
net/ipv4/tcp_metrics.c
net/irda/irnetlink.c
net/l2tp/l2tp_netlink.c
net/netfilter/ipvs/ip_vs_ctl.c
net/netlabel/netlabel_cipso_v4.c
net/netlabel/netlabel_mgmt.c
net/netlabel/netlabel_unlabeled.c
net/nfc/netlink.c
net/openvswitch/datapath.c
net/wimax/stack.c
net/wireless/nl80211.c