351-0033-brcmfmac-add-missing-header-dependencies.patch 1.0 KB

1234567891011121314151617181920212223242526272829
  1. From 8af92af3f2d55db143417a5d401696f4b642009a Mon Sep 17 00:00:00 2001
  2. From: Baoyou Xie <baoyou.xie@linaro.org>
  3. Date: Mon, 29 Aug 2016 20:39:35 +0800
  4. Subject: [PATCH] brcmfmac: add missing header dependencies
  5. We get 1 warning when building kernel with W=1:
  6. drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.c:23:6: warning: no previous prototype for '__brcmf_err' [-Wmissing-prototypes]
  7. In fact, this function is declared in brcmfmac/debug.h, so this patch
  8. adds missing header dependencies.
  9. Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
  10. Acked-by: Arnd Bergmann <arnd@arndb.de>
  11. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  12. ---
  13. drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.c | 1 +
  14. 1 file changed, 1 insertion(+)
  15. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.c
  16. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.c
  17. @@ -19,6 +19,7 @@
  18. #ifndef __CHECKER__
  19. #define CREATE_TRACE_POINTS
  20. #include "tracepoint.h"
  21. +#include "debug.h"
  22. void __brcmf_err(const char *func, const char *fmt, ...)
  23. {