From: Stephen Hemminger <stephen@networkplumber.org>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org, Tom Herbert <tom@herbertland.com>
Subject: [PATCH net-next 6/8] ila: make nla_policy const
Date: Wed, 31 Aug 2016 15:20:51 -0700 [thread overview]
Message-ID: <20160831152051.452741cd@xeon-e3> (raw)
In-Reply-To: <20160831151445.6c8e4e06@xeon-e3>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
net/ipv6/ila/ila_lwt.c | 2 +-
net/ipv6/ila/ila_xlat.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/ipv6/ila/ila_lwt.c b/net/ipv6/ila/ila_lwt.c
index c8314c6..e50c27a 100644
--- a/net/ipv6/ila/ila_lwt.c
+++ b/net/ipv6/ila/ila_lwt.c
@@ -51,7 +51,7 @@ drop:
return -EINVAL;
}
-static struct nla_policy ila_nl_policy[ILA_ATTR_MAX + 1] = {
+static const struct nla_policy ila_nl_policy[ILA_ATTR_MAX + 1] = {
[ILA_ATTR_LOCATOR] = { .type = NLA_U64, },
[ILA_ATTR_CSUM_MODE] = { .type = NLA_U8, },
};
diff --git a/net/ipv6/ila/ila_xlat.c b/net/ipv6/ila/ila_xlat.c
index e6eca5f..e604013 100644
--- a/net/ipv6/ila/ila_xlat.c
+++ b/net/ipv6/ila/ila_xlat.c
@@ -128,7 +128,7 @@ static struct genl_family ila_nl_family = {
.parallel_ops = true,
};
-static struct nla_policy ila_nl_policy[ILA_ATTR_MAX + 1] = {
+static const struct nla_policy ila_nl_policy[ILA_ATTR_MAX + 1] = {
[ILA_ATTR_LOCATOR] = { .type = NLA_U64, },
[ILA_ATTR_LOCATOR_MATCH] = { .type = NLA_U64, },
[ILA_ATTR_IFINDEX] = { .type = NLA_U32, },
--
2.9.3
next prev parent reply other threads:[~2016-09-01 6:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20160831151445.6c8e4e06@xeon-e3>
2016-08-31 22:15 ` [PATCH net-next 2/8] drop_monitor: make genl_multicast_group const Stephen Hemminger
2016-08-31 22:17 ` [PATCH net-next 3/8] batman: make netlink attributes const Stephen Hemminger
2016-08-31 22:17 ` [PATCH net-next 4/8] netns: make nla_policy const Stephen Hemminger
2016-08-31 22:19 ` [PATCH net-next 5/8] fou: " Stephen Hemminger
2016-08-31 22:20 ` Stephen Hemminger [this message]
2016-08-31 22:21 ` [PATCH net-next 7/8] tcp: " Stephen Hemminger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160831152051.452741cd@xeon-e3 \
--to=stephen@networkplumber.org \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=tom@herbertland.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).