Skip to contentSkip to conversation

dlm: make genl_ops const

PATCH New Stephen Hemminger 1 participant 1 message Aug 31, 2016 Distributed lock manager (DLM)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dlm: make genl_ops const

This table contains function points and should be const.

---
 fs/dlm/netlink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/dlm/netlink.c +1 -1
index 1e6e227..934ab06 100644
@@ -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,
Signature · 1 line
2.9.3