From: Sven Eckelmann Date: Tue, 18 Oct 2016 13:57:36 +0000 (+0200) Subject: batman-adv: Mark batadv_netlink_ops as const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ce1a21d1422647d7750b569d714efcbd8650b934;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Simon Wunderlich --- 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,