aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Osipenko <[email protected]>2021-05-11 21:15:48 +0000
committerKalle Valo <[email protected]>2021-06-23 17:44:25 +0000
commit761025b51c540ae1fc9516b5dafa55cd109e4871 (patch)
treef46554637820bf4ec1d228cdc6173d5f407b6fa0
parentMerge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git (diff)
downloadkernel-761025b51c540ae1fc9516b5dafa55cd109e4871.tar.gz
kernel-761025b51c540ae1fc9516b5dafa55cd109e4871.zip
cfg80211: Add wiphy_info_once()
Add wiphy_info_once() helper that prints info message only once. Signed-off-by: Dmitry Osipenko <[email protected]> Acked-by: Johannes Berg <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
-rw-r--r--include/net/cfg80211.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 58c2cd417e89..1e0bf249b601 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -8154,6 +8154,8 @@ bool cfg80211_iftype_allowed(struct wiphy *wiphy, enum nl80211_iftype iftype,
dev_notice(&(wiphy)->dev, format, ##args)
#define wiphy_info(wiphy, format, args...) \
dev_info(&(wiphy)->dev, format, ##args)
+#define wiphy_info_once(wiphy, format, args...) \
+ dev_info_once(&(wiphy)->dev, format, ##args)
#define wiphy_err_ratelimited(wiphy, format, args...) \
dev_err_ratelimited(&(wiphy)->dev, format, ##args)