From: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
To: netdev@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>,
Sergey Lapin <slapin@ossfans.org>,
linux-zigbee-devel@lists.sourceforge.net
Subject: [PATCH 3/5] nl802154: make ieee802154_policy constant
Date: Tue, 4 Aug 2009 03:11:39 +0400 [thread overview]
Message-ID: <1249341101-11593-2-git-send-email-dbaryshkov@gmail.com> (raw)
In-Reply-To: <1249341101-11593-1-git-send-email-dbaryshkov@gmail.com>
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
include/linux/nl802154.h | 2 +-
net/ieee802154/nl_policy.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/linux/nl802154.h b/include/linux/nl802154.h
index 2cda00c..266dd96 100644
--- a/include/linux/nl802154.h
+++ b/include/linux/nl802154.h
@@ -69,7 +69,7 @@ enum {
#define IEEE802154_ATTR_MAX (__IEEE802154_ATTR_MAX - 1)
-extern struct nla_policy ieee802154_policy[];
+extern const struct nla_policy ieee802154_policy[];
/* commands */
/* REQ should be responded with CONF
diff --git a/net/ieee802154/nl_policy.c b/net/ieee802154/nl_policy.c
index c7d71d1..83cb4cc 100644
--- a/net/ieee802154/nl_policy.c
+++ b/net/ieee802154/nl_policy.c
@@ -24,7 +24,7 @@
#define NLA_HW_ADDR NLA_U64
-struct nla_policy ieee802154_policy[IEEE802154_ATTR_MAX + 1] = {
+const struct nla_policy ieee802154_policy[IEEE802154_ATTR_MAX + 1] = {
[IEEE802154_ATTR_DEV_NAME] = { .type = NLA_STRING, },
[IEEE802154_ATTR_DEV_INDEX] = { .type = NLA_U32, },
@@ -50,3 +50,4 @@ struct nla_policy ieee802154_policy[IEEE802154_ATTR_MAX + 1] = {
[IEEE802154_ATTR_DURATION] = { .type = NLA_U8, },
[IEEE802154_ATTR_ED_LIST] = { .len = 27 },
};
+
--
1.6.3.3
next prev parent reply other threads:[~2009-08-03 23:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-03 22:51 [GIT PULL 0/5] IEEE 802.15.4 last-minute fixes Dmitry Eremin-Solenikov
2009-08-03 22:51 ` [PATCH 1/5] af_ieee802154: drop IEEE802154_SIOC_ADD_SLAVE declaration Dmitry Eremin-Solenikov
2009-08-03 22:51 ` [PATCH 2/5] af_ieee802154: fix ioctl processing Dmitry Eremin-Solenikov
2009-08-03 23:11 ` Dmitry Eremin-Solenikov
2009-08-03 23:11 ` Dmitry Eremin-Solenikov [this message]
2009-08-03 23:11 ` [PATCH 4/5] documentation: fix wrt. headers rename Dmitry Eremin-Solenikov
[not found] ` <1249341101-11593-3-git-send-email-dbaryshkov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-08-03 23:11 ` [PATCH 5/5] af_ieee802154: provide dummy get/setsockopt Dmitry Eremin-Solenikov
2009-08-04 2:35 ` [GIT PULL 0/5] IEEE 802.15.4 last-minute fixes David Miller
2009-08-04 8:51 ` Dmitry Eremin-Solenikov
2009-08-04 12:58 ` David Miller
[not found] ` <20090804.055810.201482741.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2009-08-04 14:48 ` Dmitry Eremin-Solenikov
2009-08-04 16:09 ` David Miller
[not found] ` <20090804.090921.198630830.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2009-08-05 7:31 ` Dmitry Eremin-Solenikov
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=1249341101-11593-2-git-send-email-dbaryshkov@gmail.com \
--to=dbaryshkov@gmail.com \
--cc=davem@davemloft.net \
--cc=linux-zigbee-devel@lists.sourceforge.net \
--cc=netdev@vger.kernel.org \
--cc=slapin@ossfans.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.