brcmfmac: assure net_ratelimit() is declared before use
authorArend van Spriel <arend@broadcom.com>
Wed, 25 Nov 2015 10:32:45 +0000 (11:32 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 30 Nov 2015 12:46:45 +0000 (14:46 +0200)
Under some kernel configuration we get build issue with implicit
declaration of net_ratelimit() function. Fix this by explicitly
including the file providing the prototype.

Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.h

index d0d9676f7f9de952692f40523e97409c104a8e91..6687812770cc18a14b29e4266fcbc74ca097523c 100644 (file)
@@ -17,6 +17,8 @@
 #ifndef BRCMFMAC_DEBUG_H
 #define BRCMFMAC_DEBUG_H
 
+#include <linux/net.h> /* net_ratelimit() */
+
 /* message levels */
 #define BRCMF_TRACE_VAL                0x00000002
 #define BRCMF_INFO_VAL         0x00000004