From: Dmitry Osipenko Date: Tue, 11 May 2021 21:15:48 +0000 (+0300) Subject: cfg80211: Add wiphy_info_once() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=761025b51c540ae1fc9516b5dafa55cd109e4871;p=linux.git cfg80211: Add wiphy_info_once() Add wiphy_info_once() helper that prints info message only once. Signed-off-by: Dmitry Osipenko Acked-by: Johannes Berg Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20210511211549.30571-1-digetx@gmail.com --- diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 58c2cd417e89a..1e0bf249b6019 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)