浏览代码

gtp: constify nla_policy

The netlink policy structure can be constant like other
drivers.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stephen Hemminger 7 年之前
父节点
当前提交
5761917a1a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/net/gtp.c

+ 1 - 1
drivers/net/gtp.c

@@ -1255,7 +1255,7 @@ out:
 	return skb->len;
 	return skb->len;
 }
 }
 
 
-static struct nla_policy gtp_genl_policy[GTPA_MAX + 1] = {
+static const struct nla_policy gtp_genl_policy[GTPA_MAX + 1] = {
 	[GTPA_LINK]		= { .type = NLA_U32, },
 	[GTPA_LINK]		= { .type = NLA_U32, },
 	[GTPA_VERSION]		= { .type = NLA_U32, },
 	[GTPA_VERSION]		= { .type = NLA_U32, },
 	[GTPA_TID]		= { .type = NLA_U64, },
 	[GTPA_TID]		= { .type = NLA_U64, },