1
0
Fork 0

net: make genetlink ctrl ops const

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
hifive-unleashed-5.1
stephen hemminger 2016-08-31 15:22:00 -07:00 committed by David S. Miller
parent 5a25634719
commit 12d8de6d95
1 changed files with 2 additions and 2 deletions

View 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", },
};