projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de1352e
)
cfg80211: prepare for const netdev->dev_addr
author
Jakub Kicinski
<kuba@kernel.org>
Tue, 19 Oct 2021 16:28:16 +0000
(09:28 -0700)
committer
Johannes Berg
<johannes.berg@intel.com>
Thu, 21 Oct 2021 14:46:58 +0000
(16:46 +0200)
netdev->dev_addr will be const soon.
All callers of wdev_address() can take const already.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Link:
https://lore.kernel.org/r/20211019162816.1384077-2-kuba@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
patch
|
blob
|
history
diff --git
a/include/net/cfg80211.h
b/include/net/cfg80211.h
index
e9e313a
..
02737dd
100644
(file)
--- a/
include/net/cfg80211.h
+++ b/
include/net/cfg80211.h
@@
-5558,7
+5558,7
@@
struct wireless_dev {
unsigned long unprot_beacon_reported;
};
-static inline u8 *wdev_address(struct wireless_dev *wdev)
+static inline
const
u8 *wdev_address(struct wireless_dev *wdev)
{
if (wdev->netdev)
return wdev->netdev->dev_addr;