From: Stephen Hemminger Date: Wed, 31 Aug 2016 17:26:28 +0000 (-0700) Subject: dlm: make genl_ops const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dbef1c05341b1eb4912154cc32bc1a8b64ac0f59;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git dlm: make genl_ops const This table contains function points and should be const. Signed-off-by: Stephen Hemminger Signed-off-by: David Teigland --- diff --git a/fs/dlm/netlink.c b/fs/dlm/netlink.c index 1e6e227134d7..934ab0640610 100644 --- a/fs/dlm/netlink.c +++ b/fs/dlm/netlink.c @@ -69,7 +69,7 @@ static int user_cmd(struct sk_buff *skb, struct genl_info *info) return 0; } -static struct genl_ops dlm_nl_ops[] = { +static const struct genl_ops dlm_nl_ops[] = { { .cmd = DLM_CMD_HELLO, .doit = user_cmd,