brcmfmac: add missing header dependencies
authorBaoyou Xie <baoyou.xie@linaro.org>
Mon, 29 Aug 2016 12:39:35 +0000 (20:39 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 3 Sep 2016 10:10:13 +0000 (13:10 +0300)
We get 1 warning when building kernel with W=1:

drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.c:23:6: warning: no previous prototype for '__brcmf_err' [-Wmissing-prototypes]

In fact, this function is declared in brcmfmac/debug.h, so this patch
adds missing header dependencies.

Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.c

index a10f35c..fe67559 100644 (file)
@@ -19,6 +19,7 @@
 #ifndef __CHECKER__
 #define CREATE_TRACE_POINTS
 #include "tracepoint.h"
+#include "debug.h"
 
 void __brcmf_err(const char *func, const char *fmt, ...)
 {