summaryrefslogtreecommitdiff
path: root/net/batman-adv/netlink.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2016-10-18 16:57:36 +0300
committerSimon Wunderlich <sw@simonwunderlich.de>2016-10-30 13:11:32 +0300
commitce1a21d1422647d7750b569d714efcbd8650b934 (patch)
tree3611e55e270cd8d7a8a1c0b30d45bb226d3957f6 /net/batman-adv/netlink.c
parent9bcb94c8617e1c3ccabcda5ebb4f18c64a74ab6d (diff)
downloadlinux-ce1a21d1422647d7750b569d714efcbd8650b934.tar.xz
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: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/netlink.c')
-rw-r--r--net/batman-adv/netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/netlink.c b/net/batman-adv/netlink.c
index 21712814f4d9..062738163bdc 100644
--- a/net/batman-adv/netlink.c
+++ b/net/batman-adv/netlink.c
@@ -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,