提交 ce1a21d1 编写于 作者: S Sven Eckelmann 提交者: Simon Wunderlich

batman-adv: Mark batadv_netlink_ops as const

The genl_ops don't need to be written by anyone and thus can be moved in a
ro memory range.
Signed-off-by: NSven Eckelmann <sven@narfation.org>
Signed-off-by: NSimon Wunderlich <sw@simonwunderlich.de>
上级 9bcb94c8
......@@ -530,7 +530,7 @@ batadv_netlink_dump_hardifs(struct sk_buff *msg, struct netlink_callback *cb)
return msg->len;
}
static struct genl_ops batadv_netlink_ops[] = {
static const struct genl_ops batadv_netlink_ops[] = {
{
.cmd = BATADV_CMD_GET_MESH_INFO,
.flags = GENL_ADMIN_PERM,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册