020-cfg80211-add-ratelimited-variants-of-err-and-warn.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From patchwork Tue Mar 12 09:51:40 2019
  2. Content-Type: text/plain; charset="utf-8"
  3. MIME-Version: 1.0
  4. Content-Transfer-Encoding: 7bit
  5. X-Patchwork-Submitter: Stanislaw Gruszka <[email protected]>
  6. X-Patchwork-Id: 10848957
  7. X-Patchwork-Delegate: [email protected]
  8. From: Stanislaw Gruszka <[email protected]>
  9. To: [email protected]
  10. Cc: =?utf-8?q?Tomislav_Po=C5=BEega?= <[email protected]>,
  11. Daniel Golle <[email protected]>, Felix Fietkau <[email protected]>,
  12. Mathias Kresin <[email protected]>
  13. Subject: [PATCH v3 1/4] cfg80211: add ratelimited variants of err and warn
  14. Date: Tue, 12 Mar 2019 10:51:40 +0100
  15. Message-Id: <[email protected]>
  16. In-Reply-To: <[email protected]>
  17. References: <[email protected]>
  18. wiphy_{err,warn}_ratelimited will be used by rt2x00
  19. Signed-off-by: Stanislaw Gruszka <[email protected]>
  20. ---
  21. include/net/cfg80211.h | 5 +++++
  22. 1 file changed, 5 insertions(+)
  23. --- a/include/net/cfg80211.h
  24. +++ b/include/net/cfg80211.h
  25. @@ -6588,6 +6588,11 @@ int cfg80211_external_auth_request(struc
  26. #define wiphy_info(wiphy, format, args...) \
  27. dev_info(&(wiphy)->dev, format, ##args)
  28. +#define wiphy_err_ratelimited(wiphy, format, args...) \
  29. + dev_err_ratelimited(&(wiphy)->dev, format, ##args)
  30. +#define wiphy_warn_ratelimited(wiphy, format, args...) \
  31. + dev_warn_ratelimited(&(wiphy)->dev, format, ##args)
  32. +
  33. #define wiphy_debug(wiphy, format, args...) \
  34. wiphy_printk(KERN_DEBUG, wiphy, format, ##args)