Commit 12d8de6d authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller

net: make genetlink ctrl ops const

Signed-off-by: default avatarStephen Hemminger <stephen@networkplumber.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5a256347
...@@ -977,7 +977,7 @@ static int genl_ctrl_event(int event, struct genl_family *family, ...@@ -977,7 +977,7 @@ static int genl_ctrl_event(int event, struct genl_family *family,
return 0; return 0;
} }
static struct genl_ops genl_ctrl_ops[] = { static const struct genl_ops genl_ctrl_ops[] = {
{ {
.cmd = CTRL_CMD_GETFAMILY, .cmd = CTRL_CMD_GETFAMILY,
.doit = ctrl_getfamily, .doit = ctrl_getfamily,
...@@ -986,7 +986,7 @@ static struct genl_ops genl_ctrl_ops[] = { ...@@ -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", }, { .name = "notify", },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment