summaryrefslogtreecommitdiffstats
path: root/net/netlink
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2016-09-01 00:22:00 +0200
committerDavid S. Miller <davem@davemloft.net>2016-09-01 23:09:00 +0200
commit12d8de6d952372102db2faedd19913dbfa883c5d (patch)
treed93da6c624a3e58de9c51e9a9778011dc99f5f9a /net/netlink
parentMerge branch 'stmmac-STM32F429' (diff)
downloadlinux-12d8de6d952372102db2faedd19913dbfa883c5d.tar.xz
linux-12d8de6d952372102db2faedd19913dbfa883c5d.zip
net: make genetlink ctrl ops const
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink')
-rw-r--r--net/netlink/genetlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c
index a09132a69869..23cc12639ba7 100644
--- a/net/netlink/genetlink.c
+++ b/net/netlink/genetlink.c
@@ -977,7 +977,7 @@ static int genl_ctrl_event(int event, struct genl_family *family,
return 0;
}
-static struct genl_ops genl_ctrl_ops[] = {
+static const struct genl_ops genl_ctrl_ops[] = {
{
.cmd = CTRL_CMD_GETFAMILY,
.doit = ctrl_getfamily,
@@ -986,7 +986,7 @@ static struct genl_ops genl_ctrl_ops[] = {
},
};
-static struct genl_multicast_group genl_ctrl_groups[] = {
+static const struct genl_multicast_group genl_ctrl_groups[] = {
{ .name = "notify", },
};