1 From: Arend van Spriel <arend@broadcom.com>
2 Date: Wed, 25 Nov 2015 11:32:45 +0100
3 Subject: [PATCH] brcmfmac: assure net_ratelimit() is declared before use
5 Under some kernel configuration we get build issue with implicit
6 declaration of net_ratelimit() function. Fix this by explicitly
7 including the file providing the prototype.
9 Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
10 Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
11 Signed-off-by: Arend van Spriel <arend@broadcom.com>
12 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
15 --- a/drivers/net/wireless/brcm80211/brcmfmac/debug.h
16 +++ b/drivers/net/wireless/brcm80211/brcmfmac/debug.h
18 #ifndef BRCMFMAC_DEBUG_H
19 #define BRCMFMAC_DEBUG_H
21 +#include <linux/net.h> /* net_ratelimit() */
24 #define BRCMF_TRACE_VAL 0x00000002
25 #define BRCMF_INFO_VAL 0x00000004