orangepi-xunlong / OrangePiRK3399_kernel

Other
7 stars 15 forks source link

build error for orangepi4 #3

Open minchieh-fay opened 4 years ago

minchieh-fay commented 4 years ago

Using 4_linux_defconfig make: Entering directory '/data/xunlong/OrangePiRK3399/kernel' scripts/kconfig/conf --silentoldconfig Kconfig CHK scripts/mod/devicetable-offsets.h CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h CHK include/generated/bounds.h CHK include/generated/timeconst.h CHK include/generated/asm-offsets.h CALL scripts/checksyscalls.sh make[1]: 'include/generated/vdso-offsets.h' is up to date. CHK include/generated/compile.h make[1]: 'arch/arm64/boot/Image.lz4' is up to date. Image: kernel.img is ready CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h CHK include/generated/bounds.h CHK include/generated/timeconst.h CHK include/generated/asm-offsets.h CALL scripts/checksyscalls.sh make[2]: 'include/generated/vdso-offsets.h' is up to date. CHK scripts/mod/devicetable-offsets.h CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.o drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:148:1: error: unknown type name 'BTC_OFFLOAD' BTC_OFFLOAD gl_coex_offload; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:198:18: error: 'COMP_MAX' undeclared here (not in a function) u32 GLBtcDbgType[COMP_MAX]; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:199:16: error: 'BT_TMP_BUF_SIZE' undeclared here (not in a function) u8 GLBtcDbgBuf[BT_TMP_BUF_SIZE]; ^~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:249:45: error: unknown type name 'PBTC_COEXIST' static u8 halbtcoutsrc_IsBtCoexistAvailable(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:267:36: error: unknown type name 'PBTC_COEXIST' static u8 halbtcoutsrc_IsCsrBtCoex(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:277:41: error: unknown type name 'PBTC_COEXIST' static u8 halbtcoutsrc_IsHwMailboxExist(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:292:35: error: unknown type name 'PBTC_COEXIST' static void halbtcoutsrc_LeaveLps(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:305:28: error: unknown type name 'PBTC_COEXIST' void halbtcoutsrc_EnterLps(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:318:29: error: unknown type name 'PBTC_COEXIST' void halbtcoutsrc_NormalLps(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:349:33: error: unknown type name 'PBTC_COEXIST' void halbtcoutsrc_LeaveLowPower(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:395:34: error: unknown type name 'PBTC_COEXIST' void halbtcoutsrc_NormalLowPower(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:410:35: error: unknown type name 'PBTC_COEXIST' void halbtcoutsrc_DisableLowPower(PBTC_COEXIST pBtCoexist, u8 bLowPwrDisable) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:419:36: error: unknown type name 'PBTC_COEXIST' void halbtcoutsrc_AggregationCheck(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function '_halbtcoutsrc_GetWifiLinkStatus': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:530:28: error: 'WIFI_P2P_GO_CONNECTED' undeclared (first use in this function) portConnectedStatus |= WIFI_P2P_GO_CONNECTED; ^~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:530:28: note: each undeclared identifier is reported only once for each function it appears in drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:532:28: error: 'WIFI_AP_CONNECTED' undeclared (first use in this function) portConnectedStatus |= WIFI_AP_CONNECTED; ^~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:537:28: error: 'WIFI_P2P_GC_CONNECTED' undeclared (first use in this function) portConnectedStatus |= WIFI_P2P_GC_CONNECTED; ^~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:539:28: error: 'WIFI_STA_CONNECTED' undeclared (first use in this function) portConnectedStatus |= WIFI_STA_CONNECTED; ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: At top level: drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:546:36: error: unknown type name 'PBTC_COEXIST' u32 halbtcoutsrc_GetWifiLinkStatus(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:588:29: error: unknown type name 'PBTC_COEXIST' static u8 _is_btfwver_valid(PBTC_COEXIST pBtCoexist, u16 btfwver) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:613:25: error: unknown type name 'PBTC_COEXIST' static u8 _btmpoper_cmd(PBTC_COEXIST pBtCoexist, u8 opcode, u8 opcodever, u8 cmd, u8 size) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:697:32: error: unknown type name 'PBTC_COEXIST' u32 halbtcoutsrc_GetBtPatchVer(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'halbtcoutsrc_Get': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:766:2: error: unknown type name 'PBTC_COEXIST' PBTC_COEXIST pBtCoexist; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:778:16: error: 'PBTC_COEXIST' undeclared (first use in this function) pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:778:29: error: expected ';' before 'pBtcContext' pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:779:7: error: implicit declaration of function 'halbtcoutsrc_IsBtCoexistAvailable' [-Werror=implicit-function-declaration] if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) ^~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:782:23: error: invalid type argument of '->' (have 'int') padapter = pBtCoexist->Adapter; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:795:8: error: 'BTC_GET_BL_HS_OPERATION' undeclared (first use in this function) case BTC_GET_BL_HS_OPERATION: ^~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:800:8: error: 'BTC_GET_BL_HS_CONNECTING' undeclared (first use in this function) case BTC_GET_BL_HS_CONNECTING: ^~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:805:8: error: 'BTC_GET_BL_WIFI_CONNECTED' undeclared (first use in this function) case BTC_GET_BL_WIFI_CONNECTED: ^~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:815:8: error: 'BTC_GET_BL_WIFI_BUSY' undeclared (first use in this function) case BTC_GET_BL_WIFI_BUSY: ^~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:819:8: error: 'BTC_GET_BL_WIFI_SCAN' undeclared (first use in this function) case BTC_GET_BL_WIFI_SCAN: ^~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:835:8: error: 'BTC_GET_BL_WIFI_LINK' undeclared (first use in this function) case BTC_GET_BL_WIFI_LINK: ^~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:845:8: error: 'BTC_GET_BL_WIFI_ROAM' undeclared (first use in this function) case BTC_GET_BL_WIFI_ROAM: ^~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:855:8: error: 'BTC_GET_BL_WIFI_4_WAY_PROGRESS' undeclared (first use in this function) case BTC_GET_BL_WIFI_4_WAY_PROGRESS: ^~~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:859:8: error: 'BTC_GET_BL_WIFI_UNDER_5G' undeclared (first use in this function) case BTC_GET_BL_WIFI_UNDER_5G: ^~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:863:8: error: 'BTC_GET_BL_WIFI_AP_MODE_ENABLE' undeclared (first use in this function) case BTC_GET_BL_WIFI_AP_MODE_ENABLE: ^~~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:873:8: error: 'BTC_GET_BL_WIFI_ENABLE_ENCRYPTION' undeclared (first use in this function) case BTC_GET_BL_WIFI_ENABLE_ENCRYPTION: ^~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:877:8: error: 'BTC_GET_BL_WIFI_UNDER_B_MODE' undeclared (first use in this function) case BTC_GET_BL_WIFI_UNDER_B_MODE: ^~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:884:8: error: 'BTC_GET_BL_WIFI_IS_IN_MP_MODE' undeclared (first use in this function) case BTC_GET_BL_WIFI_IS_IN_MP_MODE: ^~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:895:8: error: 'BTC_GET_BL_EXT_SWITCH' undeclared (first use in this function) case BTC_GET_BL_EXT_SWITCH: ^~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:898:8: error: 'BTC_GET_BL_IS_ASUS_8723B' undeclared (first use in this function) case BTC_GET_BL_IS_ASUS_8723B: ^~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:902:8: error: 'BTC_GET_BL_FW_READY' undeclared (first use in this function) case BTC_GET_BL_FW_READY: ^~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:906:8: error: 'BTC_GET_S4_WIFI_RSSI' undeclared (first use in this function) case BTC_GET_S4_WIFI_RSSI: ^~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:910:8: error: 'BTC_GET_S4_HS_RSSI' undeclared (first use in this function) case BTC_GET_S4_HS_RSSI: ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:915:8: error: 'BTC_GET_U4_WIFI_BW' undeclared (first use in this function) case BTC_GET_U4_WIFI_BW: ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:917:15: error: 'BTC_WIFI_BW_LEGACY' undeclared (first use in this function) pU4Tmp = BTC_WIFI_BW_LEGACY; ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:919:15: error: 'BTC_WIFI_BW_HT20' undeclared (first use in this function) pU4Tmp = BTC_WIFI_BW_HT20; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:921:15: error: 'BTC_WIFI_BW_HT40' undeclared (first use in this function) pU4Tmp = BTC_WIFI_BW_HT40; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:926:8: error: 'BTC_GET_U4_WIFI_TRAFFIC_DIRECTION' undeclared (first use in this function) case BTC_GET_U4_WIFI_TRAFFIC_DIRECTION: ^~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:932:16: error: 'BTC_WIFI_TRAFFIC_TX' undeclared (first use in this function) pU4Tmp = BTC_WIFI_TRAFFIC_TX; ^~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:934:16: error: 'BTC_WIFI_TRAFFIC_RX' undeclared (first use in this function) pU4Tmp = BTC_WIFI_TRAFFIC_RX; ^~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:938:8: error: 'BTC_GET_U4_WIFI_FW_VER' undeclared (first use in this function) case BTC_GET_U4_WIFI_FW_VER: ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:943:8: error: 'BTC_GET_U4_WIFI_LINK_STATUS' undeclared (first use in this function) case BTC_GET_U4_WIFI_LINK_STATUS: ^~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:944:14: error: implicit declaration of function 'halbtcoutsrc_GetWifiLinkStatus' [-Werror=implicit-function-declaration] pU4Tmp = halbtcoutsrc_GetWifiLinkStatus(pBtCoexist); ^~~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:947:8: error: 'BTC_GET_U4_BT_PATCH_VER' undeclared (first use in this function) case BTC_GET_U4_BT_PATCH_VER: ^~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:948:14: error: implicit declaration of function 'halbtcoutsrc_GetBtPatchVer' [-Werror=implicit-function-declaration] pU4Tmp = halbtcoutsrc_GetBtPatchVer(pBtCoexist); ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:951:8: error: 'BTC_GET_U4_VENDOR' undeclared (first use in this function) case BTC_GET_U4_VENDOR: ^~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:952:14: error: 'BTC_VENDOR_OTHER' undeclared (first use in this function) pU4Tmp = BTC_VENDOR_OTHER; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:955:8: error: 'BTC_GET_U1_WIFI_DOT11_CHNL' undeclared (first use in this function) case BTC_GET_U1_WIFI_DOT11_CHNL: ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:959:8: error: 'BTC_GET_U1_WIFI_CENTRAL_CHNL' undeclared (first use in this function) case BTC_GET_U1_WIFI_CENTRAL_CHNL: ^~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:963:8: error: 'BTC_GET_U1_WIFI_HS_CHNL' undeclared (first use in this function) case BTC_GET_U1_WIFI_HS_CHNL: ^~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:968:8: error: 'BTC_GET_U1_MAC_PHY_MODE' undeclared (first use in this function) case BTC_GET_U1_MAC_PHY_MODE: ^~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:975:8: error: 'BTC_GET_U1_AP_NUM' undeclared (first use in this function) case BTC_GET_U1_AP_NUM: ^~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:978:8: error: 'BTC_GET_U1_ANT_TYPE' undeclared (first use in this function) case BTC_GET_U1_ANT_TYPE: ^~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:982:24: error: 'BTC_ANT_TYPE_0' undeclared (first use in this function) pU1Tmp = (u1Byte)BTC_ANT_TYPE_0; ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:986:24: error: 'BTC_ANT_TYPE_1' undeclared (first use in this function) pU1Tmp = (u1Byte)BTC_ANT_TYPE_1; ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:990:24: error: 'BTC_ANT_TYPE_2' undeclared (first use in this function) pU1Tmp = (u1Byte)BTC_ANT_TYPE_2; ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:994:24: error: 'BTC_ANT_TYPE_3' undeclared (first use in this function) pU1Tmp = (u1Byte)BTC_ANT_TYPE_3; ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:998:24: error: 'BTC_ANT_TYPE_4' undeclared (first use in this function) pU1Tmp = (u1Byte)BTC_ANT_TYPE_4; ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1003:8: error: 'BTC_GET_U1_IOT_PEER' undeclared (first use in this function) case BTC_GET_U1_IOT_PEER: ^~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1008:8: error: 'BTC_GET_U1_LPS_MODE' undeclared (first use in this function) case BTC_GET_U1_LPS_MODE: ^~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'halbtcoutsrc_Set': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1022:2: error: unknown type name 'PBTC_COEXIST' PBTC_COEXIST pBtCoexist; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1031:16: error: 'PBTC_COEXIST' undeclared (first use in this function) pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1031:29: error: expected ';' before 'pBtcContext' pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1032:23: error: invalid type argument of '->' (have 'int') padapter = pBtCoexist->Adapter; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1045:8: error: 'BTC_SET_BL_BT_DISABLE' undeclared (first use in this function) case BTC_SET_BL_BT_DISABLE: ^~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1046:14: error: invalid type argument of '->' (have 'int') pBtCoexist->btInfo.bBtDisabled = pu8; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1049:8: error: 'BTC_SET_BL_BT_ENABLE_DISABLE_CHANGE' undeclared (first use in this function) case BTC_SET_BL_BT_ENABLE_DISABLE_CHANGE: ^~~~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1050:14: error: invalid type argument of '->' (have 'int') pBtCoexist->btInfo.bt_enable_disable_change = pu8; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1053:8: error: 'BTC_SET_BL_BT_TRAFFIC_BUSY' undeclared (first use in this function) case BTC_SET_BL_BT_TRAFFIC_BUSY: ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1054:14: error: invalid type argument of '->' (have 'int') pBtCoexist->btInfo.bBtBusy = pu8; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1057:8: error: 'BTC_SET_BL_BT_LIMITED_DIG' undeclared (first use in this function) case BTC_SET_BL_BT_LIMITED_DIG: ^~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1058:14: error: invalid type argument of '->' (have 'int') pBtCoexist->btInfo.bLimitedDig = pu8; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1061:8: error: 'BTC_SET_BL_FORCE_TO_ROAM' undeclared (first use in this function) case BTC_SET_BL_FORCE_TO_ROAM: ^~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1062:14: error: invalid type argument of '->' (have 'int') pBtCoexist->btInfo.bForceToRoam = pu8; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1065:8: error: 'BTC_SET_BL_TO_REJ_AP_AGG_PKT' undeclared (first use in this function) case BTC_SET_BL_TO_REJ_AP_AGG_PKT: ^~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1066:14: error: invalid type argument of '->' (have 'int') pBtCoexist->btInfo.bRejectAggPkt = pu8; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1069:8: error: 'BTC_SET_BL_BT_CTRL_AGG_SIZE' undeclared (first use in this function) case BTC_SET_BL_BT_CTRL_AGG_SIZE: ^~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1070:14: error: invalid type argument of '->' (have 'int') pBtCoexist->btInfo.bBtCtrlAggBufSize = pu8; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1073:8: error: 'BTC_SET_BL_INC_SCAN_DEV_NUM' undeclared (first use in this function) case BTC_SET_BL_INC_SCAN_DEV_NUM: ^~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1074:14: error: invalid type argument of '->' (have 'int') pBtCoexist->btInfo.bIncreaseScanDevNum = pu8; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1077:8: error: 'BTC_SET_BL_BT_TX_RX_MASK' undeclared (first use in this function) case BTC_SET_BL_BT_TX_RX_MASK: ^~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1078:14: error: invalid type argument of '->' (have 'int') pBtCoexist->btInfo.bBtTxRxMask = pu8; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1081:8: error: 'BTC_SET_BL_MIRACAST_PLUS_BT' undeclared (first use in this function) case BTC_SET_BL_MIRACAST_PLUS_BT: ^~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1082:14: error: invalid type argument of '->' (have 'int') pBtCoexist->btInfo.bMiracastPlusBt = pu8; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1086:8: error: 'BTC_SET_U1_RSSI_ADJ_VAL_FOR_AGC_TABLE_ON' undeclared (first use in this function) case BTC_SET_U1_RSSI_ADJ_VAL_FOR_AGC_TABLE_ON: ^~~~~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1087:14: error: invalid type argument of '->' (have 'int') pBtCoexist->btInfo.rssiAdjustForAgcTableOn = pU1Tmp; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1090:8: error: 'BTC_SET_U1_AGG_BUF_SIZE' undeclared (first use in this function) case BTC_SET_U1_AGG_BUF_SIZE: ^~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1091:14: error: invalid type argument of '->' (have 'int') pBtCoexist->btInfo.aggBufSize = pU1Tmp; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1095:8: error: 'BTC_SET_ACT_GET_BT_RSSI' undeclared (first use in this function) case BTC_SET_ACT_GET_BT_RSSI: ^~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1103:8: error: 'BTC_SET_ACT_AGGREGATE_CTRL' undeclared (first use in this function) case BTC_SET_ACT_AGGREGATE_CTRL: ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1104:4: error: implicit declaration of function 'halbtcoutsrc_AggregationCheck' [-Werror=implicit-function-declaration] halbtcoutsrc_AggregationCheck(pBtCoexist); ^~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1109:8: error: 'BTC_SET_U1_RSSI_ADJ_VAL_FOR_1ANT_COEX_TYPE' undeclared (first use in this function) case BTC_SET_U1_RSSI_ADJ_VAL_FOR_1ANT_COEX_TYPE: ^~~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1110:14: error: invalid type argument of '->' (have 'int') pBtCoexist->btInfo.rssiAdjustFor1AntCoexType = pU1Tmp; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1113:8: error: 'BTC_SET_U1_LPS_VAL' undeclared (first use in this function) case BTC_SET_U1_LPS_VAL: ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1114:14: error: invalid type argument of '->' (have 'int') pBtCoexist->btInfo.lpsVal = pU1Tmp; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1117:8: error: 'BTC_SET_U1_RPWM_VAL' undeclared (first use in this function) case BTC_SET_U1_RPWM_VAL: ^~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1118:14: error: invalid type argument of '->' (have 'int') pBtCoexist->btInfo.rpwmVal = pU1Tmp; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1122:8: error: 'BTC_SET_ACT_LEAVE_LPS' undeclared (first use in this function) case BTC_SET_ACT_LEAVE_LPS: ^~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1123:4: error: implicit declaration of function 'halbtcoutsrc_LeaveLps' [-Werror=implicit-function-declaration] halbtcoutsrc_LeaveLps(pBtCoexist); ^~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1126:8: error: 'BTC_SET_ACT_ENTER_LPS' undeclared (first use in this function) case BTC_SET_ACT_ENTER_LPS: ^~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1127:4: error: implicit declaration of function 'halbtcoutsrc_EnterLps' [-Werror=implicit-function-declaration] halbtcoutsrc_EnterLps(pBtCoexist); ^~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1130:8: error: 'BTC_SET_ACT_NORMAL_LPS' undeclared (first use in this function) case BTC_SET_ACT_NORMAL_LPS: ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1131:4: error: implicit declaration of function 'halbtcoutsrc_NormalLps' [-Werror=implicit-function-declaration] halbtcoutsrc_NormalLps(pBtCoexist); ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1134:8: error: 'BTC_SET_ACT_DISABLE_LOW_POWER' undeclared (first use in this function) case BTC_SET_ACT_DISABLE_LOW_POWER: ^~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1135:4: error: implicit declaration of function 'halbtcoutsrc_DisableLowPower' [-Werror=implicit-function-declaration] halbtcoutsrc_DisableLowPower(pBtCoexist, pu8); ^~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1138:8: error: 'BTC_SET_ACT_UPDATE_RAMASK' undeclared (first use in this function) case BTC_SET_ACT_UPDATE_RAMASK: ^~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1139:14: error: invalid type argument of '->' (have 'int') pBtCoexist->btInfo.raMask = *pU4Tmp; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1152:8: error: 'BTC_SET_ACT_SEND_MIMO_PS' undeclared (first use in this function) case BTC_SET_ACT_SEND_MIMO_PS: ^~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1172:8: error: 'BTC_SET_ACT_CTRL_BT_INFO' undeclared (first use in this function) case BTC_SET_ACT_CTRL_BT_INFO: ^~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1188:8: error: 'BTC_SET_ACT_CTRL_BT_COEX' undeclared (first use in this function) case BTC_SET_ACT_CTRL_BT_COEX: ^~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1203:8: error: 'BTC_SET_ACT_CTRL_8723B_ANT' undeclared (first use in this function) case BTC_SET_ACT_CTRL_8723B_ANT: ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: At top level: drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1227:26: error: unknown type name 'PBTC_COEXIST' u8 halbtcoutsrc_UnderIps(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1258:26: error: unknown type name 'PBTC_COEXIST' u8 halbtcoutsrc_UnderLps(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1263:26: error: unknown type name 'PBTC_COEXIST' u8 halbtcoutsrc_Under32K(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1269:41: error: unknown type name 'PBTC_COEXIST' void halbtcoutsrc_DisplayCoexStatistics(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1427:37: error: unknown type name 'PBTC_COEXIST' void halbtcoutsrc_DisplayBtLinkInfo(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1459:37: error: unknown type name 'PBTC_COEXIST' void halbtcoutsrc_DisplayWifiStatus(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'halbtcoutsrc_DisplayDbgMsg': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1533:2: error: unknown type name 'PBTC_COEXIST' PBTC_COEXIST pBtCoexist; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1536:16: error: 'PBTC_COEXIST' undeclared (first use in this function) pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1536:29: error: expected ';' before 'pBtcContext' pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1539:8: error: 'BTC_DBG_DISP_COEX_STATISTICS' undeclared (first use in this function) case BTC_DBG_DISP_COEX_STATISTICS: ^~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1540:4: error: implicit declaration of function 'halbtcoutsrc_DisplayCoexStatistics' [-Werror=implicit-function-declaration] halbtcoutsrc_DisplayCoexStatistics(pBtCoexist); ^~~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1542:8: error: 'BTC_DBG_DISP_BT_LINK_INFO' undeclared (first use in this function) case BTC_DBG_DISP_BT_LINK_INFO: ^~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1543:4: error: implicit declaration of function 'halbtcoutsrc_DisplayBtLinkInfo' [-Werror=implicit-function-declaration] halbtcoutsrc_DisplayBtLinkInfo(pBtCoexist); ^~~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1545:8: error: 'BTC_DBG_DISP_WIFI_STATUS' undeclared (first use in this function) case BTC_DBG_DISP_WIFI_STATUS: ^~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1546:4: error: implicit declaration of function 'halbtcoutsrc_DisplayWifiStatus' [-Werror=implicit-function-declaration] halbtcoutsrc_DisplayWifiStatus(pBtCoexist); ^~~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'halbtcoutsrc_Read1Byte': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1558:2: error: unknown type name 'PBTC_COEXIST' PBTC_COEXIST pBtCoexist; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1562:16: error: 'PBTC_COEXIST' undeclared (first use in this function) pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1562:29: error: expected ';' before 'pBtcContext' pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1563:23: error: invalid type argument of '->' (have 'int') padapter = pBtCoexist->Adapter; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'halbtcoutsrc_Read2Byte': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1570:2: error: unknown type name 'PBTC_COEXIST' PBTC_COEXIST pBtCoexist; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1574:16: error: 'PBTC_COEXIST' undeclared (first use in this function) pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1574:29: error: expected ';' before 'pBtcContext' pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1575:23: error: invalid type argument of '->' (have 'int') padapter = pBtCoexist->Adapter; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'halbtcoutsrc_Read4Byte': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1582:2: error: unknown type name 'PBTC_COEXIST' PBTC_COEXIST pBtCoexist; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1586:16: error: 'PBTC_COEXIST' undeclared (first use in this function) pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1586:29: error: expected ';' before 'pBtcContext' pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1587:23: error: invalid type argument of '->' (have 'int') padapter = pBtCoexist->Adapter; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'halbtcoutsrc_Write1Byte': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1594:2: error: unknown type name 'PBTC_COEXIST' PBTC_COEXIST pBtCoexist; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1598:16: error: 'PBTC_COEXIST' undeclared (first use in this function) pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1598:29: error: expected ';' before 'pBtcContext' pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1599:23: error: invalid type argument of '->' (have 'int') padapter = pBtCoexist->Adapter; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'halbtcoutsrc_BitMaskWrite1Byte': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1606:2: error: unknown type name 'PBTC_COEXIST' PBTC_COEXIST pBtCoexist; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1612:16: error: 'PBTC_COEXIST' undeclared (first use in this function) pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1612:29: error: expected ';' before 'pBtcContext' pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1613:23: error: invalid type argument of '->' (have 'int') padapter = pBtCoexist->Adapter; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'halbtcoutsrc_Write2Byte': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1636:2: error: unknown type name 'PBTC_COEXIST' PBTC_COEXIST pBtCoexist; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1640:16: error: 'PBTC_COEXIST' undeclared (first use in this function) pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1640:29: error: expected ';' before 'pBtcContext' pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1641:23: error: invalid type argument of '->' (have 'int') padapter = pBtCoexist->Adapter; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'halbtcoutsrc_Write4Byte': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1648:2: error: unknown type name 'PBTC_COEXIST' PBTC_COEXIST pBtCoexist; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1652:16: error: 'PBTC_COEXIST' undeclared (first use in this function) pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1652:29: error: expected ';' before 'pBtcContext' pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1653:23: error: invalid type argument of '->' (have 'int') padapter = pBtCoexist->Adapter; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'halbtcoutsrc_WriteLocalReg1Byte': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1660:2: error: unknown type name 'PBTC_COEXIST' PBTC_COEXIST pBtCoexist=(PBTC_COEXIST)pBtcContext; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1660:28: error: 'PBTC_COEXIST' undeclared (first use in this function) PBTC_COEXIST pBtCoexist=(PBTC_COEXIST)pBtcContext; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1660:41: error: expected ',' or ';' before 'pBtcContext' PBTC_COEXIST pBtCoexist=(PBTC_COEXIST)pBtcContext; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1661:31: error: invalid type argument of '->' (have 'int') PADAPTER Adapter=pBtCoexist->Adapter; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1663:6: error: 'BTC_INTF_SDIO' undeclared (first use in this function) if (BTC_INTF_SDIO == pBtCoexist->chip_interface) ^~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1663:33: error: invalid type argument of '->' (have 'int') if (BTC_INTF_SDIO == pBtCoexist->chip_interface) ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'halbtcoutsrc_SetBbReg': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1671:2: error: unknown type name 'PBTC_COEXIST' PBTC_COEXIST pBtCoexist; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1675:16: error: 'PBTC_COEXIST' undeclared (first use in this function) pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1675:29: error: expected ';' before 'pBtcContext' pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1676:23: error: invalid type argument of '->' (have 'int') padapter = pBtCoexist->Adapter; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'halbtcoutsrc_GetBbReg': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1684:2: error: unknown type name 'PBTC_COEXIST' PBTC_COEXIST pBtCoexist; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1688:16: error: 'PBTC_COEXIST' undeclared (first use in this function) pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1688:29: error: expected ';' before 'pBtcContext' pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1689:23: error: invalid type argument of '->' (have 'int') padapter = pBtCoexist->Adapter; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'halbtcoutsrc_SetRfReg': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1696:2: error: unknown type name 'PBTC_COEXIST' PBTC_COEXIST pBtCoexist; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1700:16: error: 'PBTC_COEXIST' undeclared (first use in this function) pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1700:29: error: expected ';' before 'pBtcContext' pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1701:23: error: invalid type argument of '->' (have 'int') padapter = pBtCoexist->Adapter; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'halbtcoutsrc_GetRfReg': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1708:2: error: unknown type name 'PBTC_COEXIST' PBTC_COEXIST pBtCoexist; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1712:16: error: 'PBTC_COEXIST' undeclared (first use in this function) pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1712:29: error: expected ';' before 'pBtcContext' pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1713:23: error: invalid type argument of '->' (have 'int') padapter = pBtCoexist->Adapter; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'halbtcoutsrc_SetBtReg': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1720:2: error: unknown type name 'PBTC_COEXIST' PBTC_COEXIST pBtCoexist; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1723:16: error: 'PBTC_COEXIST' undeclared (first use in this function) pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1723:29: error: expected ';' before 'pBtcContext' pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1725:6: error: implicit declaration of function 'halbtcoutsrc_IsHwMailboxExist' [-Werror=implicit-function-declaration] if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == _TRUE) { ^~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1735:12: error: implicit declaration of function '_btmpoper_cmd' [-Werror=implicit-function-declaration] status = _btmpoper_cmd(pBtCoexist, op_code, 0, (u8 )&Data, 3); ^~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'halbtcoutsrc_GetBtReg': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1775:2: error: unknown type name 'PBTC_COEXIST' PBTC_COEXIST pBtCoexist; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1778:16: error: 'PBTC_COEXIST' undeclared (first use in this function) pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1778:29: error: expected ';' before 'pBtcContext' pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'halbtcoutsrc_FillH2cCmd': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1808:2: error: unknown type name 'PBTC_COEXIST' PBTC_COEXIST pBtCoexist; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1812:16: error: 'PBTC_COEXIST' undeclared (first use in this function) pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1812:29: error: expected ';' before 'pBtcContext' pBtCoexist = (PBTC_COEXIST)pBtcContext; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1813:23: error: invalid type argument of '->' (have 'int') padapter = pBtCoexist->Adapter; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'halbtcoutsrc_coex_offload_init': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1822:17: error: request for member 'h2c_req_num' in something not a structure or union gl_coex_offload.h2c_req_num = 0; ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1823:17: error: request for member 'cnt_h2c_sent' in something not a structure or union gl_coex_offload.cnt_h2c_sent = 0; ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1824:17: error: request for member 'cnt_c2h_ack' in something not a structure or union gl_coex_offload.cnt_c2h_ack = 0; ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1825:17: error: request for member 'cnt_c2h_ind' in something not a structure or union gl_coex_offload.cnt_c2h_ind = 0; ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1827:18: error: 'COL_MAX_H2C_REQ_NUM' undeclared (first use in this function) for (i = 0; i < COL_MAX_H2C_REQ_NUM; i++) ^~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1828:35: error: request for member 'c2h_event' in something not a structure or union init_completion(&gl_coex_offload.c2h_event[i]); ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: At top level: drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1831:8: error: unknown type name 'COL_H2C_STATUS' static COL_H2C_STATUS halbtcoutsrc_send_h2c(PADAPTER Adapter, PCOL_H2C pcol_h2c, u16 h2c_cmd_len) ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1831:63: error: unknown type name 'PCOL_H2C' static COL_H2C_STATUS halbtcoutsrc_send_h2c(PADAPTER Adapter, PCOL_H2C pcol_h2c, u16 h2c_cmd_len) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1862:8: error: unknown type name 'COL_H2C_STATUS' static COL_H2C_STATUS halbtcoutsrc_check_c2h_ack(PADAPTER Adapter, PCOL_SINGLE_H2C_RECORD pH2cRecord) ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1862:68: error: unknown type name 'PCOL_SINGLE_H2C_RECORD' static COL_H2C_STATUS halbtcoutsrc_check_c2h_ack(PADAPTER Adapter, PCOL_SINGLE_H2C_RECORD pH2cRecord) ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1900:1: error: unknown type name 'COL_H2C_STATUS' COL_H2C_STATUS halbtcoutsrc_CoexH2cProcess(void pBtCoexist, ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'halbtcoutsrc_CoexH2cProcess': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1903:57: error: dereferencing pointer to incomplete type 'struct btc_coexist' PADAPTER Adapter = ((struct btc_coexist *)pBtCoexist)->Adapter; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1904:22: error: 'BTC_TMP_BUF_SHORT' undeclared (first use in this function) u8 H2C_Parameter[BTC_TMP_BUF_SHORT] = {0}; ^~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1905:2: error: unknown type name 'PCOL_H2C' PCOL_H2C pcol_h2c = (PCOL_H2C)&H2C_Parameter[0]; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1905:25: error: 'PCOL_H2C' undeclared (first use in this function) PCOL_H2C pcol_h2c = (PCOL_H2C)&H2C_Parameter[0]; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1907:2: error: unknown type name 'COL_H2C_STATUS' COL_H2C_STATUS h2c_status = COL_STATUS_C2H_OK, c2h_status = COL_STATUS_C2H_OK; ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1907:31: error: 'COL_STATUS_C2H_OK' undeclared (first use in this function) COL_H2C_STATUS h2c_status = COL_STATUS_C2H_OK, c2h_status = COL_STATUS_C2H_OK; ^~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1908:2: error: unknown type name 'COL_H2C_STATUS' COL_H2C_STATUS ret_status = COL_STATUS_C2H_OK; ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1911:10: error: invalid type argument of '->' (have 'int') pcol_h2c->opcode = opcode; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1912:10: error: invalid type argument of '->' (have 'int') pcol_h2c->opcode_ver = opcode_ver; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1913:10: error: invalid type argument of '->' (have 'int') pcol_h2c->req_num = gl_coex_offload.h2c_req_num; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1913:37: error: request for member 'h2c_req_num' in something not a structure or union pcol_h2c->req_num = gl_coex_offload.h2c_req_num; ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1914:17: error: request for member 'h2c_req_num' in something not a structure or union gl_coex_offload.h2c_req_num++; ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1915:17: error: request for member 'h2c_req_num' in something not a structure or union gl_coex_offload.h2c_req_num %= 16; ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1917:24: error: invalid type argument of '->' (have 'int') _rtw_memmove(&pcol_h2c->buf[0], ph2c_par, h2c_par_len); ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1923:2: error: implicit declaration of function 'BT_PrintData' [-Werror=implicit-function-declaration] BT_PrintData(Adapter, "[COL], H2C cmd: ", col_h2c_len, H2C_Parameter); ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1925:17: error: request for member 'cnt_h2c_sent' in something not a structure or union gl_coex_offload.cnt_h2c_sent++; ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1927:17: error: request for member 'h2c_record' in something not a structure or union gl_coex_offload.h2c_record[opcode].count++; ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1928:17: error: request for member 'h2c_record' in something not a structure or union gl_coex_offload.h2c_record[opcode].h2c_len = col_h2c_len; ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1929:38: error: request for member 'h2c_record' in something not a structure or union _rtw_memmove((PVOID)&gl_coex_offload.h2c_record[opcode].h2c_buf[0], (PVOID)pcol_h2c, col_h2c_len); ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1929:70: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] error, forbidden warning:hal_btcoex.c:1929 _rtw_memmove((PVOID)&gl_coex_offload.h2c_record[opcode].h2c_buf[0], (PVOID)pcol_h2c, col_h2c_len); ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1931:15: error: implicit declaration of function 'halbtcoutsrc_send_h2c' [-Werror=implicit-function-declaration] h2c_status = halbtcoutsrc_send_h2c(Adapter, pcol_h2c, col_h2c_len); ^~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1933:17: error: request for member 'h2c_record' in something not a structure or union gl_coex_offload.h2c_record[opcode].c2h_ack_len = 0; ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1937:16: error: implicit declaration of function 'halbtcoutsrc_check_c2h_ack' [-Werror=implicit-function-declaration] c2h_status = halbtcoutsrc_check_c2h_ack(Adapter, &gl_coex_offload.h2c_record[opcode]); ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1937:68: error: request for member 'h2c_record' in something not a structure or union c2h_status = halbtcoutsrc_check_c2h_ack(Adapter, &gl_coex_offload.h2c_record[opcode]); ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1944:17: error: request for member 'h2c_record' in something not a structure or union gl_coex_offload.h2c_record[opcode].status[ret_status]++; ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:1945:17: error: request for member 'status' in something not a structure or union gl_coex_offload.status[ret_status]++; ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'EXhalbtcoutsrc_BindBtCoexWithAdapter': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2093:2: error: unknown type name 'PBTC_COEXIST' PBTC_COEXIST pBtCoexist=&GLBtCoexist; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2093:27: warning: initialization makes integer from pointer without a cast [-Wint-conversion] error, forbidden warning:hal_btcoex.c:2093 PBTC_COEXIST pBtCoexist=&GLBtCoexist; ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2096:15: error: invalid type argument of '->' (have 'int') if(pBtCoexist->bBinded) ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2099:13: error: invalid type argument of '->' (have 'int') pBtCoexist->bBinded = _TRUE; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2101:12: error: invalid type argument of '->' (have 'int') pBtCoexist->statistics.cntBind++; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2103:12: error: invalid type argument of '->' (have 'int') pBtCoexist->Adapter = padapter; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2105:12: error: invalid type argument of '->' (have 'int') pBtCoexist->stack_info.profile_notified = _FALSE; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2107:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btInfo.bBtCtrlAggBufSize = _FALSE; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2108:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btInfo.aggBufSize = 5; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2110:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btInfo.bIncreaseScanDevNum = _FALSE; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2111:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btInfo.bMiracastPlusBt = _FALSE; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2120:12: error: invalid type argument of '->' (have 'int') pBtCoexist->board_info.btdm_ant_pos = BTC_ANTENNA_AT_MAIN_PORT; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2120:40: error: 'BTC_ANTENNA_AT_MAIN_PORT' undeclared (first use in this function) pBtCoexist->board_info.btdm_ant_pos = BTC_ANTENNA_AT_MAIN_PORT; ^~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2122:12: error: invalid type argument of '->' (have 'int') pBtCoexist->board_info.btdm_ant_det_finish = _FALSE; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2123:12: error: invalid type argument of '->' (have 'int') pBtCoexist->board_info.btdm_ant_num_by_ant_det = 1; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2125:12: error: invalid type argument of '->' (have 'int') pBtCoexist->board_info.tfbga_package = EXhalbtcoutsrc_IsTfbgaPackageType((PADAPTER)padapter); ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2127:16: error: invalid type argument of '->' (have 'int') if (pBtCoexist->board_info.tfbga_package) ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'EXhalbtcoutsrc_InitlizeVariables': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2137:2: error: unknown type name 'PBTC_COEXIST' PBTC_COEXIST pBtCoexist = &GLBtCoexist; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2137:28: warning: initialization makes integer from pointer without a cast [-Wint-conversion] error, forbidden warning:hal_btcoex.c:2137 PBTC_COEXIST pBtCoexist = &GLBtCoexist; ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2148:12: error: invalid type argument of '->' (have 'int') pBtCoexist->chip_interface = BTC_INTF_USB; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2148:31: error: 'BTC_INTF_USB' undeclared (first use in this function) pBtCoexist->chip_interface = BTC_INTF_USB; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2157:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btc_read_1byte = halbtcoutsrc_Read1Byte; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2158:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btc_write_1byte = halbtcoutsrc_Write1Byte; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2159:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btc_write_1byte_bitmask = halbtcoutsrc_BitMaskWrite1Byte; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2160:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btc_read_2byte = halbtcoutsrc_Read2Byte; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2161:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btc_write_2byte = halbtcoutsrc_Write2Byte; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2162:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btc_read_4byte = halbtcoutsrc_Read4Byte; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2163:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btc_write_4byte = halbtcoutsrc_Write4Byte; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2164:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btc_write_local_reg_1byte = halbtcoutsrc_WriteLocalReg1Byte; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2166:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btc_set_bb_reg = halbtcoutsrc_SetBbReg; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2167:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btc_get_bb_reg = halbtcoutsrc_GetBbReg; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2169:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btc_set_rf_reg = halbtcoutsrc_SetRfReg; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2170:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btc_get_rf_reg = halbtcoutsrc_GetRfReg; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2172:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btc_fill_h2c = halbtcoutsrc_FillH2cCmd; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2173:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btc_disp_dbg_msg = halbtcoutsrc_DisplayDbgMsg; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2175:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btc_get = halbtcoutsrc_Get; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2176:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btc_set = halbtcoutsrc_Set; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2177:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btc_get_bt_reg = halbtcoutsrc_GetBtReg; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2178:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btc_set_bt_reg = halbtcoutsrc_SetBtReg; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2179:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btc_set_bt_ant_detection = halbtcoutsrc_SetBtAntDetection; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2180:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btc_coex_h2c_process = halbtcoutsrc_CoexH2cProcess; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2182:12: error: invalid type argument of '->' (have 'int') pBtCoexist->cli_buf = &GLBtcDbgBuf[0]; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2184:12: error: invalid type argument of '->' (have 'int') pBtCoexist->board_info.single_ant_path = 0; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2199:87: warning: passing argument 4 of '_init_timer' makes pointer from integer without a cast [-Wint-conversion] error, forbidden warning:hal_btcoex.c:2199 _init_timer(&GLBtcBtMpOperTimer, ((PADAPTER)padapter)->pnetdev, _btmpoper_timer_hdl, pBtCoexist); ^~~~~~ In file included from drivers/net/wireless/rockchip_wlan/rtl8723bu/include/osdep_service.h:41:0, from drivers/net/wireless/rockchip_wlan/rtl8723bu/include/drv_types.h:32, from drivers/net/wireless/rockchip_wlan/rtl8723bu/include/../hal/phydm/phydm_types.h:172, from drivers/net/wireless/rockchip_wlan/rtl8723bu/include/../hal/phydm/phydm_precomp.h:24, from drivers/net/wireless/rockchip_wlan/rtl8723bu/include/hal_data.h:25, from drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:24: drivers/net/wireless/rockchip_wlan/rtl8723bu/include/osdep_service_linux.h:269:22: note: expected 'void ' but argument is of type 'int' __inline static void _init_timer(_timer ptimer,_nic_hdl nic_hdl,void pfunc,void cntx) ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: At top level: drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2212:36: error: unknown type name 'PBTC_COEXIST' void EXhalbtcoutsrc_PowerOnSetting(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2227:37: error: unknown type name 'PBTC_COEXIST' void EXhalbtcoutsrc_PreLoadFirmware(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2243:36: error: unknown type name 'PBTC_COEXIST' void EXhalbtcoutsrc_init_hw_config(PBTC_COEXIST pBtCoexist, u8 bWifiOnly) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2287:34: error: unknown type name 'PBTC_COEXIST' void EXhalbtcoutsrc_init_coex_dm(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2333:32: error: unknown type name 'PBTC_COEXIST' void EXhalbtcoutsrc_ips_notify(PBTC_COEXIST pBtCoexist, u8 type) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2397:32: error: unknown type name 'PBTC_COEXIST' void EXhalbtcoutsrc_lps_notify(PBTC_COEXIST pBtCoexist, u8 type) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2457:33: error: unknown type name 'PBTC_COEXIST' void EXhalbtcoutsrc_scan_notify(PBTC_COEXIST pBtCoexist, u8 type) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2520:36: error: unknown type name 'PBTC_COEXIST' void EXhalbtcoutsrc_connect_notify(PBTC_COEXIST pBtCoexist, u8 action) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2577:41: error: unknown type name 'PBTC_COEXIST' void EXhalbtcoutsrc_media_status_notify(PBTC_COEXIST pBtCoexist, RT_MEDIA_STATUS mediaStatus) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2635:44: error: unknown type name 'PBTC_COEXIST' void EXhalbtcoutsrc_specific_packet_notify(PBTC_COEXIST pBtCoexist, u8 pktType) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2699:36: error: unknown type name 'PBTC_COEXIST' void EXhalbtcoutsrc_bt_info_notify(PBTC_COEXIST pBtCoexist, u8 tmpBuf, u8 length) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2750:5: error: unknown type name 'PBTC_COEXIST' IN PBTC_COEXIST pBtCoexist, ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2779:42: error: unknown type name 'PBTC_COEXIST' void EXhalbtcoutsrc_StackOperationNotify(PBTC_COEXIST pBtCoexist, u8 type) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2811:33: error: unknown type name 'PBTC_COEXIST' void EXhalbtcoutsrc_halt_notify(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2855:37: error: unknown type name 'PBTC_COEXIST' void EXhalbtcoutsrc_SwitchBtTRxMask(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2867:32: error: unknown type name 'PBTC_COEXIST' void EXhalbtcoutsrc_pnp_notify(PBTC_COEXIST pBtCoexist, u8 pnpState) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2910:44: error: unknown type name 'PBTC_COEXIST' void EXhalbtcoutsrc_ScoreBoardStatusNotify(PBTC_COEXIST pBtCoexist, u8 tmpBuf, u8 length) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2918:34: error: unknown type name 'PBTC_COEXIST' void EXhalbtcoutsrc_CoexDmSwitch(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2942:32: error: unknown type name 'PBTC_COEXIST' void EXhalbtcoutsrc_periodical(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:2996:33: error: unknown type name 'PBTC_COEXIST' void EXhalbtcoutsrc_dbg_control(PBTC_COEXIST pBtCoexist, u8 opCode, u8 opLen, u8 *pData) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'EXhalbtcoutsrc_UpdateMinBtRssi': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3114:2: error: unknown type name 'PBTC_COEXIST' PBTC_COEXIST pBtCoexist = &GLBtCoexist; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3114:28: warning: initialization makes integer from pointer without a cast [-Wint-conversion] error, forbidden warning:hal_btcoex.c:3114 PBTC_COEXIST pBtCoexist = &GLBtCoexist; ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3119:12: error: invalid type argument of '->' (have 'int') pBtCoexist->stack_info.min_bt_rssi = btRssi; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'EXhalbtcoutsrc_SetHciVersion': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3124:2: error: unknown type name 'PBTC_COEXIST' PBTC_COEXIST pBtCoexist = &GLBtCoexist; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3124:28: warning: initialization makes integer from pointer without a cast [-Wint-conversion] error, forbidden warning:hal_btcoex.c:3124 PBTC_COEXIST pBtCoexist = &GLBtCoexist; ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3129:12: error: invalid type argument of '->' (have 'int') pBtCoexist->stack_info.hci_version = hciVersion; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'EXhalbtcoutsrc_SetBtPatchVersion': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3134:2: error: unknown type name 'PBTC_COEXIST' PBTC_COEXIST pBtCoexist = &GLBtCoexist; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3134:28: warning: initialization makes integer from pointer without a cast [-Wint-conversion] error, forbidden warning:hal_btcoex.c:3134 PBTC_COEXIST pBtCoexist = &GLBtCoexist; ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3139:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btInfo.btRealFwVer = btPatchVersion; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3140:12: error: invalid type argument of '->' (have 'int') pBtCoexist->btInfo.btHciVer = btHciVersion; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'EXhalbtcoutsrc_SetChipType': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3158:4: error: invalid use of undefined type 'struct btc_coexist' GLBtCoexist.board_info.bt_chip_type = BTC_CHIP_UNDEF; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3158:42: error: 'BTC_CHIP_UNDEF' undeclared (first use in this function) GLBtCoexist.board_info.bt_chip_type = BTC_CHIP_UNDEF; ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3161:4: error: invalid use of undefined type 'struct btc_coexist' GLBtCoexist.board_info.bt_chip_type = BTC_CHIP_CSR_BC4; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3161:42: error: 'BTC_CHIP_CSR_BC4' undeclared (first use in this function) GLBtCoexist.board_info.bt_chip_type = BTC_CHIP_CSR_BC4; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3164:4: error: invalid use of undefined type 'struct btc_coexist' GLBtCoexist.board_info.bt_chip_type = BTC_CHIP_CSR_BC8; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3164:42: error: 'BTC_CHIP_CSR_BC8' undeclared (first use in this function) GLBtCoexist.board_info.bt_chip_type = BTC_CHIP_CSR_BC8; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3167:4: error: invalid use of undefined type 'struct btc_coexist' GLBtCoexist.board_info.bt_chip_type = BTC_CHIP_RTL8723A; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3167:42: error: 'BTC_CHIP_RTL8723A' undeclared (first use in this function) GLBtCoexist.board_info.bt_chip_type = BTC_CHIP_RTL8723A; ^~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3170:4: error: invalid use of undefined type 'struct btc_coexist' GLBtCoexist.board_info.bt_chip_type = BTC_CHIP_RTL8821; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3170:42: error: 'BTC_CHIP_RTL8821' undeclared (first use in this function) GLBtCoexist.board_info.bt_chip_type = BTC_CHIP_RTL8821; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3173:4: error: invalid use of undefined type 'struct btc_coexist' GLBtCoexist.board_info.bt_chip_type = BTC_CHIP_RTL8723B; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3173:42: error: 'BTC_CHIP_RTL8723B' undeclared (first use in this function) GLBtCoexist.board_info.bt_chip_type = BTC_CHIP_RTL8723B; ^~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'EXhalbtcoutsrc_SetAntNum': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3180:6: error: 'BT_COEX_ANT_TYPE_PG' undeclared (first use in this function) if (BT_COEX_ANT_TYPE_PG == type) ^~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3182:3: error: invalid use of undefined type 'struct btc_coexist' GLBtCoexist.board_info.pg_ant_num = antNum; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3183:3: error: invalid use of undefined type 'struct btc_coexist' GLBtCoexist.board_info.btdm_ant_num = antNum; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3194:11: error: 'BT_COEX_ANT_TYPE_ANTDIV' undeclared (first use in this function) else if (BT_COEX_ANT_TYPE_ANTDIV == type) ^~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3196:3: error: invalid use of undefined type 'struct btc_coexist' GLBtCoexist.board_info.btdm_ant_num = antNum; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3199:11: error: 'BT_COEX_ANT_TYPE_DETECTED' undeclared (first use in this function) else if (BT_COEX_ANT_TYPE_DETECTED == type) ^~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3201:3: error: invalid use of undefined type 'struct btc_coexist' GLBtCoexist.board_info.btdm_ant_num = antNum; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'EXhalbtcoutsrc_SetSingleAntPath': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3211:2: error: invalid use of undefined type 'struct btc_coexist' GLBtCoexist.board_info.single_ant_path = singleAntPath; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: At top level: drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3214:39: error: unknown type name 'PBTC_COEXIST' void EXhalbtcoutsrc_DisplayBtCoexInfo(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3260:41: error: unknown type name 'PBTC_COEXIST' void EXhalbtcoutsrc_DisplayAntDetection(PBTC_COEXIST pBtCoexist) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3276:35: error: unknown type name 'PBTC_COEXIST' void EXhalbtcoutsrc_BTOffOnNotify(PBTC_COEXIST pBtCoexist, u8 bBTON) ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_IsBtDisabled': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3375:2: error: invalid use of undefined type 'struct btc_coexist' if (GLBtCoexist.btInfo.bBtDisabled) ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_SetPgAntNum': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3409:27: error: 'BT_COEX_ANT_TYPE_PG' undeclared (first use in this function) EXhalbtcoutsrc_SetAntNum(BT_COEX_ANT_TYPE_PG, antNum); ^~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_Initialize': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3433:37: error: invalid application of 'sizeof' to incomplete type 'struct btc_coexist' _rtw_memset(&GLBtCoexist, 0, sizeof(GLBtCoexist)); ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_PowerOnSetting': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3442:2: error: implicit declaration of function 'EXhalbtcoutsrc_PowerOnSetting' [-Werror=implicit-function-declaration] EXhalbtcoutsrc_PowerOnSetting(&GLBtCoexist); ^~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_PreLoadFirmware': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3447:2: error: implicit declaration of function 'EXhalbtcoutsrc_PreLoadFirmware' [-Werror=implicit-function-declaration] EXhalbtcoutsrc_PreLoadFirmware(&GLBtCoexist); ^~~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_InitHwConfig': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3455:2: error: implicit declaration of function 'EXhalbtcoutsrc_init_hw_config' [-Werror=implicit-function-declaration] EXhalbtcoutsrc_init_hw_config(&GLBtCoexist, bWifiOnly); ^~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3456:2: error: implicit declaration of function 'EXhalbtcoutsrc_init_coex_dm' [-Werror=implicit-function-declaration] EXhalbtcoutsrc_init_coex_dm(&GLBtCoexist); ^~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_IpsNotify': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3461:2: error: implicit declaration of function 'EXhalbtcoutsrc_ips_notify' [-Werror=implicit-function-declaration] EXhalbtcoutsrc_ips_notify(&GLBtCoexist, type); ^~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_LpsNotify': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3466:2: error: implicit declaration of function 'EXhalbtcoutsrc_lps_notify' [-Werror=implicit-function-declaration] EXhalbtcoutsrc_lps_notify(&GLBtCoexist, type); ^~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_ScanNotify': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3471:2: error: implicit declaration of function 'EXhalbtcoutsrc_scan_notify' [-Werror=implicit-function-declaration] EXhalbtcoutsrc_scan_notify(&GLBtCoexist, type); ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_ConnectNotify': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3476:2: error: implicit declaration of function 'EXhalbtcoutsrc_connect_notify' [-Werror=implicit-function-declaration] EXhalbtcoutsrc_connect_notify(&GLBtCoexist, action); ^~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_MediaStatusNotify': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3481:2: error: implicit declaration of function 'EXhalbtcoutsrc_media_status_notify' [-Werror=implicit-function-declaration] EXhalbtcoutsrc_media_status_notify(&GLBtCoexist, mediaStatus); ^~~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_SpecialPacketNotify': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3486:2: error: implicit declaration of function 'EXhalbtcoutsrc_specific_packet_notify' [-Werror=implicit-function-declaration] EXhalbtcoutsrc_specific_packet_notify(&GLBtCoexist, pktType); ^~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_BtInfoNotify': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3499:2: error: implicit declaration of function 'EXhalbtcoutsrc_bt_info_notify' [-Werror=implicit-function-declaration] EXhalbtcoutsrc_bt_info_notify(&GLBtCoexist, tmpBuf, length); ^~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_SuspendNotify': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3544:11: error: 'BTC_WIFI_PNP_SLEEP' undeclared (first use in this function) state = BTC_WIFI_PNP_SLEEP; ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3546:11: error: 'BTC_WIFI_PNP_WAKE_UP' undeclared (first use in this function) state = BTC_WIFI_PNP_WAKE_UP; ^~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3548:2: error: implicit declaration of function 'EXhalbtcoutsrc_pnp_notify' [-Werror=implicit-function-declaration] EXhalbtcoutsrc_pnp_notify(&GLBtCoexist, state); ^~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_HaltNotify': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3553:2: error: implicit declaration of function 'EXhalbtcoutsrc_halt_notify' [-Werror=implicit-function-declaration] EXhalbtcoutsrc_halt_notify(&GLBtCoexist); ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_ScoreBoardStatusNotify': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3558:2: error: implicit declaration of function 'EXhalbtcoutsrc_ScoreBoardStatusNotify' [-Werror=implicit-function-declaration] EXhalbtcoutsrc_ScoreBoardStatusNotify(&GLBtCoexist, tmpBuf, length); ^~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_SwitchBtTRxMask': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3563:2: error: implicit declaration of function 'EXhalbtcoutsrc_SwitchBtTRxMask' [-Werror=implicit-function-declaration] EXhalbtcoutsrc_SwitchBtTRxMask(&GLBtCoexist); ^~~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_Hanlder': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3568:2: error: implicit declaration of function 'EXhalbtcoutsrc_periodical' [-Werror=implicit-function-declaration] EXhalbtcoutsrc_periodical(&GLBtCoexist); ^~~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_IsBTCoexRejectAMPDU': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3573:2: error: invalid use of undefined type 'struct btc_coexist' return (s32)GLBtCoexist.btInfo.bRejectAggPkt; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_IsBTCoexCtrlAMPDUSize': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3578:2: error: invalid use of undefined type 'struct btc_coexist' return (s32)GLBtCoexist.btInfo.bBtCtrlAggBufSize; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_GetAMPDUSize': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3583:2: error: invalid use of undefined type 'struct btc_coexist' return (u32)GLBtCoexist.btInfo.aggBufSize; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_SetManualControl': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3588:2: error: invalid use of undefined type 'struct btc_coexist' GLBtCoexist.manual_control = bmanual; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_1Ant': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3596:2: error: invalid use of undefined type 'struct btc_coexist' if (GLBtCoexist.board_info.btdm_ant_num == 1) ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_IsBtControlLps': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3607:2: error: invalid use of undefined type 'struct btc_coexist' if (GLBtCoexist.btInfo.bBtCtrlLps) ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3610:2: error: invalid use of undefined type 'struct btc_coexist' if (GLBtCoexist.btInfo.bBtDisabled) ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_IsLpsOn': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3621:2: error: invalid use of undefined type 'struct btc_coexist' if (GLBtCoexist.btInfo.bBtDisabled) ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3624:2: error: invalid use of undefined type 'struct btc_coexist' if (GLBtCoexist.btInfo.bBtLpsOn) ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_RpwmVal': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3632:2: error: invalid use of undefined type 'struct btc_coexist' return GLBtCoexist.btInfo.rpwmVal; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_LpsVal': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3637:2: error: invalid use of undefined type 'struct btc_coexist' return GLBtCoexist.btInfo.lpsVal; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_GetRaMask': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3645:2: error: invalid use of undefined type 'struct btc_coexist' if (GLBtCoexist.btInfo.bBtDisabled) ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3654:2: error: invalid use of undefined type 'struct btc_coexist' return GLBtCoexist.btInfo.raMask; ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_RecordPwrMode': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3663:2: error: invalid use of undefined type 'struct btc_coexist' _rtw_memcpy(GLBtCoexist.pwrModeVal, pCmdBuf, cmdLen); ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_DisplayBtCoexInfo': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3673:2: error: implicit declaration of function 'EXhalbtcoutsrc_DisplayBtCoexInfo' [-Werror=implicit-function-declaration] EXhalbtcoutsrc_DisplayBtCoexInfo(&GLBtCoexist); ^~~~~~~~ In file included from drivers/net/wireless/rockchip_wlan/rtl8723bu/include/drv_types.h:32:0, from drivers/net/wireless/rockchip_wlan/rtl8723bu/include/../hal/phydm/phydm_types.h:172, from drivers/net/wireless/rockchip_wlan/rtl8723bu/include/../hal/phydm/phydm_precomp.h:24, from drivers/net/wireless/rockchip_wlan/rtl8723bu/include/hal_data.h:25, from drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:24: drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_GetDBG': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3718:16: error: 'COMP_COEX' undeclared (first use in this function) GLBtcDbgType[COMP_COEX]); ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/include/osdep_service.h:627:78: note: in definition of macro 'rtw_sprintf'

define rtw_sprintf(buf, size, format, arg...) snprintf(buf, size, format, ##arg)

                                                                          ^~~

drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_IncreaseScanDeviceNum': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3822:2: error: invalid use of undefined type 'struct btc_coexist' if (GLBtCoexist.btInfo.bIncreaseScanDevNum) ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_IsBtLinkExist': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3830:2: error: invalid use of undefined type 'struct btc_coexist' if (GLBtCoexist.bt_link_info.bt_link_exist) ^~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_BTOffOnNotify': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3853:2: error: implicit declaration of function 'EXhalbtcoutsrc_BTOffOnNotify' [-Werror=implicit-function-declaration] EXhalbtcoutsrc_BTOffOnNotify(&GLBtCoexist, bBTON); ^~~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_SetAntIsolationType': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3871:3: error: unknown type name 'PBTC_COEXIST' PBTC_COEXIST pBtCoexist = &GLBtCoexist; ^~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3871:29: warning: initialization makes integer from pointer without a cast [-Wint-conversion] error, forbidden warning:hal_btcoex.c:3871 PBTC_COEXIST pBtCoexist = &GLBtCoexist; ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_btreg_read': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:4031:2: error: implicit declaration of function 'halbtcoutsrc_LeaveLowPower' [-Werror=implicit-function-declaration] halbtcoutsrc_LeaveLowPower(&GLBtCoexist); ^~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:4035:2: error: implicit declaration of function 'halbtcoutsrc_NormalLowPower' [-Werror=implicit-function-declaration] halbtcoutsrc_NormalLowPower(&GLBtCoexist); ^~~~~~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: At top level: drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:147:20: error: storage size of 'GLBtCoexist' isn't known struct btc_coexist GLBtCoexist; ^~~ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_IsBtDisabled': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3379:1: warning: control reaches end of non-void function [-Wreturn-type] error, forbidden warning:hal_btcoex.c:3379 } ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_IsBTCoexRejectAMPDU': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3574:1: warning: control reaches end of non-void function [-Wreturn-type] error, forbidden warning:hal_btcoex.c:3574 } ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_IsBTCoexCtrlAMPDUSize': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3579:1: warning: control reaches end of non-void function [-Wreturn-type] error, forbidden warning:hal_btcoex.c:3579 } ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_GetAMPDUSize': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3584:1: warning: control reaches end of non-void function [-Wreturn-type] error, forbidden warning:hal_btcoex.c:3584 } ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_RpwmVal': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3633:1: warning: control reaches end of non-void function [-Wreturn-type] error, forbidden warning:hal_btcoex.c:3633 } ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_LpsVal': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3638:1: warning: control reaches end of non-void function [-Wreturn-type] error, forbidden warning:hal_btcoex.c:3638 } ^ drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c: In function 'hal_btcoex_GetRaMask': drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.c:3655:1: warning: control reaches end of non-void function [-Wreturn-type] error, forbidden warning:hal_btcoex.c:3655 } ^ cc1: some warnings being treated as errors scripts/Makefile.build:277: recipe for target 'drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.o' failed make[6]: [drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_btcoex.o] Error 1 scripts/Makefile.build:484: recipe for target 'drivers/net/wireless/rockchip_wlan/rtl8723bu' failed make[5]: [drivers/net/wireless/rockchip_wlan/rtl8723bu] Error 2 scripts/Makefile.build:484: recipe for target 'drivers/net/wireless/rockchip_wlan' failed make[4]: [drivers/net/wireless/rockchip_wlan] Error 2 scripts/Makefile.build:484: recipe for target 'drivers/net/wireless' failed make[3]: [drivers/net/wireless] Error 2 scripts/Makefile.build:484: recipe for target 'drivers/net' failed make[2]: [drivers/net] Error 2 Makefile:1036: recipe for target 'drivers' failed make[1]: [drivers] Error 2 arch/arm64/Makefile:167: recipe for target 'kernel.img' failed make: [kernel.img] Error 2 make: Deleting file 'kernel.img'

baiywt commented 4 years ago
  1. Make sure that the host system is ubuntu18.04 desktop(64 bit).
  2. Kernel and scripts project are up to date. Have you ever modified the source code ?
minchieh-fay commented 4 years ago

只有18.04.1 desktop才能编过……