Explorar o código

dlm: make genl_ops const

This table contains function points and should be const.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David Teigland <teigland@redhat.com>
Stephen Hemminger %!s(int64=9) %!d(string=hai) anos
pai
achega
dbef1c0534
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      fs/dlm/netlink.c

+ 1 - 1
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,