projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a86c412
)
gtp: constify nla_policy
author
Stephen Hemminger
<stephen@networkplumber.org>
Wed, 18 Jul 2018 16:32:44 +0000
(09:32 -0700)
committer
David S. Miller
<davem@davemloft.net>
Fri, 20 Jul 2018 19:33:37 +0000
(12:33 -0700)
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>
drivers/net/gtp.c
patch
|
blob
|
history
diff --git
a/drivers/net/gtp.c
b/drivers/net/gtp.c
index
ec629a7
..
7a14517
100644
(file)
--- 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, },