Skip to content

Commit b05d30c

Browse files
marcel-hamerKalle Valo
authored andcommitted
wifi: brcmfmac: add missing header include for brcmf_dbg
Including the fwil.h header file can lead to a build error: drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h: \ In function ‘brcmf_fil_cmd_int_set’: drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h:90:9: error: implicit \ declaration of function ‘brcmf_dbg’ [-Werror=implicit-function-declaration] 90 | brcmf_dbg(FIL, "ifidx=%d, cmd=%d, value=%d\n", ifp->ifidx, cmd, data); | ^~~~~~~~~ The error is often avoided because the debug.h header file is included before the fwil.h header file. This makes sure the header include order is irrelevant by explicitly adding the debug.h header. Fixes: 3134323 ("wifi: brcmfmac: export firmware interface functions") Signed-off-by: Marcel Hamer <[email protected]> Acked-by: Arend van Spriel <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 3f4a094 commit b05d30c

File tree

1 file changed

+2
-0
lines changed
  • drivers/net/wireless/broadcom/brcm80211/brcmfmac

1 file changed

+2
-0
lines changed

drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#ifndef _fwil_h_
77
#define _fwil_h_
88

9+
#include "debug.h"
10+
911
/*******************************************************************************
1012
* Dongle command codes that are interpreted by firmware
1113
******************************************************************************/

0 commit comments

Comments
 (0)