]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
nl802154: make ieee802154_policy constant
authorDmitry Baryshkov <dbaryshkov@gmail.com>
Fri, 7 Aug 2009 02:58:38 +0000 (02:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Aug 2009 03:49:48 +0000 (20:49 -0700)
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/nl802154.h
net/ieee802154/nl_policy.c

index 2cda00ccfcca28cfa45a233989bdb18cfbeafcb3..266dd96ced96c83a8d15bd0ab196a89a63545ece 100644 (file)
@@ -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
index c7d71d1adcace3ce6e160226c36e5f252757cb13..83cb4ccef90dd7740ef1296830d6dd56c78fb5b8 100644 (file)
@@ -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 },
 };
+