aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2014-01-20 17:58:15 -0500
committerJohannes Berg <johannes.berg@intel.com>2014-02-04 15:48:22 -0500
commit94e860f13d39fce83afc6a60619539fc035cac73 (patch)
treeda30c85bdaf976ef3ddc98d7b04b4d6b03261216 /net
parent8a47cea7d4a25babf14d02be8aabb98949dd2bed (diff)
nl80211: make netlink attribute policies const
There's no reason for netlink attribute policies to be __read_mostly, they can just be const. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r--net/wireless/nl80211.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index d0f69f5523e8..55abbe5b34f6 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -3922,8 +3922,8 @@ static struct net_device *get_vlan(struct genl_info *info,
3922 return ERR_PTR(ret); 3922 return ERR_PTR(ret);
3923} 3923}
3924 3924
3925static struct nla_policy 3925static const struct nla_policy
3926nl80211_sta_wme_policy[NL80211_STA_WME_MAX + 1] __read_mostly = { 3926nl80211_sta_wme_policy[NL80211_STA_WME_MAX + 1] = {
3927 [NL80211_STA_WME_UAPSD_QUEUES] = { .type = NLA_U8 }, 3927 [NL80211_STA_WME_UAPSD_QUEUES] = { .type = NLA_U8 },
3928 [NL80211_STA_WME_MAX_SP] = { .type = NLA_U8 }, 3928 [NL80211_STA_WME_MAX_SP] = { .type = NLA_U8 },
3929}; 3929};
@@ -7815,8 +7815,8 @@ static int nl80211_get_power_save(struct sk_buff *skb, struct genl_info *info)
7815 return err; 7815 return err;
7816} 7816}
7817 7817
7818static struct nla_policy 7818static const struct nla_policy
7819nl80211_attr_cqm_policy[NL80211_ATTR_CQM_MAX + 1] __read_mostly = { 7819nl80211_attr_cqm_policy[NL80211_ATTR_CQM_MAX + 1] = {
7820 [NL80211_ATTR_CQM_RSSI_THOLD] = { .type = NLA_U32 }, 7820 [NL80211_ATTR_CQM_RSSI_THOLD] = { .type = NLA_U32 },
7821 [NL80211_ATTR_CQM_RSSI_HYST] = { .type = NLA_U32 }, 7821 [NL80211_ATTR_CQM_RSSI_HYST] = { .type = NLA_U32 },
7822 [NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT] = { .type = NLA_U32 }, 7822 [NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT] = { .type = NLA_U32 },