From: Stephen Hemminger <stephen@networkplumber•org>
To: josef@toxicpanda•com, axboe@kernel•dk, pablo@netfilter•org,
laforge@gnumonks•org
Cc: linux-block@vger•kernel.org, nbd@other•debian.org,
osmocom-net-gprs@lists•osmocom.org, netdev@vger•kernel.org,
Stephen Hemminger <sthemmin@microsoft•com>,
Stephen Hemminger <stephen@networkplumber•org>
Subject: [PATCH net-next 2/2] gtp: constify nla_policy
Date: Wed, 18 Jul 2018 09:32:44 -0700 [thread overview]
Message-ID: <20180718163244.1590-3-sthemmin@microsoft.com> (raw)
In-Reply-To: <20180718163244.1590-1-sthemmin@microsoft.com>
The netlink policy structure can be constant like other
drivers.
Signed-off-by: Stephen Hemminger <stephen@networkplumber•org>
---
drivers/net/gtp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 @@ static int gtp_genl_dump_pdp(struct sk_buff *skb,
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, },
--
2.18.0
next prev parent reply other threads:[~2018-07-18 17:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-18 16:32 [PATCH net-next 0/2] constify nla_policy Stephen Hemminger
2018-07-18 16:32 ` [PATCH net-next 1/2] nbd: " Stephen Hemminger
2018-07-18 16:32 ` Stephen Hemminger [this message]
2018-07-20 19:34 ` [PATCH net-next 0/2] " David Miller
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=20180718163244.1590-3-sthemmin@microsoft.com \
--to=stephen@networkplumber$(echo .)org \
--cc=axboe@kernel$(echo .)dk \
--cc=josef@toxicpanda$(echo .)com \
--cc=laforge@gnumonks$(echo .)org \
--cc=linux-block@vger$(echo .)kernel.org \
--cc=nbd@other$(echo .)debian.org \
--cc=netdev@vger$(echo .)kernel.org \
--cc=osmocom-net-gprs@lists$(echo .)osmocom.org \
--cc=pablo@netfilter$(echo .)org \
--cc=sthemmin@microsoft$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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