netdev->dev_addr will be const soon. All callers of wdev_address() can take const already. Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx> --- CC: johannes@xxxxxxxxxxxxxxxx CC: linux-wireless@xxxxxxxxxxxxxxx --- include/net/cfg80211.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 62dd8422e0dc..61c87d8e7f2a 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -5492,7 +5492,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; -- 2.31.1