OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ef7a5f
)
cfg80211: Add wiphy_info_once()
author
Dmitry Osipenko
<digetx@gmail.com>
Tue, 11 May 2021 21:15:48 +0000
(
00:15
+0300)
committer
Kalle Valo
<kvalo@codeaurora.org>
Wed, 23 Jun 2021 17:44:25 +0000
(20:44 +0300)
Add wiphy_info_once() helper that prints info message only once.
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link:
https://lore.kernel.org/r/20210511211549.30571-1-digetx@gmail.com
include/net/cfg80211.h
patch
|
blob
|
history
diff --git
a/include/net/cfg80211.h
b/include/net/cfg80211.h
index
58c2cd4
..
1e0bf24
100644
(file)
--- 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)