tree:
https://github.com/frank-w/BPI-R2-4.14 5.10-rc
head: 9cab5c0a19ff709f07113ec5bd8e8cedbfdf6b08
commit: f43ce62478a0f245f0fcc53c073b54c31786f15e [22/24] mt6625l: add wifi-driver from
5.9
config: arm-randconfig-r024-20201213 (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/f43ce62478a0f245f0fcc53c073...
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.10-rc
git checkout f43ce62478a0f245f0fcc53c073b54c31786f15e
# 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 <lkp(a)intel.com>
All errors (new ones prefixed by >>):
cc1: error: drivers/misc/mediatek/base/power/include: No such file or directory
[-Werror=missing-include-dirs]
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.c:2406:1: error: no
previous prototype for 'mtk_cfg80211_testmode_get_link_detection'
[-Werror=missing-prototypes]
2406 | mtk_cfg80211_testmode_get_link_detection(IN
struct wiphy *wiphy, IN void *data, IN int len, IN P_GLUE_INFO_T prGlueInfo)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.c:2581:1: error: no
previous prototype for 'mtk_cfg80211_testmode_set_poorlink_param'
[-Werror=missing-prototypes]
2581 | mtk_cfg80211_testmode_set_poorlink_param(IN
struct wiphy *wiphy, IN void *data, IN int len, IN P_GLUE_INFO_T prGlueInfo)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.c: In function
'mtk_cfg80211_testmode_get_lte_channel':
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.c:2762:24: error:
variable 'prChnLoad' set but not used [-Werror=unused-but-set-variable]
2762 | P_PARAM_CHN_LOAD_INFO prChnLoad;
| ^~~~~~~~~
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.c:2747:10: error:
variable 'fgIsPureAP' set but not used [-Werror=unused-but-set-variable]
2747 | BOOLEAN fgIsPureAP, fgIsLteSafeChn = FALSE;
| ^~~~~~~~~~
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/os/linux/gl_cfg80211.c:52:
At top level:
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:152:1: error:
'lstats_vendor_test_policy' defined but not used [-Werror=unused-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: error:
'rtt_vendor_test_policy' defined but not used [-Werror=unused-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: error:
'gscan_vendor_test_policy' defined but not used [-Werror=unused-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: error:
'wifi_vendor_test_policy' defined but not used [-Werror=unused-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/os/linux/gl_cfg80211.c:48:
drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:935:21: error:
'aucRateTableSize' defined but not used [-Werror=unused-const-variable=]
935 | static const UINT_8 aucRateTableSize[PREAMBLE_OPTION_NUM] = {
| ^~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:878:21: error:
'aucRateIndex2RateCode' defined but not used [-Werror=unused-const-variable=]
878 | static const UINT_8 aucRateIndex2RateCode[PREAMBLE_OPTION_NUM][RATE_NUM] = {
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
cc1: error: drivers/misc/mediatek/base/power/include: No such file or directory
[-Werror=missing-include-dirs]
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_proc.c:909:31: error:
'proc_fops' defined but not used [-Werror=unused-const-variable=]
909 |
static const struct proc_ops proc_fops = {
| ^~~~~~~~~
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_proc.c:686:30: error:
'proc_CmdDebug_ops' defined but not used [-Werror=unused-const-variable=]
686 | static const struct proc_ops proc_CmdDebug_ops = {
| ^~~~~~~~~~~~~~~~~
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_proc.c:658:30: error:
'auto_per_ops' defined but not used [-Werror=unused-const-variable=]
658 | static const struct proc_ops auto_per_ops = {
| ^~~~~~~~~~~~
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_proc.c:624:30: error:
'proc_txdone_ops' defined but not used [-Werror=unused-const-variable=]
624 | static const struct proc_ops proc_txdone_ops = {
| ^~~~~~~~~~~~~~~
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_proc.c:540:30: error:
'dbglevel_ops' defined but not used [-Werror=unused-const-variable=]
540 | static const struct proc_ops dbglevel_ops = {
| ^~~~~~~~~~~~
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/os/linux/gl_proc.c:65:
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:152:1: error:
'lstats_vendor_test_policy' defined but not used [-Werror=unused-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: error:
'rtt_vendor_test_policy' defined but not used [-Werror=unused-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: error:
'gscan_vendor_test_policy' defined but not used [-Werror=unused-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: error:
'wifi_vendor_test_policy' defined but not used [-Werror=unused-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/os/linux/gl_proc.c:65:
drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:935:21: error:
'aucRateTableSize' defined but not used [-Werror=unused-const-variable=]
935 | static const UINT_8 aucRateTableSize[PREAMBLE_OPTION_NUM] = {
| ^~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:878:21: error:
'aucRateIndex2RateCode' defined but not used [-Werror=unused-const-variable=]
878 | static const UINT_8 aucRateIndex2RateCode[PREAMBLE_OPTION_NUM][RATE_NUM] = {
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
cc1: error: drivers/misc/mediatek/base/power/include: No such file or directory
[-Werror=missing-include-dirs]
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c: In function
'mtk_p2p_cfg80211_get_key':
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:223:16: error:
variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
223 | P_GLUE_INFO_T prGlueInfo = NULL;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c: In function
'mtk_p2p_cfg80211_set_default_key':
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:272:16: error:
variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
272 | P_GLUE_INFO_T prGlueInfo = NULL;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c: In function
'mtk_p2p_cfg80211_set_wiphy_params':
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:455:16: error:
variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
455 | P_GLUE_INFO_T prGlueInfo = NULL;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c: In function
'mtk_p2p_cfg80211_join_ibss':
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:497:16: error:
variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
497 | P_GLUE_INFO_T prGlueInfo = NULL;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c: In function
'mtk_p2p_cfg80211_leave_ibss':
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:510:16: error:
variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
510 | P_GLUE_INFO_T prGlueInfo = NULL;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c: In function
'mtk_p2p_cfg80211_set_txpower':
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:525:16: error:
variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
525 | P_GLUE_INFO_T prGlueInfo = NULL;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c: In function
'mtk_p2p_cfg80211_get_txpower':
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:540:16: error:
variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
540 | P_GLUE_INFO_T prGlueInfo = NULL;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c: In function
'mtk_p2p_cfg80211_deauth':
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:875:16: error:
variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
875 | P_GLUE_INFO_T prGlueInfo = (P_GLUE_INFO_T) NULL;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c: In function
'mtk_p2p_cfg80211_disassoc':
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:890:16: error:
variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
890 | P_GLUE_INFO_T prGlueInfo = (P_GLUE_INFO_T) NULL;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c: In function
'mtk_p2p_cfg80211_change_bss':
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:1066:16: error:
variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
1066 | P_GLUE_INFO_T prGlueInfo = (P_GLUE_INFO_T) NULL;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c: In function
'mtk_p2p_cfg80211_set_bitrate_mask':
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:1353:16: error:
variable 'prGlueInfo' set but not used [-Werror=unused-but-set-variable]
1353 | P_GLUE_INFO_T prGlueInfo = (P_GLUE_INFO_T) NULL;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c: In function
'mtk_p2p_cfg80211_testmode_p2p_sigma_pre_cmd':
>
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:1620:10: error:
variable 'index_mode' set but not used [-Werror=unused-but-set-variable]
1620 | UINT_32 index_mode;
| ^~~~~~~~~~
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/os/linux/gl_p2p_cfg80211.c:109:
At top level:
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:152:1: error:
'lstats_vendor_test_policy' defined but not used [-Werror=unused-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: error:
'rtt_vendor_test_policy' defined but not used [-Werror=unused-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: error:
'gscan_vendor_test_policy' defined but not used [-Werror=unused-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: error:
'wifi_vendor_test_policy' defined but not used [-Werror=unused-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/os/linux/gl_p2p_cfg80211.c:109:
drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:935:21: error:
'aucRateTableSize' defined but not used [-Werror=unused-const-variable=]
935 | static const UINT_8 aucRateTableSize[PREAMBLE_OPTION_NUM] = {
| ^~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:878:21: error:
'aucRateIndex2RateCode' defined but not used [-Werror=unused-const-variable=]
878 | static const UINT_8 aucRateIndex2RateCode[PREAMBLE_OPTION_NUM][RATE_NUM] = {
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
cc1: error: drivers/misc/mediatek/mach/mt7623/include/mach: No such file or directory
[-Werror=missing-include-dirs]
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1289:7: error:
no previous prototype for 'wmt_dev_dbg_setup' [-Werror=missing-prototypes]
1289 | INT32 wmt_dev_dbg_setup(VOID)
| ^~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c: In function
'wmt_dev_dbg_setup':
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1291:31: error:
unused variable 'wmt_dbg_fops' [-Werror=unused-variable]
1291 | static
const struct proc_ops wmt_dbg_fops = {
| ^~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c: At top level:
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1303:7: error:
no previous prototype for 'wmt_dev_dbg_remove' [-Werror=missing-prototypes]
1303 | INT32 wmt_dev_dbg_remove(VOID)
| ^~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1374:7: error:
no previous prototype for 'wmt_dev_proc_for_aee_setup'
[-Werror=missing-prototypes]
1374 | INT32 wmt_dev_proc_for_aee_setup(VOID)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c: In function
'wmt_dev_proc_for_aee_setup':
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1376:31: error:
unused variable 'wmt_aee_fops' [-Werror=unused-variable]
1376 | static
const struct proc_ops wmt_aee_fops = {
| ^~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c: At top level:
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1390:7: error:
no previous prototype for 'wmt_dev_proc_for_aee_remove'
[-Werror=missing-prototypes]
1390 | INT32 wmt_dev_proc_for_aee_remove(VOID)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1435:7: error:
no previous prototype for 'wmt_dev_read_file' [-Werror=missing-prototypes]
1435 | INT32 wmt_dev_read_file(PUINT8 pName, const PPUINT8 ppBufPtr, INT32 offset,
INT32 padSzBuf)
| ^~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c: In function
'wmt_dev_patch_get':
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1555:9: error:
implicit declaration of function 'get_ds'; did you mean 'get_fs'?
[-Werror=implicit-function-declaration]
1555 | set_fs(get_ds());
| ^~~~~~
| get_fs
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c: At top level:
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1597:14: error:
no previous prototype for 'wmt_dev_is_file_exist' [-Werror=missing-prototypes]
1597 | MTK_WCN_BOOL wmt_dev_is_file_exist(PUINT8 pFileName)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1645:14: error:
no previous prototype for 'wmt_dev_tra_bitf_update' [-Werror=missing-prototypes]
1645 | extern INT32 wmt_dev_tra_bitf_update(void)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1703:6: error:
no previous prototype for 'wmt_dev_tm_temp_query' [-Werror=missing-prototypes]
1703 | long wmt_dev_tm_temp_query(void)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1801:9: error:
no previous prototype for 'WMT_write' [-Werror=missing-prototypes]
1801 | ssize_t WMT_write(struct file *filp, const char __user *buf, size_t count,
loff_t *f_pos)
| ^~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1834:9: error:
no previous prototype for 'WMT_read' [-Werror=missing-prototypes]
1834 | ssize_t WMT_read(struct file *filp, char __user *buf, size_t count, loff_t
*f_pos)
| ^~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1865:14: error:
no previous prototype for 'WMT_poll' [-Werror=missing-prototypes]
1865 | unsigned int WMT_poll(struct file *filp, poll_table *wait)
| ^~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1885:6: error:
no previous prototype for 'WMT_unlocked_ioctl' [-Werror=missing-prototypes]
1885 | long WMT_unlocked_ioctl(struct file *filp, unsigned int cmd, unsigned long
arg)
| ^~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c: In function
'WMT_unlocked_ioctl':
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1985:11: error:
variable 'u4Wait' set but not used [-Werror=unused-but-set-variable]
1985 | UINT32 u4Wait;
| ^~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:2154:21: error:
variable 'pTemp' set but not used [-Werror=unused-but-set-variable]
2154 | P_WMT_PATCH_INFO pTemp = NULL;
| ^~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c: At top level:
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:2368:6: error:
no previous prototype for 'wmt_dev_bgw_desense_init' [-Werror=missing-prototypes]
2368 | void wmt_dev_bgw_desense_init(VOID)
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:2373:6: error:
no previous prototype for 'wmt_dev_bgw_desense_deinit'
[-Werror=missing-prototypes]
2373 | void wmt_dev_bgw_desense_deinit(VOID)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:2544:5: error:
no previous prototype for 'mtk_wcn_soc_common_drv_init'
[-Werror=missing-prototypes]
2544 | int mtk_wcn_soc_common_drv_init(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:2550:6: error:
no previous prototype for 'mtk_wcn_soc_common_drv_exit'
[-Werror=missing-prototypes]
2550 | void mtk_wcn_soc_common_drv_exit(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1376:31: error:
'wmt_aee_fops' defined but not used [-Werror=unused-const-variable=]
1376 | static const struct proc_ops wmt_aee_fops = {
| ^~~~~~~~~~~~
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1291:31: error:
'wmt_dbg_fops' defined but not used [-Werror=unused-const-variable=]
1291 | static const struct proc_ops wmt_dbg_fops = {
| ^~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:272:5: error:
no previous prototype for 'hci_recv_fragment' [-Werror=missing-prototypes]
272 | int hci_recv_fragment(struct hci_dev *hdev, int type, void *data, int count)
| ^~~~~~~~~~~~~~~~~
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:294:1: error:
no previous prototype for 'hex_dump' [-Werror=missing-prototypes]
294 |
hex_dump(char *prefix, char *p, int len)
| ^~~~~~~~
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:457:5: error:
no previous prototype for 'mtk_bt_hci_init' [-Werror=missing-prototypes]
457 | int mtk_bt_hci_init(void)
| ^~~~~~~~~~~~~~~
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:527:6: error:
no previous prototype for 'BT_event_cb' [-Werror=missing-prototypes]
527 | VOID BT_event_cb(VOID)
| ^~~~~~~~~~~
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:540:14:
error: no previous prototype for 'BT_poll' [-Werror=missing-prototypes]
540 | unsigned int BT_poll(struct file *filp, poll_table *wait)
| ^~~~~~~
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:566:9: error:
no previous prototype for 'BT_write' [-Werror=missing-prototypes]
566 |
ssize_t BT_write(struct file *filp, const char __user *buf, size_t count, loff_t *f_pos)
| ^~~~~~~~
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:620:9: error:
no previous prototype for 'BT_read' [-Werror=missing-prototypes]
620 |
ssize_t BT_read(struct file *filp, char __user *buf, size_t count, loff_t *f_pos)
| ^~~~~~~
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:681:6: error:
no previous prototype for 'BT_unlocked_ioctl' [-Werror=missing-prototypes]
681 | long BT_unlocked_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
| ^~~~~~~~~~~~~~~~~
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:726:6: error:
no previous prototype for 'BT_compat_ioctl' [-Werror=missing-prototypes]
726 | long BT_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
| ^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/mtk_cfg80211_testmode_get_link_detection +2406
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.c
2404
2405 int
2406 mtk_cfg80211_testmode_get_link_detection(IN struct wiphy *wiphy,
IN void *data, IN int len, IN P_GLUE_INFO_T prGlueInfo)
2407 {
2408
2409 WLAN_STATUS rStatus = WLAN_STATUS_SUCCESS;
2410 INT_32 i4Status = -EINVAL;
2411 UINT_32 u4BufLen;
2412
2413 PARAM_802_11_STATISTICS_STRUCT_T rStatistics;
2414 struct sk_buff *skb;
2415
2416 ASSERT(wiphy);
2417 ASSERT(prGlueInfo);
2418
2419 skb = cfg80211_testmode_alloc_reply_skb(wiphy,
sizeof(PARAM_GET_STA_STA_STATISTICS) + 1);
2420
2421 if (!skb) {
2422 DBGLOG(QM, TRACE, "%s allocate skb failed:%x\n", __func__, rStatus);
2423 return -ENOMEM;
2424 }
2425
2426 kalMemZero(&rStatistics, sizeof(rStatistics));
2427
2428 rStatus = kalIoctl(prGlueInfo,
2429 wlanoidQueryStatistics,
2430 &rStatistics, sizeof(rStatistics), TRUE, TRUE, TRUE, FALSE,
&u4BufLen);
2431
2432 /*NLA_PUT_U8(skb, NL80211_TESTMODE_STA_STATISTICS_INVALID, 0);*/
2433 {
2434 unsigned char __tmp = 0;
2435
2436 if (unlikely(nla_put(skb, NL80211_TESTMODE_STA_STATISTICS_INVALID,
sizeof(unsigned char), &__tmp) < 0))
2437 goto nla_put_failure;
2438 }
2439
2440 /*NLA_PUT_U64(skb, NL80211_TESTMODE_LINK_TX_FAIL_CNT,
rStatistics.rFailedCount.QuadPart);*/
2441 {
2442 u64 __tmp = rStatistics.rFailedCount.QuadPart;
2443
2444 if (unlikely(nla_put(skb, NL80211_TESTMODE_LINK_TX_FAIL_CNT,
2445 sizeof(u64), &__tmp) < 0))
2446 goto nla_put_failure;
2447 }
2448
2449 /*NLA_PUT_U64(skb, NL80211_TESTMODE_LINK_TX_RETRY_CNT,
rStatistics.rRetryCount.QuadPart);*/
2450 {
2451 u64 __tmp = rStatistics.rFailedCount.QuadPart;
2452
2453 if (unlikely(nla_put(skb, NL80211_TESTMODE_LINK_TX_RETRY_CNT,
2454 sizeof(u64), &__tmp) < 0))
2455 goto nla_put_failure;
2456 }
2457
2458 /*NLA_PUT_U64(skb, NL80211_TESTMODE_LINK_TX_MULTI_RETRY_CNT,
rStatistics.rMultipleRetryCount.QuadPart);*/
2459 {
2460 u64 __tmp = rStatistics.rMultipleRetryCount.QuadPart;
2461
2462 if (unlikely(nla_put(skb, NL80211_TESTMODE_LINK_TX_MULTI_RETRY_CNT,
2463 sizeof(u64), &__tmp) < 0))
2464 goto nla_put_failure;
2465 }
2466
2467 /*NLA_PUT_U64(skb, NL80211_TESTMODE_LINK_ACK_FAIL_CNT,
rStatistics.rACKFailureCount.QuadPart);*/
2468 {
2469 u64 __tmp = rStatistics.rACKFailureCount.QuadPart;
2470
2471 if (unlikely(nla_put(skb, NL80211_TESTMODE_LINK_ACK_FAIL_CNT,
2472 sizeof(u64), &__tmp) < 0))
2473 goto nla_put_failure;
2474 }
2475
2476 /*NLA_PUT_U64(skb, NL80211_TESTMODE_LINK_FCS_ERR_CNT,
rStatistics.rFCSErrorCount.QuadPart);*/
2477 {
2478 u64 __tmp = rStatistics.rFCSErrorCount.QuadPart;
2479
2480 if (unlikely(nla_put(skb, NL80211_TESTMODE_LINK_FCS_ERR_CNT,
2481 sizeof(u64), &__tmp) < 0))
2482 goto nla_put_failure;
2483 }
2484
2485
2486 i4Status = cfg80211_testmode_reply(skb);
2487 skb = NULL;
2488
2489 nla_put_failure:
2490 if (skb != NULL)
2491 kfree_skb(skb);
2492 return i4Status;
2493 }
2494
2495 int mtk_cfg80211_testmode_sw_cmd(IN struct wiphy *wiphy, IN void *data, IN int
len)
2496 {
2497 P_GLUE_INFO_T prGlueInfo = NULL;
2498 P_NL80211_DRIVER_SW_CMD_PARAMS prParams = (P_NL80211_DRIVER_SW_CMD_PARAMS) NULL;
2499 WLAN_STATUS rstatus = WLAN_STATUS_SUCCESS;
2500 int fgIsValid = 0;
2501 UINT_32 u4SetInfoLen = 0;
2502
2503 ASSERT(wiphy);
2504
2505 prGlueInfo = (P_GLUE_INFO_T) wiphy_priv(wiphy);
2506
2507 DBGLOG(REQ, TRACE, "--> %s()\n", __func__);
2508
2509 if (data && len)
2510 prParams = (P_NL80211_DRIVER_SW_CMD_PARAMS) data;
2511
2512 if (prParams) {
2513 if (prParams->set == 1) {
2514 rstatus = kalIoctl(prGlueInfo,
2515 (PFN_OID_HANDLER_FUNC) wlanoidSetSwCtrlWrite,
2516 &prParams->adr, (UINT_32) 8, FALSE, FALSE, TRUE, FALSE,
&u4SetInfoLen);
2517 }
2518 }
2519
2520 if (WLAN_STATUS_SUCCESS != rstatus)
2521 fgIsValid = -EFAULT;
2522
2523 return fgIsValid;
2524 }
2525
2526 #if CFG_SUPPORT_HOTSPOT_2_0
2527 int mtk_cfg80211_testmode_hs20_cmd(IN struct wiphy *wiphy, IN void *data, IN int
len)
2528 {
2529 P_GLUE_INFO_T prGlueInfo = NULL;
2530 struct wpa_driver_hs20_data_s *prParams = NULL;
2531 WLAN_STATUS rstatus = WLAN_STATUS_SUCCESS;
2532 int fgIsValid = 0;
2533 UINT_32 u4SetInfoLen = 0;
2534
2535 ASSERT(wiphy);
2536
2537 prGlueInfo = (P_GLUE_INFO_T) wiphy_priv(wiphy);
2538
2539 DBGLOG(REQ, TRACE, "--> %s()\n", __func__);
2540
2541 if (data && len) {
2542 prParams = (struct wpa_driver_hs20_data_s *)data;
2543
2544 DBGLOG(REQ, TRACE, "[%s] Cmd Type (%d)\n", __func__,
prParams->CmdType);
2545 }
2546
2547 if (prParams) {
2548 int i;
2549
2550 switch (prParams->CmdType) {
2551 case HS20_CMD_ID_SET_BSSID_POOL:
2552 DBGLOG(REQ, TRACE, "fgBssidPoolIsEnable=%d, ucNumBssidPool=%d\n",
2553 prParams->hs20_set_bssid_pool.fgBssidPoolIsEnable,
2554 prParams->hs20_set_bssid_pool.ucNumBssidPool);
2555 for (i = 0; i < prParams->hs20_set_bssid_pool.ucNumBssidPool; i++) {
2556 DBGLOG(REQ, TRACE, "[%d][ %pM ]\n", i,
2557 (prParams->hs20_set_bssid_pool.arBssidPool[i]));
2558 }
2559 rstatus = kalIoctl(prGlueInfo,
2560 (PFN_OID_HANDLER_FUNC) wlanoidSetHS20BssidPool,
2561 &prParams->hs20_set_bssid_pool,
2562 sizeof(struct param_hs20_set_bssid_pool),
2563 FALSE, FALSE, TRUE, FALSE, &u4SetInfoLen);
2564 break;
2565 default:
2566 DBGLOG(REQ, TRACE, "[%s] Unknown Cmd Type (%d)\n", __func__,
prParams->CmdType);
2567 rstatus = WLAN_STATUS_FAILURE;
2568
2569 }
2570
2571 }
2572
2573 if (WLAN_STATUS_SUCCESS != rstatus)
2574 fgIsValid = -EFAULT;
2575
2576 return fgIsValid;
2577 }
2578
2579 #endif
2580 int
2581 mtk_cfg80211_testmode_set_poorlink_param(IN struct wiphy *wiphy,
IN void *data, IN int len, IN P_GLUE_INFO_T prGlueInfo)
2582 {
2583 int fgIsValid = 0;
2584 P_NL80211_DRIVER_POORLINK_PARAMS prParams = NULL;
2585
2586 ASSERT(wiphy);
2587 ASSERT(prGlueInfo);
2588
2589 if (data && len) {
2590 prParams = (P_NL80211_DRIVER_POORLINK_PARAMS) data;
2591 } else {
2592 DBGLOG(REQ, ERROR, "mtk_cfg80211_testmode_set_poorlink_param, data is
NULL\n");
2593 return -EINVAL;
2594 }
2595 if (prParams->ucLinkSpeed)
2596 prGlueInfo->u4LinkspeedThreshold = prParams->ucLinkSpeed * 10;
2597 if (prParams->cRssi)
2598 prGlueInfo->i4RssiThreshold = prParams->cRssi;
2599 if (!prGlueInfo->fgPoorlinkValid)
2600 prGlueInfo->fgPoorlinkValid = 1;
2601 #if 0
2602 DBGLOG(REQ, TRACE, "poorlink set param
valid(%d)rssi(%d)linkspeed(%d)\n",
2603 prGlueInfo->fgPoorlinkValid, prGlueInfo->i4RssiThreshold,
prGlueInfo->u4LinkspeedThreshold);
2604 #endif
2605
2606 return fgIsValid;
2607
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org