351-0022-brcmfmac-include-also-core.h-header-in-cfg80211.h.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
  2. Date: Sat, 18 Jun 2016 18:49:38 +0200
  3. Subject: [PATCH] brcmfmac: include also core.h header in cfg80211.h
  4. MIME-Version: 1.0
  5. Content-Type: text/plain; charset=UTF-8
  6. Content-Transfer-Encoding: 8bit
  7. This header provides two inline functions using struct brcmf_if so we
  8. need core.h to avoid:
  9. drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h: In function ‘ndev_to_prof’:
  10. drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h:368:13: error: dereferencing pointer to incomplete type
  11. return &ifp->vif->profile;
  12. ^
  13. drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h: In function ‘ndev_to_vif’:
  14. drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h:374:12: error: dereferencing pointer to incomplete type
  15. return ifp->vif;
  16. ^
  17. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
  18. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  19. ---
  20. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h
  21. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h
  22. @@ -20,6 +20,7 @@
  23. /* for brcmu_d11inf */
  24. #include <brcmu_d11.h>
  25. +#include "core.h"
  26. #include "fwil_types.h"
  27. #include "p2p.h"