tree: https://github.com/frank-w/BPI-R2-4.14 5.12-rc head: f2db06115616ed84e25d2b054619fed88b456871 commit: db1f3efbe988d250ba9fce86d1fde4a2225b7e73 [6/21] mt6625l: include wifi-code config: arm-randconfig-r002-20210322 (attached as .config) compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/frank-w/BPI-R2-4.14/commit/db1f3efbe988d250ba9fce86d1fde4a2225b7e73 git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14 git fetch --no-tags frank-w-bpi-r2-4.14 5.12-rc git checkout db1f3efbe988d250ba9fce86d1fde4a2225b7e73 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): In file included from drivers/misc/mediatek/btif/common/plat_inc/btif_pub.h:17, from drivers/misc/mediatek/btif/common/inc/mtk_btif.h:37, from drivers/misc/mediatek/btif/common/mtk_btif_exp.c:20: drivers/misc/mediatek/btif/common/plat_inc/plat_common.h: In function 'hal_log_print': >> drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:2: warning: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 64 | vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args); | ^~~~~~~~~ -- In file included from drivers/misc/mediatek/btif/common/plat_inc/btif_pub.h:17, from drivers/misc/mediatek/btif/common/mtk_btif.c:37: drivers/misc/mediatek/btif/common/plat_inc/plat_common.h: In function 'hal_log_print': >> drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:2: warning: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 64 | vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args); | ^~~~~~~~~ drivers/misc/mediatek/btif/common/mtk_btif.c: In function 'mtk_btif_restore_noirq': >> drivers/misc/mediatek/btif/common/mtk_btif.c:379:6: warning: variable 'i_ret' set but not used [-Wunused-but-set-variable] 379 | int i_ret = 0; | ^~~~~ drivers/misc/mediatek/btif/common/mtk_btif.c: In function 'flag_store': >> drivers/misc/mediatek/btif/common/mtk_btif.c:773:6: warning: variable 'result' set but not used [-Wunused-but-set-variable] 773 | int result = 0; | ^~~~~~ drivers/misc/mediatek/btif/common/mtk_btif.c: In function 'btif_log_buf_dmp_out': >> drivers/misc/mediatek/btif/common/mtk_btif.c:3029:17: warning: variable 'p_buf' set but not used [-Wunused-but-set-variable] 3029 | unsigned char *p_buf = NULL; | ^~~~~ -- In file included from drivers/misc/mediatek/btif/common/plat_inc/btif_dma_pub.h:19, from drivers/misc/mediatek/btif/common/plat_inc/btif_dma_priv.h:18, from drivers/misc/mediatek/btif/common/btif_dma_plat.c:22: drivers/misc/mediatek/btif/common/plat_inc/plat_common.h: In function 'hal_log_print': >> drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:2: warning: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 64 | vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args); | ^~~~~~~~~ drivers/misc/mediatek/btif/common/btif_dma_plat.c: In function 'hal_dma_pm_ops': >> drivers/misc/mediatek/btif/common/btif_dma_plat.c:1313:17: warning: variable 'flag' set but not used [-Wunused-but-set-variable] 1313 | unsigned int flag = 0; | ^~~~ -- In file included from drivers/misc/mediatek/btif/common/plat_inc/btif_pub.h:17, from drivers/misc/mediatek/btif/common/btif_plat.c:21: drivers/misc/mediatek/btif/common/plat_inc/plat_common.h: In function 'hal_log_print': >> drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:2: warning: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 64 | vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args); | ^~~~~~~~~ drivers/misc/mediatek/btif/common/btif_plat.c: In function 'hal_btif_pm_ops': >> drivers/misc/mediatek/btif/common/btif_plat.c:1343:17: warning: variable 'flag' set but not used [-Wunused-but-set-variable] 1343 | unsigned int flag = 0; | ^~~~ -- >> cc1: error: arch/arm/mach-mt7623//dct/dct: No such file or directory [-Werror=missing-include-dirs] cc1: all warnings being treated as errors -- >> cc1: error: arch/arm/mach-mt7623//dct/dct: No such file or directory [-Werror=missing-include-dirs] >> drivers/misc/mediatek/connectivity/common/common_detect/wmt_detect_pwr.c:51:5: error: no previous prototype for '_wmt_detect_output_low' [-Werror=missing-prototypes] 51 | int _wmt_detect_output_low(unsigned int id) | ^~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors -- >> cc1: warning: drivers/misc/mediatek/base/power/include: No such file or directory [-Wmissing-include-dirs] In file included from drivers/misc/mediatek/connectivity/wlan/gen2/include/mgmt/scan.h:269, from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:237, from drivers/misc/mediatek/connectivity/wlan/gen2/common/dump.c:47: drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:152:1: warning: 'lstats_vendor_test_policy' defined but not used [-Wunused-const-variable=] 152 | lstats_vendor_test_policy[LSTATS_SUBCMD_MAX + 1] = { | ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:140:1: warning: 'rtt_vendor_test_policy' defined but not used [-Wunused-const-variable=] 140 | rtt_vendor_test_policy[RTT_SUBCMD_MAX + 1] = { | ^~~~~~~~~~~~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:120:1: warning: 'gscan_vendor_test_policy' defined but not used [-Wunused-const-variable=] 120 | gscan_vendor_test_policy[GSCAN_SUBCMD_MAX + 1] = { | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:93:1: warning: 'wifi_vendor_test_policy' defined but not used [-Wunused-const-variable=] 93 | wifi_vendor_test_policy[WIFI_SUBCMD_MAX + 1] = { | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_kal.h:543, from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_os.h:594, from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:171, from drivers/misc/mediatek/connectivity/wlan/gen2/common/dump.c:47: drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:935:21: warning: 'aucRateTableSize' defined but not used [-Wunused-const-variable=] 935 | static const UINT_8 aucRateTableSize[PREAMBLE_OPTION_NUM] = { | ^~~~~~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:878:21: warning: 'aucRateIndex2RateCode' defined but not used [-Wunused-const-variable=] 878 | static const UINT_8 aucRateIndex2RateCode[PREAMBLE_OPTION_NUM][RATE_NUM] = { | ^~~~~~~~~~~~~~~~~~~~~ -- >> cc1: warning: drivers/misc/mediatek/base/power/include: No such file or directory [-Wmissing-include-dirs] drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c: In function 'wlanSendCommand': >> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:2004:14: warning: variable 'prTxCtrl' set but not used [-Wunused-but-set-variable] 2004 | P_TX_CTRL_T prTxCtrl; | ^~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c: In function 'wlanSendNicPowerCtrlCmd': >> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:2575:16: warning: variable 'prGlueInfo' set but not used [-Wunused-but-set-variable] 2575 | P_GLUE_INFO_T prGlueInfo; | ^~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c: In function 'wlanProcessQueuedSwRfb': >> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:3270:14: warning: variable 'prRxCtrl' set but not used [-Wunused-but-set-variable] 3270 | P_RX_CTRL_T prRxCtrl; | ^~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:3269:14: warning: variable 'prTxCtrl' set but not used [-Wunused-but-set-variable] 3269 | P_TX_CTRL_T prTxCtrl; | ^~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c: At top level: >> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:5431:1: warning: no previous prototype for 'wlanoidQueryACSChannelList' [-Wmissing-prototypes] 5431 | wlanoidQueryACSChannelList(IN P_ADAPTER_T prAdapter, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/misc/mediatek/connectivity/wlan/gen2/include/mgmt/scan.h:269, from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:237, from drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:967: drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:152:1: warning: 'lstats_vendor_test_policy' defined but not used [-Wunused-const-variable=] 152 | lstats_vendor_test_policy[LSTATS_SUBCMD_MAX + 1] = { | ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:140:1: warning: 'rtt_vendor_test_policy' defined but not used [-Wunused-const-variable=] 140 | rtt_vendor_test_policy[RTT_SUBCMD_MAX + 1] = { | ^~~~~~~~~~~~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:120:1: warning: 'gscan_vendor_test_policy' defined but not used [-Wunused-const-variable=] 120 | gscan_vendor_test_policy[GSCAN_SUBCMD_MAX + 1] = { | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:93:1: warning: 'wifi_vendor_test_policy' defined but not used [-Wunused-const-variable=] 93 | wifi_vendor_test_policy[WIFI_SUBCMD_MAX + 1] = { | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_kal.h:543, from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_os.h:594, from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:171, from drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:967: drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:935:21: warning: 'aucRateTableSize' defined but not used [-Wunused-const-variable=] 935 | static const UINT_8 aucRateTableSize[PREAMBLE_OPTION_NUM] = { | ^~~~~~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:878:21: warning: 'aucRateIndex2RateCode' defined but not used [-Wunused-const-variable=] 878 | static const UINT_8 aucRateIndex2RateCode[PREAMBLE_OPTION_NUM][RATE_NUM] = { | ^~~~~~~~~~~~~~~~~~~~~ -- >> cc1: warning: drivers/misc/mediatek/base/power/include: No such file or directory [-Wmissing-include-dirs] drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c: In function 'wlanoidQueryBssidList': >> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:1384:16: warning: variable 'prGlueInfo' set but not used [-Wunused-but-set-variable] 1384 | P_GLUE_INFO_T prGlueInfo; | ^~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c: In function 'wlanoidSetBssid': >> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:1704:9: warning: variable 'i4Idx' set but not used [-Wunused-but-set-variable] 1704 | INT_32 i4Idx = -1; | ^~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c: In function 'wlanoidSetSsid': drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:1963:9: warning: variable 'i4Idx' set but not used [-Wunused-but-set-variable] 1963 | INT_32 i4Idx = -1, i4MaxRSSI = INT_MIN; | ^~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c: In function 'wlanoidSetInfrastructureMode': drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:2218:16: warning: variable 'prGlueInfo' set but not used [-Wunused-but-set-variable] 2218 | P_GLUE_INFO_T prGlueInfo; | ^~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c: In function 'wlanoidSetAuthMode': drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:2388:16: warning: variable 'prGlueInfo' set but not used [-Wunused-but-set-variable] 2388 | P_GLUE_INFO_T prGlueInfo; | ^~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c: In function 'wlanoidSetEncryptionStatus': drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:3496:16: warning: variable 'prGlueInfo' set but not used [-Wunused-but-set-variable] 3496 | P_GLUE_INFO_T prGlueInfo; | ^~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c: In function 'wlanoidSetSwCtrlWrite': drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:5428:16: warning: variable 'prGlueInfo' set but not used [-Wunused-but-set-variable] 5428 | P_GLUE_INFO_T prGlueInfo; | ^~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c: In function 'wlanoidSetWapiKey': >> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:8180:10: warning: variable 'pc' set but not used [-Wunused-but-set-variable] 8180 | PUINT_8 pc; | ^~ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c: In function 'wlanoidSetGSCNAction': >> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:10356:16: warning: variable 'prScanInfo' set but not used [-Wunused-but-set-variable] 10356 | P_SCAN_INFO_T prScanInfo; | ^~~~~~~~~~ In file included from drivers/misc/mediatek/connectivity/wlan/gen2/include/mgmt/scan.h:269, from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:237, from drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:1061: At top level: drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:152:1: warning: 'lstats_vendor_test_policy' defined but not used [-Wunused-const-variable=] 152 | lstats_vendor_test_policy[LSTATS_SUBCMD_MAX + 1] = { | ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:140:1: warning: 'rtt_vendor_test_policy' defined but not used [-Wunused-const-variable=] 140 | rtt_vendor_test_policy[RTT_SUBCMD_MAX + 1] = { | ^~~~~~~~~~~~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:120:1: warning: 'gscan_vendor_test_policy' defined but not used [-Wunused-const-variable=] 120 | gscan_vendor_test_policy[GSCAN_SUBCMD_MAX + 1] = { | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:93:1: warning: 'wifi_vendor_test_policy' defined but not used [-Wunused-const-variable=] 93 | wifi_vendor_test_policy[WIFI_SUBCMD_MAX + 1] = { | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_kal.h:543, from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_os.h:594, from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:171, from drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:1061: drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:935:21: warning: 'aucRateTableSize' defined but not used [-Wunused-const-variable=] 935 | static const UINT_8 aucRateTableSize[PREAMBLE_OPTION_NUM] = { | ^~~~~~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:878:21: warning: 'aucRateIndex2RateCode' defined but not used [-Wunused-const-variable=] 878 | static const UINT_8 aucRateIndex2RateCode[PREAMBLE_OPTION_NUM][RATE_NUM] = { | ^~~~~~~~~~~~~~~~~~~~~ -- >> cc1: warning: drivers/misc/mediatek/base/power/include: No such file or directory [-Wmissing-include-dirs] drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c: In function 'bowCmdReadRSSI': >> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:997:18: warning: variable 'prBowReadRSSI' set but not used [-Wunused-but-set-variable] 997 | P_BOW_READ_RSSI prBowReadRSSI; | ^~~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c: In function 'bowCmdReadLinkQuality': >> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:1029:26: warning: variable 'prBowReadLinkQuality' set but not used [-Wunused-but-set-variable] 1029 | P_BOW_READ_LINK_QUALITY prBowReadLinkQuality; | ^~~~~~~~~~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c: In function 'wlanbowCmdEventLinkDisconnected': >> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:1439:41: warning: cast between incompatible function types from 'VOID (*)(struct _ADAPTER_T *, struct _MSDU_INFO_T *, ENUM_TX_RESULT_CODE_T)' {aka 'void (*)(struct _ADAPTER_T *, struct _MSDU_INFO_T *, enum _ENUM_TX_RESULT_CODE_T)'} to 'WLAN_STATUS (*)(struct _ADAPTER_T *, struct _MSDU_INFO_T *, ENUM_TX_RESULT_CODE_T)' {aka 'unsigned int (*)(struct _ADAPTER_T *, struct _MSDU_INFO_T *, enum _ENUM_TX_RESULT_CODE_T)'} [-Wcast-function-type] 1439 | REASON_CODE_DEAUTH_LEAVING_BSS, (PFN_TX_DONE_HANDLER) bowDisconnectLink); | ^ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c: In function 'wlanbowCmdEventSetSetupConnection': >> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:1492:19: warning: variable 'prBowFsmInfo' set but not used [-Wunused-but-set-variable] 1492 | P_BOW_FSM_INFO_T prBowFsmInfo; | ^~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c: In function 'bowStopping': >> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:1650:15: warning: variable 'prBowBssInfo' set but not used [-Wunused-but-set-variable] 1650 | P_BSS_INFO_T prBowBssInfo; | ^~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:1649:19: warning: variable 'prBowFsmInfo' set but not used [-Wunused-but-set-variable] 1649 | P_BOW_FSM_INFO_T prBowFsmInfo; | ^~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c: In function 'bowValidateProbeReq': drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:1953:19: warning: variable 'prBowFsmInfo' set but not used [-Wunused-but-set-variable] 1953 | P_BOW_FSM_INFO_T prBowFsmInfo; | ^~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c: In function 'bowResponderScan': >> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:2051:15: warning: variable 'prBssInfo' set but not used [-Wunused-but-set-variable] 2051 | P_BSS_INFO_T prBssInfo; | ^~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c: In function 'bowFsmRunEventJoinComplete': drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:2356:15: warning: variable 'prBssInfo' set but not used [-Wunused-but-set-variable] 2356 | P_BSS_INFO_T prBssInfo; | ^~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c: In function 'bowRunEventAAAComplete': drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:2617:19: warning: variable 'prBowFsmInfo' set but not used [-Wunused-but-set-variable] 2617 | P_BOW_FSM_INFO_T prBowFsmInfo; | ^~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c: In function 'bowRunEventRxDeAuth': drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:2656:15: warning: variable 'prBowBssInfo' set but not used [-Wunused-but-set-variable] 2656 | P_BSS_INFO_T prBowBssInfo; | ^~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c: In function 'bowRunEventChGrant': drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:2971:15: warning: variable 'prBowBssInfo' set but not used [-Wunused-but-set-variable] 2971 | P_BSS_INFO_T prBowBssInfo; | ^~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c: In function 'bowGetBowTableContent': >> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:3266:100: warning: parameter 'prBowTable' set but not used [-Wunused-but-set-parameter] 3266 | BOOLEAN bowGetBowTableContent(IN P_ADAPTER_T prAdapter, IN UINT_8 ucBowTableIdx, OUT P_BOW_TABLE_T prBowTable) | ~~~~~~~~~~~~~~^~~~~~~~~~ In file included from drivers/misc/mediatek/connectivity/wlan/gen2/include/mgmt/scan.h:269, from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:237, from drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:319: At top level: drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:152:1: warning: 'lstats_vendor_test_policy' defined but not used [-Wunused-const-variable=] 152 | lstats_vendor_test_policy[LSTATS_SUBCMD_MAX + 1] = { | ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:140:1: warning: 'rtt_vendor_test_policy' defined but not used [-Wunused-const-variable=] 140 | rtt_vendor_test_policy[RTT_SUBCMD_MAX + 1] = { | ^~~~~~~~~~~~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:120:1: warning: 'gscan_vendor_test_policy' defined but not used [-Wunused-const-variable=] 120 | gscan_vendor_test_policy[GSCAN_SUBCMD_MAX + 1] = { | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:93:1: warning: 'wifi_vendor_test_policy' defined but not used [-Wunused-const-variable=] 93 | wifi_vendor_test_policy[WIFI_SUBCMD_MAX + 1] = { | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_kal.h:543, from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_os.h:594, from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:171, from drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_bow.c:319: drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:935:21: warning: 'aucRateTableSize' defined but not used [-Wunused-const-variable=] 935 | static const UINT_8 aucRateTableSize[PREAMBLE_OPTION_NUM] = { | ^~~~~~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:878:21: warning: 'aucRateIndex2RateCode' defined but not used [-Wunused-const-variable=] 878 | static const UINT_8 aucRateIndex2RateCode[PREAMBLE_OPTION_NUM][RATE_NUM] = { | ^~~~~~~~~~~~~~~~~~~~~ -- >> cc1: warning: drivers/misc/mediatek/base/power/include: No such file or directory [-Wmissing-include-dirs] In file included from drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_p2p.c:218: >> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_p2p_ioctl.h:570:2: error: #error "Please ENABLE kernel config (CONFIG_NL80211_TESTMODE) to support Wi-Fi Direct" 570 | #error "Please ENABLE kernel config (CONFIG_NL80211_TESTMODE) to support Wi-Fi Direct" | ^~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_p2p.c: In function 'wlanoidSetRemoveP2PKey': >> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_p2p.c:487:3: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 487 | ; /* return WLAN_STATUS_NOT_ACCEPTED; */ | ^ drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_p2p.c: In function 'wlanoidSetP2pSupplicantVersion': >> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_p2p.c:1527:9: warning: variable 'ucVersionNum' set but not used [-Wunused-but-set-variable] 1527 | UINT_8 ucVersionNum; | ^~~~~~~~~~~~ In file included from drivers/misc/mediatek/connectivity/wlan/gen2/include/mgmt/scan.h:269, from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:237, from drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_p2p.c:217: At top level: drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:152:1: warning: 'lstats_vendor_test_policy' defined but not used [-Wunused-const-variable=] 152 | lstats_vendor_test_policy[LSTATS_SUBCMD_MAX + 1] = { | ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:140:1: warning: 'rtt_vendor_test_policy' defined but not used [-Wunused-const-variable=] 140 | rtt_vendor_test_policy[RTT_SUBCMD_MAX + 1] = { | ^~~~~~~~~~~~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:120:1: warning: 'gscan_vendor_test_policy' defined but not used [-Wunused-const-variable=] 120 | gscan_vendor_test_policy[GSCAN_SUBCMD_MAX + 1] = { | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:93:1: warning: 'wifi_vendor_test_policy' defined but not used [-Wunused-const-variable=] 93 | wifi_vendor_test_policy[WIFI_SUBCMD_MAX + 1] = { | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_kal.h:543, from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_os.h:594, from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:171, from drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_p2p.c:217: drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:935:21: warning: 'aucRateTableSize' defined but not used [-Wunused-const-variable=] 935 | static const UINT_8 aucRateTableSize[PREAMBLE_OPTION_NUM] = { | ^~~~~~~~~~~~~~~~ drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:878:21: warning: 'aucRateIndex2RateCode' defined but not used [-Wunused-const-variable=] 878 | static const UINT_8 aucRateIndex2RateCode[PREAMBLE_OPTION_NUM][RATE_NUM] = { | ^~~~~~~~~~~~~~~~~~~~~ .. Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for WIRELESS_EXT Depends on NET && WIRELESS Selected by - MTK_COMBO_WIFI && ARM && MTK_COMBO WARNING: unmet direct dependencies detected for WEXT_PRIV Depends on NET && WIRELESS Selected by - MTK_COMBO_WIFI && ARM && MTK_COMBO --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org