Hi Frank,
First bad commit (maybe != root cause):
tree:
https://github.com/frank-w/BPI-R2-4.14 5.17-r2pro-hdmiv5
head: 2fc65b46be5ea69f66ce812f2c847c074a0eb1b6
commit: 741a809b69a5fc22105ce47dc43839fba1d33cf0 [16/97] mt6625l: fix makefiles to filter
without quotes
config: arm-randconfig-r012-20220210
(
https://download.01.org/0day-ci/archive/20220210/202202100645.QhVIE58S-lk...)
compiler: clang version 15.0.0 (
https://github.com/llvm/llvm-project
e8bff9ae54a55b4dbfeb6ba55f723abbd81bf494)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
#
https://github.com/frank-w/BPI-R2-4.14/commit/741a809b69a5fc22105ce47dc43...
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.17-r2pro-hdmiv5
git checkout 741a809b69a5fc22105ce47dc43839fba1d33cf0
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir
ARCH=arm SHELL=/bin/bash
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 >>):
>
drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.c:172:14: error: variable
'WMT_EFUSE_EVT' is not needed and will not be emitted
[-Werror,-Wunneeded-internal-declaration]
static UINT8 WMT_EFUSE_EVT[] = { 0x02,
0x0D, 0x08, 0x00,
^
>
drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.c:195:14: error: variable
'WMT_SET_REG_WR_EVT' is not needed and will not be emitted
[-Werror,-Wunneeded-internal-declaration]
static UINT8 WMT_SET_REG_WR_EVT[] = {
0x02, 0x08, 0x04, 0x00 /*length */
^
>
drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.c:204:14: error: variable
'WMT_SET_REG_RD_EVT' is not needed and will not be emitted
[-Werror,-Wunneeded-internal-declaration]
static UINT8 WMT_SET_REG_RD_EVT[] = {
0x02, 0x08, 0x04, 0x00 /*length */
^
3 errors generated.
--
>
drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_ic_soc.c:471:14: error:
variable 'WMT_GET_SOC_ADIE_CHIPID_EVT' is not needed and will not be emitted
[-Werror,-Wunneeded-internal-declaration]
static UINT8
WMT_GET_SOC_ADIE_CHIPID_EVT[] = {
^
>
drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_ic_soc.c:476:14: error:
variable 'WMT_GET_SOC_6625_L_EVT' is not needed and will not be emitted
[-Werror,-Wunneeded-internal-declaration]
static UINT8 WMT_GET_SOC_6625_L_EVT[] =
{
^
2 errors generated.
--
>
drivers/misc/mediatek/connectivity/common/conn_soc/core/mtk_wcn_stub_alps.c:440:5: error:
no previous prototype for function 'mtk_wcn_cmb_stub_do_reset'
[-Werror,-Wmissing-prototypes]
int mtk_wcn_cmb_stub_do_reset(unsigned int type)
^
drivers/misc/mediatek/connectivity/common/conn_soc/core/mtk_wcn_stub_alps.c:440:1:
note: declare 'static' if the function is not intended to be used outside of this
translation unit
int mtk_wcn_cmb_stub_do_reset(unsigned int type)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/core/mtk_wcn_stub_alps.c:475:13: error:
no previous prototype for function 'mtk_wcn_cmb_sdio_eirq_handler_stub'
[-Werror,-Wmissing-prototypes]
irqreturn_t mtk_wcn_cmb_sdio_eirq_handler_stub(int
irq, void *data)
^
drivers/misc/mediatek/connectivity/common/conn_soc/core/mtk_wcn_stub_alps.c:475:1:
note: declare 'static' if the function is not intended to be used outside of this
translation unit
irqreturn_t mtk_wcn_cmb_sdio_eirq_handler_stub(int irq, void *data)
^
static
2 errors generated.
--
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/osal.c:628:7: error: no
previous prototype for function '_osal_fifo_init' [-Werror,-Wmissing-prototypes]
INT32 _osal_fifo_init(OSAL_FIFO *pFifo, UINT8 *buf, UINT32 size)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/osal.c:628:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
INT32 _osal_fifo_init(OSAL_FIFO *pFifo, UINT8 *buf, UINT32 size)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/osal.c:661:7: error: no
previous prototype for function '_osal_fifo_deinit' [-Werror,-Wmissing-prototypes]
INT32 _osal_fifo_deinit(OSAL_FIFO *pFifo)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/osal.c:661:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
INT32 _osal_fifo_deinit(OSAL_FIFO *pFifo)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/osal.c:678:7: error: no
previous prototype for function '_osal_fifo_size' [-Werror,-Wmissing-prototypes]
INT32 _osal_fifo_size(OSAL_FIFO *pFifo)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/osal.c:678:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
INT32 _osal_fifo_size(OSAL_FIFO *pFifo)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/osal.c:697:7: error: no
previous prototype for function '_osal_fifo_avail_size'
[-Werror,-Wmissing-prototypes]
INT32 _osal_fifo_avail_size(OSAL_FIFO *pFifo)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/osal.c:697:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
INT32 _osal_fifo_avail_size(OSAL_FIFO *pFifo)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/osal.c:716:7: error: no
previous prototype for function '_osal_fifo_len' [-Werror,-Wmissing-prototypes]
INT32 _osal_fifo_len(OSAL_FIFO *pFifo)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/osal.c:716:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
INT32 _osal_fifo_len(OSAL_FIFO *pFifo)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/osal.c:734:7: error: no
previous prototype for function '_osal_fifo_is_empty'
[-Werror,-Wmissing-prototypes]
INT32 _osal_fifo_is_empty(OSAL_FIFO *pFifo)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/osal.c:734:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
INT32 _osal_fifo_is_empty(OSAL_FIFO *pFifo)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/osal.c:752:7: error: no
previous prototype for function '_osal_fifo_is_full'
[-Werror,-Wmissing-prototypes]
INT32 _osal_fifo_is_full(OSAL_FIFO *pFifo)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/osal.c:752:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
INT32 _osal_fifo_is_full(OSAL_FIFO *pFifo)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/osal.c:770:7: error: no
previous prototype for function '_osal_fifo_data_in'
[-Werror,-Wmissing-prototypes]
INT32 _osal_fifo_data_in(OSAL_FIFO *pFifo, const
VOID *buf, UINT32 len)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/osal.c:770:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
INT32 _osal_fifo_data_in(OSAL_FIFO *pFifo, const VOID *buf, UINT32 len)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/osal.c:794:7: error: no
previous prototype for function '_osal_fifo_data_out'
[-Werror,-Wmissing-prototypes]
INT32 _osal_fifo_data_out(OSAL_FIFO *pFifo, void
*buf, UINT32 len)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/osal.c:794:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
INT32 _osal_fifo_data_out(OSAL_FIFO *pFifo, void *buf, UINT32 len)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/osal.c:818:7: error: no
previous prototype for function '_osal_fifo_reset' [-Werror,-Wmissing-prototypes]
INT32 _osal_fifo_reset(OSAL_FIFO *pFifo)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/osal.c:818:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
INT32 _osal_fifo_reset(OSAL_FIFO *pFifo)
^
static
10 errors generated.
--
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/bgw_desense.c:105:6: error:
variable 'len' set but not used [-Werror,-Wunused-but-set-variable]
int len;
^
1 error generated.
--
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_btif.c:191:7: error: no
previous prototype for function 'mtk_wcn_consys_stp_btif_rx'
[-Werror,-Wmissing-prototypes]
INT32 mtk_wcn_consys_stp_btif_rx(UINT8 *pBuf,
UINT32 len)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_btif.c:191:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
INT32 mtk_wcn_consys_stp_btif_rx(UINT8 *pBuf, UINT32 len)
^
static
1 error generated.
--
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:455:9: error:
variable 'pbuf' set but not used [-Werror,-Wunused-but-set-variable]
PUINT8 pbuf;
^
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:456:8: error:
variable 'len' set but not used [-Werror,-Wunused-but-set-variable]
INT32 len;
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:474:8: error:
variable 'len' set but not used [-Werror,-Wunused-but-set-variable]
INT32 len;
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:473:9: error:
variable 'pbuf' set but not used [-Werror,-Wunused-but-set-variable]
PUINT8 pbuf;
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:500:9: error:
variable 'pbuf' set but not used [-Werror,-Wunused-but-set-variable]
PUINT8 pbuf;
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:501:8: error:
variable 'len' set but not used [-Werror,-Wunused-but-set-variable]
INT32 len;
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:519:9: error:
variable 'pbuf' set but not used [-Werror,-Wunused-but-set-variable]
PUINT8 pbuf;
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:520:8: error:
variable 'len' set but not used [-Werror,-Wunused-but-set-variable]
INT32 len;
^
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:1032:5: error: no
previous prototype for function 'stp_gdb_notify_btm_dmp_wq'
[-Werror,-Wmissing-prototypes]
int stp_gdb_notify_btm_dmp_wq(MTKSTP_DBG_T
*stp_dbg)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:1032:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
int stp_gdb_notify_btm_dmp_wq(MTKSTP_DBG_T *stp_dbg)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:1056:5: error: no
previous prototype for function 'stp_dbg_dmp_in' [-Werror,-Wmissing-prototypes]
int stp_dbg_dmp_in(MTKSTP_DBG_T *stp_dbg, char *buf, int len)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:1056:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
int stp_dbg_dmp_in(MTKSTP_DBG_T *stp_dbg, char *buf, int len)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:1254:8: error:
variable 'mydata' set but not used [-Werror,-Wunused-but-set-variable]
char *mydata;
^
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:1346:8: error: no
previous prototype for function '_stp_dbg_id_to_task'
[-Werror,-Wmissing-prototypes]
UINT8 *_stp_dbg_id_to_task(UINT32 id)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:1346:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
UINT8 *_stp_dbg_id_to_task(UINT32 id)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:1362:7: error: no
previous prototype for function '_stp_dbg_parser_assert_str'
[-Werror,-Wmissing-prototypes]
INT32 _stp_dbg_parser_assert_str(PINT8 str,
ENUM_ASSERT_INFO_PARSER_TYPE type)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:1362:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
INT32 _stp_dbg_parser_assert_str(PINT8 str, ENUM_ASSERT_INFO_PARSER_TYPE type)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:1530:20: error: no
previous prototype for function 'stp_dbg_cpupcr_init'
[-Werror,-Wmissing-prototypes]
P_STP_DBG_CPUPCR_T stp_dbg_cpupcr_init(VOID)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:1530:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
P_STP_DBG_CPUPCR_T stp_dbg_cpupcr_init(VOID)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:1547:21: error: no
previous prototype for function 'stp_dbg_dmaregs_init'
[-Werror,-Wmissing-prototypes]
P_STP_DBG_DMAREGS_T stp_dbg_dmaregs_init(VOID)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:1547:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
P_STP_DBG_DMAREGS_T stp_dbg_dmaregs_init(VOID)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:1564:6: error: no
previous prototype for function 'stp_dbg_cpupcr_deinit'
[-Werror,-Wmissing-prototypes]
VOID stp_dbg_cpupcr_deinit(P_STP_DBG_CPUPCR_T
pCpupcr)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:1564:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
VOID stp_dbg_cpupcr_deinit(P_STP_DBG_CPUPCR_T pCpupcr)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:1573:6: error: no
previous prototype for function 'stp_dbg_dmaregs_deinit'
[-Werror,-Wmissing-prototypes]
VOID stp_dbg_dmaregs_deinit(P_STP_DBG_DMAREGS_T
pDmaRegs)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_dbg.c:1573:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
VOID stp_dbg_dmaregs_deinit(P_STP_DBG_DMAREGS_T pDmaRegs)
^
static
17 errors generated.
--
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1289:7: error: no
previous prototype for function 'wmt_dev_dbg_setup' [-Werror,-Wmissing-prototypes]
INT32 wmt_dev_dbg_setup(VOID)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1289:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
INT32 wmt_dev_dbg_setup(VOID)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1303:7: error: no
previous prototype for function 'wmt_dev_dbg_remove'
[-Werror,-Wmissing-prototypes]
INT32 wmt_dev_dbg_remove(VOID)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1303:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
INT32 wmt_dev_dbg_remove(VOID)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1374:7: error: no
previous prototype for function 'wmt_dev_proc_for_aee_setup'
[-Werror,-Wmissing-prototypes]
INT32 wmt_dev_proc_for_aee_setup(VOID)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1374:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
INT32 wmt_dev_proc_for_aee_setup(VOID)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1390:7: error: no
previous prototype for function 'wmt_dev_proc_for_aee_remove'
[-Werror,-Wmissing-prototypes]
INT32 wmt_dev_proc_for_aee_remove(VOID)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1390:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
INT32 wmt_dev_proc_for_aee_remove(VOID)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1435:7: error: no
previous prototype for function 'wmt_dev_read_file' [-Werror,-Wmissing-prototypes]
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:1435:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
INT32 wmt_dev_read_file(PUINT8 pName, const PPUINT8 ppBufPtr, INT32 offset, INT32
padSzBuf)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1597:14: error: no
previous prototype for function 'wmt_dev_is_file_exist'
[-Werror,-Wmissing-prototypes]
MTK_WCN_BOOL wmt_dev_is_file_exist(PUINT8
pFileName)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1597:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
MTK_WCN_BOOL wmt_dev_is_file_exist(PUINT8 pFileName)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1645:14: error: no
previous prototype for function 'wmt_dev_tra_bitf_update'
[-Werror,-Wmissing-prototypes]
extern INT32 wmt_dev_tra_bitf_update(void)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1645:8: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
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 function 'wmt_dev_tm_temp_query'
[-Werror,-Wmissing-prototypes]
long wmt_dev_tm_temp_query(void)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1703:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
long wmt_dev_tm_temp_query(void)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1801:9: error: no
previous prototype for function 'WMT_write' [-Werror,-Wmissing-prototypes]
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:1801:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
ssize_t WMT_write(struct file *filp, const char __user *buf, size_t count, loff_t
*f_pos)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1834:9: error: no
previous prototype for function 'WMT_read' [-Werror,-Wmissing-prototypes]
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:1834:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
ssize_t WMT_read(struct file *filp, char __user *buf, size_t count, loff_t *f_pos)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1865:14: error: no
previous prototype for function 'WMT_poll' [-Werror,-Wmissing-prototypes]
unsigned int WMT_poll(struct file *filp, poll_table *wait)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1865:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
unsigned int WMT_poll(struct file *filp, poll_table *wait)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1985:11: error:
variable 'u4Wait' set but not used [-Werror,-Wunused-but-set-variable]
UINT32 u4Wait;
^
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:2154:21: error:
variable 'pTemp' set but not used [-Werror,-Wunused-but-set-variable]
P_WMT_PATCH_INFO pTemp = NULL;
^
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:1885:6: error: no
previous prototype for function 'WMT_unlocked_ioctl'
[-Werror,-Wmissing-prototypes]
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:1885:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
long WMT_unlocked_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:2368:6: error: no
previous prototype for function 'wmt_dev_bgw_desense_init'
[-Werror,-Wmissing-prototypes]
void wmt_dev_bgw_desense_init(VOID)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:2368:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
void wmt_dev_bgw_desense_init(VOID)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:2373:6: error: no
previous prototype for function 'wmt_dev_bgw_desense_deinit'
[-Werror,-Wmissing-prototypes]
void wmt_dev_bgw_desense_deinit(VOID)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:2373:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
void wmt_dev_bgw_desense_deinit(VOID)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:2544:5: error: no
previous prototype for function 'mtk_wcn_soc_common_drv_init'
[-Werror,-Wmissing-prototypes]
int mtk_wcn_soc_common_drv_init(void)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:2544:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
int mtk_wcn_soc_common_drv_init(void)
^
static
>
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:2550:6: error: no
previous prototype for function 'mtk_wcn_soc_common_drv_exit'
[-Werror,-Wmissing-prototypes]
void mtk_wcn_soc_common_drv_exit(void)
^
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/wmt_dev.c:2550:1: note:
declare 'static' if the function is not intended to be used outside of this
translation unit
void mtk_wcn_soc_common_drv_exit(void)
^
static
18 errors generated.
..
vim +/WMT_EFUSE_EVT +172
drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.c
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 171
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 @172 static UINT8 WMT_EFUSE_EVT[] = { 0x02,
0x0D, 0x08, 0x00,
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 173 0xAA, /*[4]operation, 0:init, 1:write
2:read */
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 174 0xBB, /*[5]Number of register setting
*/
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 175 0xCC, 0xCC, /*[6-7]Address */
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 176 0xDD, 0xDD, 0xDD, 0xDD /*[8-11] Value
*/
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 177 };
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 178
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 179 static UINT8 WMT_DSNS_CMD[] = { 0x01,
0x0E, 0x02, 0x00, 0x01,
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 180 0x00 /*desnse type */
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 181 };
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 182 static UINT8 WMT_DSNS_EVT[] = { 0x02,
0x0E, 0x01, 0x00, 0x00 };
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 183
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 184 /* TODO:[NewFeature][GeorgeKuo] Update
register group in ONE CMD/EVT */
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 185 static UINT8 WMT_SET_REG_CMD[] = { 0x01,
0x08, 0x10, 0x00 /*length */
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 186 , 0x00 /*op: w(1) & r(2) */
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 187 , 0x01 /*type: reg */
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 188 , 0x00 /*res */
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 189 , 0x01 /*1 register */
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 190 , 0x00, 0x00, 0x00, 0x00 /* addr
*/
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 191 , 0x00, 0x00, 0x00, 0x00 /* value
*/
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 192 , 0xFF, 0xFF, 0xFF, 0xFF /*mask */
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 193 };
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 194
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 @195 static UINT8 WMT_SET_REG_WR_EVT[] = {
0x02, 0x08, 0x04, 0x00 /*length */
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 196 , 0x00 /*S: 0 */
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 197 , 0x00 /*type: reg */
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 198 , 0x00 /*rev */
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 199 , 0x01 /*1 register */
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 200 /* , 0x00, 0x00, 0x00, 0x00 */ /*
addr */
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 201 /* , 0x00, 0x00, 0x00, 0x00 */ /*
value */
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 202 };
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 203
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 @204 static UINT8 WMT_SET_REG_RD_EVT[] = {
0x02, 0x08, 0x04, 0x00 /*length */
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 205 , 0x00 /*S: 0 */
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 206 , 0x00 /*type: reg */
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 207 , 0x00 /*rev */
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 208 , 0x01 /*1 register */
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 209 , 0x00, 0x00, 0x00, 0x00 /* addr
*/
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 210 , 0x00, 0x00, 0x00, 0x00 /* value
*/
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 211 };
40b7b77e58eeb92 Frank Wunderlich 2022-01-30 212
:::::: The code at line 172 was first introduced by commit
:::::: 40b7b77e58eeb92ede9e7842153047eb5d4e8942 mt6625l: add driver folder from 5.16
:::::: TO: Frank Wunderlich <frank-w(a)public-files.de>
:::::: CC: Frank Wunderlich <frank-w(a)public-files.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org