Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1297782

[PATCH] mac80211: Make addr const in SET_IEEE80211_PERM_ADDR()

From Bjorn Andersson <bjorn@kryo.se>
Newsgroups linux.kernel
Subject [PATCH] mac80211: Make addr const in SET_IEEE80211_PERM_ADDR()
Date 2015-12-24 09:40 +0100
Message-ID <qJ9Bg-4ra-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Make the addr parameter const in SET_IEEE80211_PERM_ADDR() to save
clients from having to cast away a const qualifier.

Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
---
 include/net/mac80211.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 7c30faff245f..a6f3c9c4b7c2 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -2167,7 +2167,7 @@ static inline void SET_IEEE80211_DEV(struct ieee80211_hw *hw, struct device *dev
  * @hw: the &struct ieee80211_hw to set the MAC address for
  * @addr: the address to set
  */
-static inline void SET_IEEE80211_PERM_ADDR(struct ieee80211_hw *hw, u8 *addr)
+static inline void SET_IEEE80211_PERM_ADDR(struct ieee80211_hw *hw, const u8 *addr)
 {
 	memcpy(hw->wiphy->perm_addr, addr, ETH_ALEN);
 }
-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] mac80211: Make addr const in SET_IEEE80211_PERM_ADDR() Bjorn Andersson <bjorn@kryo.se> - 2015-12-24 09:40 +0100
  Re: [PATCH] mac80211: Make addr const in SET_IEEE80211_PERM_ADDR() Souptick Joarder <jrdr.linux@gmail.com> - 2015-12-30 17:50 +0100
    Re: [PATCH] mac80211: Make addr const in SET_IEEE80211_PERM_ADDR() Bjorn Andersson <bjorn@kryo.se> - 2015-12-30 18:10 +0100
      Re: [PATCH] mac80211: Make addr const in SET_IEEE80211_PERM_ADDR() Souptick Joarder <jrdr.linux@gmail.com> - 2015-12-30 19:40 +0100
        Re: [PATCH] mac80211: Make addr const in SET_IEEE80211_PERM_ADDR() Bjorn Andersson <bjorn@kryo.se> - 2015-12-30 21:10 +0100

csiph-web