From fac254c9a6ff82d12c9525dcaac9d12e0ec010cc Mon Sep 17 00:00:00 2001 From: Dmitry Baryshkov Date: Fri, 7 Aug 2009 02:58:38 +0000 Subject: [PATCH] --- yaml --- r: 159449 b: refs/heads/master c: 78090a58c49f2f6213d0bb1b3b4c4df73e26865f h: refs/heads/master i: 159447: c5bfb1c28ed42a738416dae519b0ee9c104ae3ff v: v3 --- [refs] | 2 +- trunk/include/linux/nl802154.h | 2 +- trunk/net/ieee802154/nl_policy.c | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index f3455e092800..9be0d505ecce 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8505091d2a067ad27d4a82df9cff8eae6ee52fca +refs/heads/master: 78090a58c49f2f6213d0bb1b3b4c4df73e26865f diff --git a/trunk/include/linux/nl802154.h b/trunk/include/linux/nl802154.h index 2cda00ccfcca..266dd96ced96 100644 --- a/trunk/include/linux/nl802154.h +++ b/trunk/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/trunk/net/ieee802154/nl_policy.c b/trunk/net/ieee802154/nl_policy.c index c7d71d1adcac..83cb4ccef90d 100644 --- a/trunk/net/ieee802154/nl_policy.c +++ b/trunk/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 }, }; +