net: make genetlink ctrl ops const
authorstephen hemminger <stephen@networkplumber.org>
Wed, 31 Aug 2016 22:22:00 +0000 (15:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Sep 2016 21:09:00 +0000 (14:09 -0700)
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/genetlink.c

index a09132a69869245a20aacc87953213f16a5111e8..23cc12639ba769ac67714f5e5f5f9549a4417c38 100644 (file)
@@ -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", },
 };