1 From patchwork Tue Mar 12 09:51:40 2019
2 Content-Type: text/plain; charset="utf-8"
4 Content-Transfer-Encoding: 7bit
5 X-Patchwork-Submitter: Stanislaw Gruszka <sgruszka@redhat.com>
6 X-Patchwork-Id: 10848957
7 X-Patchwork-Delegate: johannes@sipsolutions.net
8 From: Stanislaw Gruszka <sgruszka@redhat.com>
9 To: linux-wireless@vger.kernel.org
10 Cc: =?utf-8?q?Tomislav_Po=C5=BEega?= <pozega.tomislav@gmail.com>,
11 Daniel Golle <daniel@makrotopia.org>, Felix Fietkau <nbd@nbd.name>,
12 Mathias Kresin <dev@kresin.me>
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: <1552384303-29529-2-git-send-email-sgruszka@redhat.com>
16 In-Reply-To: <1552384303-29529-1-git-send-email-sgruszka@redhat.com>
17 References: <1552384303-29529-1-git-send-email-sgruszka@redhat.com>
19 wiphy_{err,warn}_ratelimited will be used by rt2x00
21 Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
23 include/net/cfg80211.h | 5 +++++
24 1 file changed, 5 insertions(+)
26 --- a/include/net/cfg80211.h
27 +++ b/include/net/cfg80211.h
28 @@ -6597,6 +6597,11 @@ int cfg80211_external_auth_request(struc
29 #define wiphy_info(wiphy, format, args...) \
30 dev_info(&(wiphy)->dev, format, ##args)
32 +#define wiphy_err_ratelimited(wiphy, format, args...) \
33 + dev_err_ratelimited(&(wiphy)->dev, format, ##args)
34 +#define wiphy_warn_ratelimited(wiphy, format, args...) \
35 + dev_warn_ratelimited(&(wiphy)->dev, format, ##args)
37 #define wiphy_debug(wiphy, format, args...) \
38 wiphy_printk(KERN_DEBUG, wiphy, format, ##args)