[frank-w-bpi-r2-4.14:5.17-r2pro-hdmiv5 16/97] 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
by kernel test robot
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
7 months, 1 week
[xilinx-xlnx:xlnx_rebase_v5.15 225/907] drivers/net/ethernet/xilinx/xilinx_axienet.h:973:9: error: implicit declaration of function 'writeq'; did you mean 'writeb'?
by kernel test robot
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15
head: 423a108a01e05e84b59a4c4885c16bf3cd8c90c7
commit: ee94241b2118ddd38a456b2b805fc584b57de58f [225/907] net: axienet: added multichannel DMA support
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20220210/202202100624.Jo8ZVvBE-lk...)
compiler: arceb-elf-gcc (GCC) 11.2.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/Xilinx/linux-xlnx/commit/ee94241b2118ddd38a456b2b805fc...
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15
git checkout ee94241b2118ddd38a456b2b805fc584b57de58f
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc 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 >>):
In file included from drivers/net/ethernet/xilinx/xilinx_axienet_main.c:48:
drivers/net/ethernet/xilinx/xilinx_axienet.h: In function 'axienet_dma_bdout':
>> drivers/net/ethernet/xilinx/xilinx_axienet.h:973:9: error: implicit declaration of function 'writeq'; did you mean 'writeb'? [-Werror=implicit-function-declaration]
973 | writeq(value, (q->dma_regs + reg));
| ^~~~~~
| writeb
drivers/net/ethernet/xilinx/xilinx_axienet_main.c: In function 'axienet_tx_hwtstamp':
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:533:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
533 | skb_hwtstamps((struct sk_buff *)cur_p->ptp_tx_skb);
| ^
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:586:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
586 | skb_pull((struct sk_buff *)cur_p->ptp_tx_skb,
| ^
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:589:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
589 | skb_tstamp_tx((struct sk_buff *)cur_p->ptp_tx_skb, shhwtstamps);
| ^
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:590:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
590 | dev_kfree_skb_any((struct sk_buff *)cur_p->ptp_tx_skb);
| ^
drivers/net/ethernet/xilinx/xilinx_axienet_main.c: In function 'axienet_start_xmit_done':
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:691:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
691 | dev_kfree_skb_irq((struct sk_buff *)cur_p->tx_skb);
| ^
drivers/net/ethernet/xilinx/xilinx_axienet_main.c: In function 'axienet_skb_tstsmp':
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:897:53: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
897 | cur_p->ptp_tx_skb = (phys_addr_t)skb_get(skb);
| ^
drivers/net/ethernet/xilinx/xilinx_axienet_main.c: In function 'axienet_queue_xmit':
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1000:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1000 | (((phys_addr_t)skb->data & 0x3) || num_frag > 0)) {
| ^
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1046:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1046 | cur_p->tx_skb = (phys_addr_t)skb;
| ^
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1047:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1047 | cur_p->tx_skb = (phys_addr_t)skb;
| ^
drivers/net/ethernet/xilinx/xilinx_axienet_main.c: In function 'axienet_recv':
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1137:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1137 | skb = (struct sk_buff *)(cur_p->sw_id_offset);
| ^
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1219:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1219 | cur_p->sw_id_offset = (phys_addr_t)new_skb;
| ^
drivers/net/ethernet/xilinx/xilinx_axienet_main.c: In function 'axienet_probe':
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:2981:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
2981 | struct resource txtsres, rxtsres;
| ^~~~~~
cc1: some warnings being treated as errors
--
In file included from drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c:18:
drivers/net/ethernet/xilinx/xilinx_axienet.h: In function 'axienet_dma_bdout':
>> drivers/net/ethernet/xilinx/xilinx_axienet.h:973:9: error: implicit declaration of function 'writeq'; did you mean 'writeb'? [-Werror=implicit-function-declaration]
973 | writeq(value, (q->dma_regs + reg));
| ^~~~~~
| writeb
cc1: some warnings being treated as errors
--
In file included from drivers/net/ethernet/xilinx/xilinx_axienet_dma.c:16:
drivers/net/ethernet/xilinx/xilinx_axienet.h: In function 'axienet_dma_bdout':
>> drivers/net/ethernet/xilinx/xilinx_axienet.h:973:9: error: implicit declaration of function 'writeq'; did you mean 'writeb'? [-Werror=implicit-function-declaration]
973 | writeq(value, (q->dma_regs + reg));
| ^~~~~~
| writeb
In file included from include/net/net_namespace.h:39,
from include/linux/netdevice.h:37,
from drivers/net/ethernet/xilinx/xilinx_axienet.h:12,
from drivers/net/ethernet/xilinx/xilinx_axienet_dma.c:16:
drivers/net/ethernet/xilinx/xilinx_axienet_dma.c: In function 'axienet_bd_free':
drivers/net/ethernet/xilinx/xilinx_axienet_dma.c:35:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
35 | dev_kfree_skb((struct sk_buff *)
| ^
include/linux/skbuff.h:1211:45: note: in definition of macro 'dev_kfree_skb'
1211 | #define dev_kfree_skb(a) consume_skb(a)
| ^
drivers/net/ethernet/xilinx/xilinx_axienet_dma.c: In function '__dma_rxq_init':
drivers/net/ethernet/xilinx/xilinx_axienet_dma.c:167:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
167 | q->rx_bd_v[i].sw_id_offset = (phys_addr_t)skb;
| ^
drivers/net/ethernet/xilinx/xilinx_axienet_dma.c: In function 'axienet_dma_err_handler':
drivers/net/ethernet/xilinx/xilinx_axienet_dma.c:412:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
412 | dev_kfree_skb_irq((struct sk_buff *)cur_p->tx_skb);
| ^
cc1: some warnings being treated as errors
--
In file included from drivers/net/ethernet/xilinx/xilinx_axienet_mcdma.c:23:
drivers/net/ethernet/xilinx/xilinx_axienet.h: In function 'axienet_dma_bdout':
>> drivers/net/ethernet/xilinx/xilinx_axienet.h:973:9: error: implicit declaration of function 'writeq'; did you mean 'writeb'? [-Werror=implicit-function-declaration]
973 | writeq(value, (q->dma_regs + reg));
| ^~~~~~
| writeb
In file included from include/linux/netlink.h:7,
from include/linux/ethtool.h:18,
from include/linux/phy.h:16,
from include/linux/of_mdio.h:12,
from drivers/net/ethernet/xilinx/xilinx_axienet_mcdma.c:17:
drivers/net/ethernet/xilinx/xilinx_axienet_mcdma.c: In function 'axienet_mcdma_rx_bd_free':
drivers/net/ethernet/xilinx/xilinx_axienet_mcdma.c:143:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
143 | dev_kfree_skb((struct sk_buff *)
| ^
include/linux/skbuff.h:1211:45: note: in definition of macro 'dev_kfree_skb'
1211 | #define dev_kfree_skb(a) consume_skb(a)
| ^
drivers/net/ethernet/xilinx/xilinx_axienet_mcdma.c: In function 'axienet_mcdma_rx_q_init':
drivers/net/ethernet/xilinx/xilinx_axienet_mcdma.c:277:47: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
277 | q->rxq_bd_v[i].sw_id_offset = (phys_addr_t)skb;
| ^
drivers/net/ethernet/xilinx/xilinx_axienet_mcdma.c: In function 'axienet_mcdma_err_handler':
drivers/net/ethernet/xilinx/xilinx_axienet_mcdma.c:621:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
621 | dev_kfree_skb_irq((struct sk_buff *)cur_p->tx_skb);
| ^
cc1: some warnings being treated as errors
vim +973 drivers/net/ethernet/xilinx/xilinx_axienet.h
959
960 /**
961 * axienet_dma_bdout - Memory mapped Axi DMA register Buffer Descriptor write.
962 * @q: Pointer to DMA queue structure
963 * @reg: Address offset from the base address of the Axi DMA core
964 * @value: Value to be written into the Axi DMA register
965 *
966 * This function writes the desired value into the corresponding Axi DMA
967 * register.
968 */
969 static inline void axienet_dma_bdout(struct axienet_dma_q *q,
970 off_t reg, dma_addr_t value)
971 {
972 #if defined(CONFIG_PHYS_ADDR_T_64BIT)
> 973 writeq(value, (q->dma_regs + reg));
974 #else
975 writel(value, (q->dma_regs + reg));
976 #endif
977 }
978 /* Function prototypes visible in xilinx_axienet_mdio.c for other files */
979 int axienet_mdio_enable(struct axienet_local *lp);
980 void axienet_mdio_disable(struct axienet_local *lp);
981 int axienet_mdio_setup(struct axienet_local *lp);
982 void axienet_mdio_teardown(struct axienet_local *lp);
983 int axienet_mdio_wait_until_ready(struct axienet_local *lp);
984 void __maybe_unused axienet_bd_free(struct net_device *ndev,
985 struct axienet_dma_q *q);
986 int __maybe_unused axienet_dma_q_init(struct net_device *ndev,
987 struct axienet_dma_q *q);
988 void axienet_dma_err_handler(unsigned long data);
989 irqreturn_t __maybe_unused axienet_tx_irq(int irq, void *_ndev);
990 irqreturn_t __maybe_unused axienet_rx_irq(int irq, void *_ndev);
991 void axienet_start_xmit_done(struct net_device *ndev, struct axienet_dma_q *q);
992 void axienet_dma_bd_release(struct net_device *ndev);
993 void __axienet_device_reset(struct axienet_dma_q *q);
994 void axienet_set_mac_address(struct net_device *ndev, const void *address);
995 void axienet_set_multicast_list(struct net_device *ndev);
996 int xaxienet_rx_poll(struct napi_struct *napi, int quota);
997
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[arm-platforms:irq/print_chip 13/22] kernel/irq/irqdomain.c:1856:6: error: conflicting types for 'irq_domain_set_info'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/print_chip
head: 409b7f9b2b99f333673f8d0f8bc960b524af3793
commit: a6b49900e62e91b7cad03024fb78f5373d9a0b8e [13/22] irqdomain: Let irq_domain_set_{info,hwirq_and_chip} take a const irq_chip
config: i386-randconfig-a001 (https://download.01.org/0day-ci/archive/20220210/202202100637.rvopHHnZ-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/com...
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms irq/print_chip
git checkout a6b49900e62e91b7cad03024fb78f5373d9a0b8e
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 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 >>):
>> kernel/irq/irqdomain.c:1856:6: error: conflicting types for 'irq_domain_set_info'
1856 | void irq_domain_set_info(struct irq_domain *domain, unsigned int virq,
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/acpi.h:13,
from kernel/irq/irqdomain.c:5:
include/linux/irqdomain.h:481:13: note: previous declaration of 'irq_domain_set_info' was here
481 | extern void irq_domain_set_info(struct irq_domain *domain, unsigned int virq,
| ^~~~~~~~~~~~~~~~~~~
vim +/irq_domain_set_info +1856 kernel/irq/irqdomain.c
f8264e34965aaf4 Jiang Liu 2014-11-06 1844
5f22f5c668204f3 Stefan Agner 2015-05-16 1845 /**
5f22f5c668204f3 Stefan Agner 2015-05-16 1846 * irq_domain_set_info - Set the complete data for a @virq in @domain
5f22f5c668204f3 Stefan Agner 2015-05-16 1847 * @domain: Interrupt domain to match
5f22f5c668204f3 Stefan Agner 2015-05-16 1848 * @virq: IRQ number
5f22f5c668204f3 Stefan Agner 2015-05-16 1849 * @hwirq: The hardware interrupt number
5f22f5c668204f3 Stefan Agner 2015-05-16 1850 * @chip: The associated interrupt chip
5f22f5c668204f3 Stefan Agner 2015-05-16 1851 * @chip_data: The associated interrupt chip data
5f22f5c668204f3 Stefan Agner 2015-05-16 1852 * @handler: The interrupt flow handler
5f22f5c668204f3 Stefan Agner 2015-05-16 1853 * @handler_data: The interrupt flow handler data
5f22f5c668204f3 Stefan Agner 2015-05-16 1854 * @handler_name: The interrupt handler name
5f22f5c668204f3 Stefan Agner 2015-05-16 1855 */
5f22f5c668204f3 Stefan Agner 2015-05-16 @1856 void irq_domain_set_info(struct irq_domain *domain, unsigned int virq,
5f22f5c668204f3 Stefan Agner 2015-05-16 1857 irq_hw_number_t hwirq, struct irq_chip *chip,
5f22f5c668204f3 Stefan Agner 2015-05-16 1858 void *chip_data, irq_flow_handler_t handler,
5f22f5c668204f3 Stefan Agner 2015-05-16 1859 void *handler_data, const char *handler_name)
5f22f5c668204f3 Stefan Agner 2015-05-16 1860 {
5f22f5c668204f3 Stefan Agner 2015-05-16 1861 irq_set_chip_and_handler_name(virq, chip, handler, handler_name);
5f22f5c668204f3 Stefan Agner 2015-05-16 1862 irq_set_chip_data(virq, chip_data);
5f22f5c668204f3 Stefan Agner 2015-05-16 1863 irq_set_handler_data(virq, handler_data);
5f22f5c668204f3 Stefan Agner 2015-05-16 1864 }
5f22f5c668204f3 Stefan Agner 2015-05-16 1865
:::::: The code at line 1856 was first introduced by commit
:::::: 5f22f5c668204f3af7557018b2ad6cf2074defac irqdomain: Add non-hierarchy helper irq_domain_set_info
:::::: TO: Stefan Agner <stefan(a)agner.ch>
:::::: CC: Thomas Gleixner <tglx(a)linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[arm-platforms:irq/print_chip 13/22] kernel/irq/irqdomain.c:1856:6: error: conflicting types for 'irq_domain_set_info'; have 'void(struct irq_domain *, unsigned int, irq_hw_number_t, struct irq_chip *, void *, void (*)(struct irq_desc *), void *, const char *)' {aka 'void(struct irq_domain...
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/print_chip
head: 409b7f9b2b99f333673f8d0f8bc960b524af3793
commit: a6b49900e62e91b7cad03024fb78f5373d9a0b8e [13/22] irqdomain: Let irq_domain_set_{info,hwirq_and_chip} take a const irq_chip
config: nds32-allnoconfig (https://download.01.org/0day-ci/archive/20220210/202202100525.0ui0AXjQ-lk...)
compiler: nds32le-linux-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/com...
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms irq/print_chip
git checkout a6b49900e62e91b7cad03024fb78f5373d9a0b8e
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nds32 SHELL=/bin/bash kernel/irq/
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 >>):
>> kernel/irq/irqdomain.c:1856:6: error: conflicting types for 'irq_domain_set_info'; have 'void(struct irq_domain *, unsigned int, irq_hw_number_t, struct irq_chip *, void *, void (*)(struct irq_desc *), void *, const char *)' {aka 'void(struct irq_domain *, unsigned int, long unsigned int, struct irq_chip *, void *, void (*)(struct irq_desc *), void *, const char *)'}
1856 | void irq_domain_set_info(struct irq_domain *domain, unsigned int virq,
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/acpi.h:13,
from kernel/irq/irqdomain.c:5:
include/linux/irqdomain.h:481:13: note: previous declaration of 'irq_domain_set_info' with type 'void(struct irq_domain *, unsigned int, irq_hw_number_t, const struct irq_chip *, void *, void (*)(struct irq_desc *), void *, const char *)' {aka 'void(struct irq_domain *, unsigned int, long unsigned int, const struct irq_chip *, void *, void (*)(struct irq_desc *), void *, const char *)'}
481 | extern void irq_domain_set_info(struct irq_domain *domain, unsigned int virq,
| ^~~~~~~~~~~~~~~~~~~
vim +1856 kernel/irq/irqdomain.c
f8264e34965aaf Jiang Liu 2014-11-06 1844
5f22f5c668204f Stefan Agner 2015-05-16 1845 /**
5f22f5c668204f Stefan Agner 2015-05-16 1846 * irq_domain_set_info - Set the complete data for a @virq in @domain
5f22f5c668204f Stefan Agner 2015-05-16 1847 * @domain: Interrupt domain to match
5f22f5c668204f Stefan Agner 2015-05-16 1848 * @virq: IRQ number
5f22f5c668204f Stefan Agner 2015-05-16 1849 * @hwirq: The hardware interrupt number
5f22f5c668204f Stefan Agner 2015-05-16 1850 * @chip: The associated interrupt chip
5f22f5c668204f Stefan Agner 2015-05-16 1851 * @chip_data: The associated interrupt chip data
5f22f5c668204f Stefan Agner 2015-05-16 1852 * @handler: The interrupt flow handler
5f22f5c668204f Stefan Agner 2015-05-16 1853 * @handler_data: The interrupt flow handler data
5f22f5c668204f Stefan Agner 2015-05-16 1854 * @handler_name: The interrupt handler name
5f22f5c668204f Stefan Agner 2015-05-16 1855 */
5f22f5c668204f Stefan Agner 2015-05-16 @1856 void irq_domain_set_info(struct irq_domain *domain, unsigned int virq,
5f22f5c668204f Stefan Agner 2015-05-16 1857 irq_hw_number_t hwirq, struct irq_chip *chip,
5f22f5c668204f Stefan Agner 2015-05-16 1858 void *chip_data, irq_flow_handler_t handler,
5f22f5c668204f Stefan Agner 2015-05-16 1859 void *handler_data, const char *handler_name)
5f22f5c668204f Stefan Agner 2015-05-16 1860 {
5f22f5c668204f Stefan Agner 2015-05-16 1861 irq_set_chip_and_handler_name(virq, chip, handler, handler_name);
5f22f5c668204f Stefan Agner 2015-05-16 1862 irq_set_chip_data(virq, chip_data);
5f22f5c668204f Stefan Agner 2015-05-16 1863 irq_set_handler_data(virq, handler_data);
5f22f5c668204f Stefan Agner 2015-05-16 1864 }
5f22f5c668204f Stefan Agner 2015-05-16 1865
:::::: The code at line 1856 was first introduced by commit
:::::: 5f22f5c668204f3af7557018b2ad6cf2074defac irqdomain: Add non-hierarchy helper irq_domain_set_info
:::::: TO: Stefan Agner <stefan(a)agner.ch>
:::::: CC: Thomas Gleixner <tglx(a)linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week