tree:
https://github.com/frank-w/BPI-R2-4.14 5.8-eth
head: ca0d6f7786586ca7ba424d5967d780dd3c75748b
commit: 8e0858fb11ae2dc00ee3a2dc0452f20e2cdcf841 [14/51] mt6625l: set MTK_PLATFORM in
Makefile if none is set via *config
config: arm-allyesconfig (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
git checkout 8e0858fb11ae2dc00ee3a2dc0452f20e2cdcf841
# 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/include/mt-plat/mt7623/include:
No such file or directory [-Werror=missing-include-dirs]
> cc1: error: arch/arm/mach-mt7623//dct/dct: No such file or directory
[-Werror=missing-include-dirs]
In file included from
drivers/misc/mediatek/connectivity/common/common_detect/wmt_gpio.c:15:
drivers/misc/mediatek/connectivity/common/common_detect/wmt_gpio.h:24:10: fatal error:
osal.h: No such file or directory
24 | #include "osal.h"
| ^~~~~~~~
cc1: all warnings being treated as errors
compilation terminated.
--
> cc1: error: drivers/misc/mediatek/include/mt-plat/mt7623/include:
No such file or directory [-Werror=missing-include-dirs]
> cc1: error: arch/arm/mach-mt7623//dct/dct: No such file or directory
[-Werror=missing-include-dirs]
In file included from
drivers/misc/mediatek/connectivity/common/common_detect/sdio_detect.c:20:
drivers/misc/mediatek/connectivity/common/common_detect/sdio_detect.c: In function
'hif_sdio_is_chipid_valid':
drivers/misc/mediatek/connectivity/common/common_detect/wmt_detect.h:77:23: error:
comparison of unsigned expression >= 0 is always true [-Werror=type-limits]
77 | if (gWmtDetectDbgLvl >= WMT_DETECT_LOG_ERR) \
| ^~
drivers/misc/mediatek/connectivity/common/common_detect/sdio_detect.c:108:3: note: in
expansion of macro 'WMT_DETECT_ERR_FUNC'
108 | WMT_DETECT_ERR_FUNC("no supported chipid found\n");
| ^~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/common_detect/sdio_detect.c: In function
'hif_sdio_match_chipid_by_dev_id':
drivers/misc/mediatek/connectivity/common/common_detect/wmt_detect.h:77:23: error:
comparison of unsigned expression >= 0 is always true [-Werror=type-limits]
77 | if (gWmtDetectDbgLvl >= WMT_DETECT_LOG_ERR) \
| ^~
drivers/misc/mediatek/connectivity/common/common_detect/sdio_detect.c:135:3: note: in
expansion of macro 'WMT_DETECT_ERR_FUNC'
135 | WMT_DETECT_ERR_FUNC("No valid chipId found, vendor id(0x%x), device
id(0x%x)\n", id->vendor,
| ^~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/common_detect/sdio_detect.c: In function
'sdio_detect_probe':
drivers/misc/mediatek/connectivity/common/common_detect/wmt_detect.h:77:23: error:
comparison of unsigned expression >= 0 is always true [-Werror=type-limits]
77 | if (gWmtDetectDbgLvl >= WMT_DETECT_LOG_ERR) \
| ^~
drivers/misc/mediatek/connectivity/common/common_detect/sdio_detect.c:236:4: note: in
expansion of macro 'WMT_DETECT_ERR_FUNC'
236 | WMT_DETECT_ERR_FUNC("sdio_enable_func failed!\n");
| ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
> cc1: error: drivers/misc/mediatek/include/mt-plat/mt7623/include:
No such file or directory [-Werror=missing-include-dirs]
> cc1: error: arch/arm/mach-mt7623//dct/dct: No such file or directory
[-Werror=missing-include-dirs]
In file included from
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/conn_drv_init.c:20:
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/conn_drv_init.c: In
function 'do_wlan_drv_init':
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/../wmt_detect.h:77:23:
error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]
77 | if (gWmtDetectDbgLvl >= WMT_DETECT_LOG_ERR) \
| ^~
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/conn_drv_init.c:31:2:
note: in expansion of macro 'WMT_DETECT_ERR_FUNC'
31 | WMT_DETECT_ERR_FUNC("Can not find wlan module for chip: %d !\n",
chip_id);
| ^~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/conn_drv_init.c: In
function 'do_connectivity_driver_init':
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/../wmt_detect.h:77:23:
error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]
77 | if (gWmtDetectDbgLvl >= WMT_DETECT_LOG_ERR) \
| ^~
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/conn_drv_init.c:49:3:
note: in expansion of macro 'WMT_DETECT_ERR_FUNC'
49 | WMT_DETECT_ERR_FUNC("do common driver init failed, ret:%d\n",
tmp_ret);
| ^~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/../wmt_detect.h:77:23:
error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]
77 | if (gWmtDetectDbgLvl >= WMT_DETECT_LOG_ERR) \
| ^~
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/conn_drv_init.c:50:3:
note: in expansion of macro 'WMT_DETECT_ERR_FUNC'
50 | WMT_DETECT_ERR_FUNC("abort connectivity driver init, because common part
is not ready\n");
| ^~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/../wmt_detect.h:77:23:
error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]
77 | if (gWmtDetectDbgLvl >= WMT_DETECT_LOG_ERR) \
| ^~
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/conn_drv_init.c:58:3:
note: in expansion of macro 'WMT_DETECT_ERR_FUNC'
58 | WMT_DETECT_ERR_FUNC("do common driver init failed, ret:%d\n",
tmp_ret);
| ^~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/../wmt_detect.h:77:23:
error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]
77 | if (gWmtDetectDbgLvl >= WMT_DETECT_LOG_ERR) \
| ^~
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/conn_drv_init.c:75:3:
note: in expansion of macro 'WMT_DETECT_ERR_FUNC'
75 | WMT_DETECT_ERR_FUNC("do wlan module init failed, ret:%d\n",
tmp_ret);
| ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
> cc1: error: drivers/misc/mediatek/include/mt-plat/mt7623/include:
No such file or directory [-Werror=missing-include-dirs]
> cc1: error: arch/arm/mach-mt7623//dct/dct: No such file or directory
[-Werror=missing-include-dirs]
In file included from
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/common_drv_init.c:20:
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/common_drv_init.c: In
function 'do_combo_common_drv_init':
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/../wmt_detect.h:77:23:
error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]
77 | if (gWmtDetectDbgLvl >= WMT_DETECT_LOG_ERR) \
| ^~
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/common_drv_init.c:54:2:
note: in expansion of macro 'WMT_DETECT_ERR_FUNC'
54 | WMT_DETECT_ERR_FUNC("COMBO chip is not supported, please check
CONFIG_MTK_COMBO_CHIP in kernel config\n");
| ^~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/common_drv_init.c: In
function 'do_soc_common_drv_init':
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/../wmt_detect.h:77:23:
error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]
77 | if (gWmtDetectDbgLvl >= WMT_DETECT_LOG_ERR) \
| ^~
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/common_drv_init.c:76:2:
note: in expansion of macro 'WMT_DETECT_ERR_FUNC'
76 | WMT_DETECT_ERR_FUNC("SOC chip is not supported, please check
CONFIG_MTK_COMBO_CHIP in kernel config\n");
| ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
> cc1: error: drivers/misc/mediatek/include/mt-plat/mt7623/include:
No such file or directory [-Werror=missing-include-dirs]
> 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: drivers/misc/mediatek/include/mt-plat/mt7623/include:
No such file or directory [-Werror=missing-include-dirs]
> cc1: error: arch/arm/mach-mt7623//dct/dct: No such file or directory
[-Werror=missing-include-dirs]
In file included from
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/wlan_drv_init.c:20:
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/wlan_drv_init.c: In
function 'do_wlan_drv_init':
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/../wmt_detect.h:77:23:
error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]
77 | if (gWmtDetectDbgLvl >= WMT_DETECT_LOG_ERR) \
| ^~
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/wlan_drv_init.c:47:3:
note: in expansion of macro 'WMT_DETECT_ERR_FUNC'
47 | WMT_DETECT_ERR_FUNC("WLAN-GEN3 driver is not supported, please check
CONFIG_MTK_COMBO_CHIP\n");
| ^~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/../wmt_detect.h:77:23:
error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]
77 | if (gWmtDetectDbgLvl >= WMT_DETECT_LOG_ERR) \
| ^~
drivers/misc/mediatek/connectivity/common/common_detect/drv_init/wlan_drv_init.c:62:3:
note: in expansion of macro 'WMT_DETECT_ERR_FUNC'
62 | WMT_DETECT_ERR_FUNC("WLAN-GEN2 driver is not supported, please check
CONFIG_MTK_COMBO_CHIP\n");
| ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
> cc1: error: drivers/misc/mediatek/include/mt-plat/mt7623/include:
No such file or directory [-Werror=missing-include-dirs]
> cc1: error: arch/arm/mach-mt7623/include/mach: No such file or directory
[-Werror=missing-include-dirs]
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: error: function
'hal_log_print' might be a candidate for 'gnu_printf' format attribute
[-Werror=suggest-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: error: variable 'i_ret' set
but not used [-Werror=unused-but-set-variable]
379 | int i_ret = 0;
| ^~~~~
drivers/misc/mediatek/btif/common/mtk_btif.c: At top level:
drivers/misc/mediatek/btif/common/mtk_btif.c:522:6: error: no previous prototype for
'btif_rx_notify_cb' [-Werror=missing-prototypes]
522 | void btif_rx_notify_cb(void)
| ^~~~~~~~~~~~~~~~~
drivers/misc/mediatek/btif/common/mtk_btif.c: In function 'flag_store':
drivers/misc/mediatek/btif/common/mtk_btif.c:773:6: error: variable 'result'
set but not used [-Werror=unused-but-set-variable]
773 | int result = 0;
| ^~~~~~
drivers/misc/mediatek/btif/common/mtk_btif.c: In function '_btif_pio_write':
drivers/misc/mediatek/btif/common/mtk_btif.c:2774:42: error: comparison of unsigned
expression < 0 is always false [-Werror=type-limits]
2774 | if ((++retry > max_tx_retry) || (i_ret < 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: error: variable 'p_buf'
set but not used [-Werror=unused-but-set-variable]
3029 | unsigned char *p_buf = NULL;
| ^~~~~
cc1: all warnings being treated as errors
--
> cc1: error: drivers/misc/mediatek/include/mt-plat/mt7623/include:
No such file or directory [-Werror=missing-include-dirs]
> cc1: error: arch/arm/mach-mt7623/include/mach: No such file or directory
[-Werror=missing-include-dirs]
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: error: function
'hal_log_print' might be a candidate for 'gnu_printf' format attribute
[-Werror=suggest-attribute=format]
64 | vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args);
| ^~~~~~~~~
drivers/misc/mediatek/btif/common/mtk_btif_exp.c: At top level:
drivers/misc/mediatek/btif/common/mtk_btif_exp.c:24:12: error: no previous prototype
for 'btif_exp_srh_id' [-Werror=missing-prototypes]
24 | p_mtk_btif btif_exp_srh_id(unsigned long u_id)
| ^~~~~~~~~~~~~~~
drivers/misc/mediatek/btif/common/mtk_btif_exp.c:512:5: error: no previous prototype
for 'btif_open_no_id' [-Werror=missing-prototypes]
512 | int btif_open_no_id(void)
| ^~~~~~~~~~~~~~~
drivers/misc/mediatek/btif/common/mtk_btif_exp.c:527:5: error: no previous prototype
for 'btif_close_no_id' [-Werror=missing-prototypes]
527 | int btif_close_no_id(void)
| ^~~~~~~~~~~~~~~~
drivers/misc/mediatek/btif/common/mtk_btif_exp.c:541:5: error: no previous prototype
for 'btif_write_no_id' [-Werror=missing-prototypes]
541 | int btif_write_no_id(const unsigned char *p_buf, unsigned int len)
| ^~~~~~~~~~~~~~~~
drivers/misc/mediatek/btif/common/mtk_btif_exp.c:562:5: error: no previous prototype
for 'btif_dpidle_ctrl_no_id' [-Werror=missing-prototypes]
562 | int btif_dpidle_ctrl_no_id(ENUM_BTIF_DPIDLE_CTRL en_flag)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/btif/common/mtk_btif_exp.c:586:5: error: no previous prototype
for 'btif_loopback_ctrl_no_id' [-Werror=missing-prototypes]
586 | int btif_loopback_ctrl_no_id(ENUM_BTIF_LPBK_MODE enable)
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/btif/common/mtk_btif_exp.c:597:5: error: no previous prototype
for 'btif_dbg_ctrl_no_id' [-Werror=missing-prototypes]
597 | int btif_dbg_ctrl_no_id(ENUM_BTIF_DBG_ID flag)
| ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
> cc1: error: drivers/misc/mediatek/include/mt-plat/mt7623/include:
No such file or directory [-Werror=missing-include-dirs]
> cc1: error: arch/arm/mach-mt7623/include/mach: No such file or directory
[-Werror=missing-include-dirs]
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: error: function
'hal_log_print' might be a candidate for 'gnu_printf' format attribute
[-Werror=suggest-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: error: variable
'flag' set but not used [-Werror=unused-but-set-variable]
1313 | unsigned int flag = 0;
| ^~~~
cc1: all warnings being treated as errors
--
> cc1: error: drivers/misc/mediatek/include/mt-plat/mt7623/include:
No such file or directory [-Werror=missing-include-dirs]
> cc1: error: arch/arm/mach-mt7623/include/mach: No such file or directory
[-Werror=missing-include-dirs]
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: error: function
'hal_log_print' might be a candidate for 'gnu_printf' format attribute
[-Werror=suggest-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: error: variable 'flag'
set but not used [-Werror=unused-but-set-variable]
1343 | unsigned int flag = 0;
| ^~~~
cc1: all warnings being treated as errors
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org