projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f70c96
)
l2tp: make nla_policy const
author
stephen hemminger
<stephen@networkplumber.org>
Thu, 1 Sep 2016 06:24:41 +0000
(23:24 -0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 1 Sep 2016 21:09:01 +0000
(14:09 -0700)
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_netlink.c
patch
|
blob
|
blame
|
history
diff --git
a/net/l2tp/l2tp_netlink.c
b/net/l2tp/l2tp_netlink.c
index 1d02e8d20e561f91a395d4e330822138bf182f51..bf3117771822af3f8cdfcbc956d5b8018050c732 100644
(file)
--- a/
net/l2tp/l2tp_netlink.c
+++ b/
net/l2tp/l2tp_netlink.c
@@
-867,7
+867,7
@@
out:
return skb->len;
}
-static struct nla_policy l2tp_nl_policy[L2TP_ATTR_MAX + 1] = {
+static
const
struct nla_policy l2tp_nl_policy[L2TP_ATTR_MAX + 1] = {
[L2TP_ATTR_NONE] = { .type = NLA_UNSPEC, },
[L2TP_ATTR_PW_TYPE] = { .type = NLA_U16, },
[L2TP_ATTR_ENCAP_TYPE] = { .type = NLA_U16, },