提交 12d8de6d 编写于 作者: S stephen hemminger 提交者: David S. Miller

net: make genetlink ctrl ops const

Signed-off-by: NStephen Hemminger <stephen@networkplumber.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 5a256347
......@@ -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", },
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册