summaryrefslogtreecommitdiffstats
path: root/drivers/net/gtp.c
diff options
context:
space:
mode:
authorStephen Hemminger2018-07-18 18:32:44 +0200
committerDavid S. Miller2018-07-20 21:33:37 +0200
commit5761917a1aac77f40885ec17a3e1d50ab0c737c4 (patch)
treedf30403404c0e671a915e4412c9052569db691b6 /drivers/net/gtp.c
parentnbd: constify nla_policy (diff)
downloadkernel-qcow2-linux-5761917a1aac77f40885ec17a3e1d50ab0c737c4.tar.gz
kernel-qcow2-linux-5761917a1aac77f40885ec17a3e1d50ab0c737c4.tar.xz
kernel-qcow2-linux-5761917a1aac77f40885ec17a3e1d50ab0c737c4.zip
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>
Diffstat (limited to 'drivers/net/gtp.c')
-rw-r--r--drivers/net/gtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/gtp.c b/drivers/net/gtp.c
index ec629a730005..7a145172d503 100644
--- a/drivers/net/gtp.c
+++ b/drivers/net/gtp.c
@@ -1255,7 +1255,7 @@ out:
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_VERSION] = { .type = NLA_U32, },
[GTPA_TID] = { .type = NLA_U64, },