drivers/usb/typec/tcpm/wcove.c:380:50: sparse: sparse: incorrect type in argument 1 (different base types)
by kernel test robot
Hi Mika,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8ac91e6c6033ebc12c5c1e4aa171b81a662bd70f
commit: 25f1ca31e230598eaf3c38d387a355a64bd772a7 platform/x86: intel_pmc_ipc: Convert to MFD
date: 1 year, 1 month ago
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 25f1ca31e230598eaf3c38d387a355a64bd772a7
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/usb/typec/tcpm/wcove.c:380:50: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] header @@ got restricted __le16 const [usertype] header @@
drivers/usb/typec/tcpm/wcove.c:380:50: sparse: expected unsigned short [usertype] header
drivers/usb/typec/tcpm/wcove.c:380:50: sparse: got restricted __le16 const [usertype] header
vim +380 drivers/usb/typec/tcpm/wcove.c
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 356
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 357 static int wcove_pd_transmit(struct tcpc_dev *tcpc,
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 358 enum tcpm_transmit_type type,
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 359 const struct pd_message *msg)
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 360 {
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 361 struct wcove_typec *wcove = tcpc_to_wcove(tcpc);
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 362 unsigned int info = 0;
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 363 unsigned int cmd;
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 364 int ret;
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 365
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 366 ret = regmap_read(wcove->regmap, USBC_TXCMD, &cmd);
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 367 if (ret)
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 368 return ret;
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 369
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 370 if (!(cmd & USBC_TXCMD_BUF_RDY)) {
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 371 dev_warn(wcove->dev, "%s: Last transmission still ongoing!",
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 372 __func__);
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 373 return -EBUSY;
d2061f9cc32dbb drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-03-21 374 }
d2061f9cc32dbb drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-03-21 375
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 376 if (msg) {
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 377 const u8 *data = (void *)msg;
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 378 int i;
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 379
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 @380 for (i = 0; i < pd_header_cnt(msg->header) * 4 + 2; i++) {
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 381 ret = regmap_write(wcove->regmap, USBC_TX_DATA + i,
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 382 data[i]);
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 383 if (ret)
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 384 return ret;
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 385 }
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 386 }
d2061f9cc32dbb drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-03-21 387
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 388 switch (type) {
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 389 case TCPC_TX_SOP:
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 390 case TCPC_TX_SOP_PRIME:
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 391 case TCPC_TX_SOP_PRIME_PRIME:
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 392 case TCPC_TX_SOP_DEBUG_PRIME:
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 393 case TCPC_TX_SOP_DEBUG_PRIME_PRIME:
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 394 info = type + 1;
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 395 cmd = USBC_TXCMD_MSG;
d2061f9cc32dbb drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-03-21 396 break;
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 397 case TCPC_TX_HARD_RESET:
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 398 cmd = USBC_TXCMD_HR;
d2061f9cc32dbb drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-03-21 399 break;
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 400 case TCPC_TX_CABLE_RESET:
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 401 cmd = USBC_TXCMD_CR;
d2061f9cc32dbb drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-03-21 402 break;
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 403 case TCPC_TX_BIST_MODE_2:
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 404 cmd = USBC_TXCMD_BIST;
d2061f9cc32dbb drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-03-21 405 break;
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 406 default:
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 407 return -EINVAL;
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 408 }
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 409
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 410 /* NOTE Setting maximum number of retries (7) */
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 411 ret = regmap_write(wcove->regmap, USBC_TXINFO,
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 412 info | USBC_TXINFO_RETRIES(7));
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 413 if (ret)
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 414 return ret;
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 415
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 416 return regmap_write(wcove->regmap, USBC_TXCMD, cmd | USBC_TXCMD_START);
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 417 }
3c4fb9f1692142 drivers/usb/typec/typec_wcove.c Heikki Krogerus 2017-09-20 418
:::::: The code at line 380 was first introduced by commit
:::::: 3c4fb9f169214290ec9a943907321e6265b36f65 usb: typec: wcove: start using tcpm for USB PD support
:::::: TO: Heikki Krogerus <heikki.krogerus(a)linux.intel.com>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[linux-next:master 3321/3829] arch/ia64/include/asm/pal.h:1703:64: error: implicit declaration of function 'ia64_tpa'; did you mean 'ia64_pal'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 9f24705effef8c3b9eca00d70594ef7e0364a6da
commit: 925366294e2d243d908b4f2fea16eb400cb757d1 [3321/3829] kernel.h: split out panic and oops helpers
config: ia64-randconfig-r002-20210519 (attached as .config)
compiler: ia64-linux-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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 925366294e2d243d908b4f2fea16eb400cb757d1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
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 arch/ia64/include/asm/irqflags.h:14,
from include/linux/irqflags.h:16,
from kernel/locking/irqflag-debug.c:5:
arch/ia64/include/asm/pal.h: In function 'ia64_pal_tr_read':
>> arch/ia64/include/asm/pal.h:1703:64: error: implicit declaration of function 'ia64_tpa'; did you mean 'ia64_pal'? [-Werror=implicit-function-declaration]
1703 | PAL_CALL_PHYS_STK(iprv, PAL_VM_TR_READ, reg_num, tr_type,(u64)ia64_tpa(tr_buffer));
| ^~~~~~~~
arch/ia64/include/asm/pal.h:823:48: note: in definition of macro 'PAL_CALL_PHYS_STK'
823 | iprv = ia64_pal_call_phys_stacked(a0, a1, a2, a3); \
| ^~
In file included from include/linux/irqflags.h:16,
from kernel/locking/irqflag-debug.c:5:
arch/ia64/include/asm/irqflags.h: In function 'arch_local_save_flags':
>> arch/ia64/include/asm/irqflags.h:38:2: error: implicit declaration of function 'ia64_stop' [-Werror=implicit-function-declaration]
38 | ia64_stop();
| ^~~~~~~~~
>> arch/ia64/include/asm/irqflags.h:39:9: error: implicit declaration of function 'ia64_getreg'; did you mean 'ia64_get_ptce'? [-Werror=implicit-function-declaration]
39 | return ia64_getreg(_IA64_REG_PSR);
| ^~~~~~~~~~~
| ia64_get_ptce
>> arch/ia64/include/asm/irqflags.h:39:21: error: '_IA64_REG_PSR' undeclared (first use in this function)
39 | return ia64_getreg(_IA64_REG_PSR);
| ^~~~~~~~~~~~~
arch/ia64/include/asm/irqflags.h:39:21: note: each undeclared identifier is reported only once for each function it appears in
arch/ia64/include/asm/irqflags.h: In function 'arch_local_irq_save':
>> arch/ia64/include/asm/irqflags.h:47:2: error: implicit declaration of function 'ia64_rsm' [-Werror=implicit-function-declaration]
47 | ia64_rsm(IA64_PSR_I);
| ^~~~~~~~
arch/ia64/include/asm/irqflags.h: In function 'arch_local_irq_enable':
>> arch/ia64/include/asm/irqflags.h:65:2: error: implicit declaration of function 'ia64_ssm' [-Werror=implicit-function-declaration]
65 | ia64_ssm(IA64_PSR_I);
| ^~~~~~~~
>> arch/ia64/include/asm/irqflags.h:66:2: error: implicit declaration of function 'ia64_srlz_d' [-Werror=implicit-function-declaration]
66 | ia64_srlz_d();
| ^~~~~~~~~~~
arch/ia64/include/asm/irqflags.h: In function 'arch_local_irq_restore':
>> arch/ia64/include/asm/irqflags.h:74:2: error: implicit declaration of function 'ia64_intrin_local_irq_restore'; did you mean 'arch_local_irq_restore'? [-Werror=implicit-function-declaration]
74 | ia64_intrin_local_irq_restore(flags & IA64_PSR_I);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| arch_local_irq_restore
cc1: some warnings being treated as errors
vim +1703 arch/ia64/include/asm/pal.h
^1da177e4c3f415 include/asm-ia64/pal.h Linus Torvalds 2005-04-16 1697
^1da177e4c3f415 include/asm-ia64/pal.h Linus Torvalds 2005-04-16 1698 /* Read a translation register */
^1da177e4c3f415 include/asm-ia64/pal.h Linus Torvalds 2005-04-16 1699 static inline s64
^1da177e4c3f415 include/asm-ia64/pal.h Linus Torvalds 2005-04-16 1700 ia64_pal_tr_read (u64 reg_num, u64 tr_type, u64 *tr_buffer, pal_tr_valid_u_t *tr_valid)
^1da177e4c3f415 include/asm-ia64/pal.h Linus Torvalds 2005-04-16 1701 {
^1da177e4c3f415 include/asm-ia64/pal.h Linus Torvalds 2005-04-16 1702 struct ia64_pal_retval iprv;
^1da177e4c3f415 include/asm-ia64/pal.h Linus Torvalds 2005-04-16 @1703 PAL_CALL_PHYS_STK(iprv, PAL_VM_TR_READ, reg_num, tr_type,(u64)ia64_tpa(tr_buffer));
^1da177e4c3f415 include/asm-ia64/pal.h Linus Torvalds 2005-04-16 1704 if (tr_valid)
^1da177e4c3f415 include/asm-ia64/pal.h Linus Torvalds 2005-04-16 1705 tr_valid->piv_val = iprv.v0;
^1da177e4c3f415 include/asm-ia64/pal.h Linus Torvalds 2005-04-16 1706 return iprv.status;
^1da177e4c3f415 include/asm-ia64/pal.h Linus Torvalds 2005-04-16 1707 }
^1da177e4c3f415 include/asm-ia64/pal.h Linus Torvalds 2005-04-16 1708
:::::: The code at line 1703 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[pinchartl-media:imx8mp/for-marek 118/277] xtensa-linux-ld: imx8m_pm_domains.c:undefined reference to `__arm_smccc_smc'
by kernel test robot
Hi Jacky,
First bad commit (maybe != root cause):
tree: git://linuxtv.org/pinchartl/media.git imx8mp/for-marek
head: dd5edf150f9888ae51868655558ca393131a52a1
commit: e37e6985e079fa1c20ccaa25e01430cfbc84d716 [118/277] MLK-22404-02 soc: imx: Add power domain driver support for i.mx8m family
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-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 remote add pinchartl-media git://linuxtv.org/pinchartl/media.git
git fetch --no-tags pinchartl-media imx8mp/for-marek
git checkout e37e6985e079fa1c20ccaa25e01430cfbc84d716
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
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 >>):
`.exit.text' referenced in section `__jump_table' of fs/cifs/cifsfs.o: defined in discarded section `.exit.text' of fs/cifs/cifsfs.o
`.exit.text' referenced in section `__jump_table' of fs/cifs/cifsfs.o: defined in discarded section `.exit.text' of fs/cifs/cifsfs.o
`.exit.text' referenced in section `__jump_table' of fs/fuse/inode.o: defined in discarded section `.exit.text' of fs/fuse/inode.o
`.exit.text' referenced in section `__jump_table' of fs/fuse/inode.o: defined in discarded section `.exit.text' of fs/fuse/inode.o
`.exit.text' referenced in section `__jump_table' of fs/ceph/super.o: defined in discarded section `.exit.text' of fs/ceph/super.o
`.exit.text' referenced in section `__jump_table' of fs/ceph/super.o: defined in discarded section `.exit.text' of fs/ceph/super.o
`.exit.text' referenced in section `__jump_table' of drivers/rapidio/rio_cm.o: defined in discarded section `.exit.text' of drivers/rapidio/rio_cm.o
`.exit.text' referenced in section `__jump_table' of drivers/rapidio/rio_cm.o: defined in discarded section `.exit.text' of drivers/rapidio/rio_cm.o
`.exit.text' referenced in section `__jump_table' of drivers/rapidio/switches/idt_gen2.o: defined in discarded section `.exit.text' of drivers/rapidio/switches/idt_gen2.o
`.exit.text' referenced in section `__jump_table' of drivers/rapidio/switches/idt_gen2.o: defined in discarded section `.exit.text' of drivers/rapidio/switches/idt_gen2.o
`.exit.text' referenced in section `__jump_table' of drivers/rapidio/switches/idt_gen2.o: defined in discarded section `.exit.text' of drivers/rapidio/switches/idt_gen2.o
`.exit.text' referenced in section `__jump_table' of drivers/rapidio/switches/idt_gen2.o: defined in discarded section `.exit.text' of drivers/rapidio/switches/idt_gen2.o
`.exit.text' referenced in section `__jump_table' of drivers/rapidio/switches/idt_gen3.o: defined in discarded section `.exit.text' of drivers/rapidio/switches/idt_gen3.o
`.exit.text' referenced in section `__jump_table' of drivers/rapidio/switches/idt_gen3.o: defined in discarded section `.exit.text' of drivers/rapidio/switches/idt_gen3.o
`.exit.text' referenced in section `__jump_table' of drivers/rapidio/switches/idt_gen3.o: defined in discarded section `.exit.text' of drivers/rapidio/switches/idt_gen3.o
`.exit.text' referenced in section `__jump_table' of drivers/rapidio/switches/idt_gen3.o: defined in discarded section `.exit.text' of drivers/rapidio/switches/idt_gen3.o
`.exit.text' referenced in section `__jump_table' of drivers/video/fbdev/vt8623fb.o: defined in discarded section `.exit.text' of drivers/video/fbdev/vt8623fb.o
`.exit.text' referenced in section `__jump_table' of drivers/video/fbdev/vt8623fb.o: defined in discarded section `.exit.text' of drivers/video/fbdev/vt8623fb.o
`.exit.text' referenced in section `__jump_table' of drivers/video/fbdev/s3fb.o: defined in discarded section `.exit.text' of drivers/video/fbdev/s3fb.o
`.exit.text' referenced in section `__jump_table' of drivers/video/fbdev/s3fb.o: defined in discarded section `.exit.text' of drivers/video/fbdev/s3fb.o
`.exit.text' referenced in section `__jump_table' of drivers/video/fbdev/arkfb.o: defined in discarded section `.exit.text' of drivers/video/fbdev/arkfb.o
`.exit.text' referenced in section `__jump_table' of drivers/video/fbdev/arkfb.o: defined in discarded section `.exit.text' of drivers/video/fbdev/arkfb.o
>> xtensa-linux-ld: drivers/soc/imx/imx8m_pm_domains.o:(.text+0x74): undefined reference to `__arm_smccc_smc'
xtensa-linux-ld: drivers/soc/imx/imx8m_pm_domains.o: in function `imx8m_pd_power_on':
imx8m_pm_domains.c:(.text+0x18f): undefined reference to `__arm_smccc_smc'
>> xtensa-linux-ld: imx8m_pm_domains.c:(.text+0x20c): undefined reference to `__arm_smccc_smc'
xtensa-linux-ld: drivers/soc/imx/imx8m_pm_domains.o: in function `imx8m_pd_power_off':
imx8m_pm_domains.c:(.text+0x2b8): undefined reference to `__arm_smccc_smc'
`.exit.text' referenced in section `__jump_table' of drivers/misc/phantom.o: defined in discarded section `.exit.text' of drivers/misc/phantom.o
`.exit.text' referenced in section `__jump_table' of drivers/misc/phantom.o: defined in discarded section `.exit.text' of drivers/misc/phantom.o
`.exit.text' referenced in section `__jump_table' of drivers/misc/habanalabs/common/habanalabs_drv.o: defined in discarded section `.exit.text' of drivers/misc/habanalabs/common/habanalabs_drv.o
`.exit.text' referenced in section `__jump_table' of drivers/misc/habanalabs/common/habanalabs_drv.o: defined in discarded section `.exit.text' of drivers/misc/habanalabs/common/habanalabs_drv.o
`.exit.text' referenced in section `__jump_table' of drivers/scsi/fcoe/fcoe.o: defined in discarded section `.exit.text' of drivers/scsi/fcoe/fcoe.o
`.exit.text' referenced in section `__jump_table' of drivers/scsi/fcoe/fcoe.o: defined in discarded section `.exit.text' of drivers/scsi/fcoe/fcoe.o
`.exit.text' referenced in section `__jump_table' of drivers/scsi/cxgbi/libcxgbi.o: defined in discarded section `.exit.text' of drivers/scsi/cxgbi/libcxgbi.o
`.exit.text' referenced in section `__jump_table' of drivers/scsi/cxgbi/libcxgbi.o: defined in discarded section `.exit.text' of drivers/scsi/cxgbi/libcxgbi.o
`.exit.text' referenced in section `__jump_table' of drivers/target/target_core_configfs.o: defined in discarded section `.exit.text' of drivers/target/target_core_configfs.o
`.exit.text' referenced in section `__jump_table' of drivers/target/target_core_configfs.o: defined in discarded section `.exit.text' of drivers/target/target_core_configfs.o
`.exit.text' referenced in section `__jump_table' of drivers/mtd/maps/pcmciamtd.o: defined in discarded section `.exit.text' of drivers/mtd/maps/pcmciamtd.o
`.exit.text' referenced in section `__jump_table' of drivers/mtd/maps/pcmciamtd.o: defined in discarded section `.exit.text' of drivers/mtd/maps/pcmciamtd.o
`.exit.text' referenced in section `__jump_table' of drivers/net/wireless/zydas/zd1211rw/zd_usb.o: defined in discarded section `.exit.text' of drivers/net/wireless/zydas/zd1211rw/zd_usb.o
`.exit.text' referenced in section `__jump_table' of drivers/net/wireless/zydas/zd1211rw/zd_usb.o: defined in discarded section `.exit.text' of drivers/net/wireless/zydas/zd1211rw/zd_usb.o
`.exit.text' referenced in section `__jump_table' of drivers/net/wireless/ray_cs.o: defined in discarded section `.exit.text' of drivers/net/wireless/ray_cs.o
`.exit.text' referenced in section `__jump_table' of drivers/net/wireless/ray_cs.o: defined in discarded section `.exit.text' of drivers/net/wireless/ray_cs.o
`.exit.text' referenced in section `__jump_table' of drivers/net/wireless/mac80211_hwsim.o: defined in discarded section `.exit.text' of drivers/net/wireless/mac80211_hwsim.o
`.exit.text' referenced in section `__jump_table' of drivers/net/wireless/mac80211_hwsim.o: defined in discarded section `.exit.text' of drivers/net/wireless/mac80211_hwsim.o
`.exit.text' referenced in section `__jump_table' of drivers/usb/gadget/legacy/inode.o: defined in discarded section `.exit.text' of drivers/usb/gadget/legacy/inode.o
`.exit.text' referenced in section `__jump_table' of drivers/usb/gadget/legacy/inode.o: defined in discarded section `.exit.text' of drivers/usb/gadget/legacy/inode.o
`.exit.text' referenced in section `__jump_table' of drivers/usb/gadget/legacy/g_ffs.o: defined in discarded section `.exit.text' of drivers/usb/gadget/legacy/g_ffs.o
`.exit.text' referenced in section `__jump_table' of drivers/usb/gadget/legacy/g_ffs.o: defined in discarded section `.exit.text' of drivers/usb/gadget/legacy/g_ffs.o
`.exit.text' referenced in section `__jump_table' of drivers/media/common/siano/smscoreapi.o: defined in discarded section `.exit.text' of drivers/media/common/siano/smscoreapi.o
`.exit.text' referenced in section `__jump_table' of drivers/media/common/siano/smscoreapi.o: defined in discarded section `.exit.text' of drivers/media/common/siano/smscoreapi.o
`.exit.text' referenced in section `__jump_table' of drivers/vme/bridges/vme_fake.o: defined in discarded section `.exit.text' of drivers/vme/bridges/vme_fake.o
`.exit.text' referenced in section `__jump_table' of drivers/vme/bridges/vme_fake.o: defined in discarded section `.exit.text' of drivers/vme/bridges/vme_fake.o
`.exit.text' referenced in section `__jump_table' of net/netfilter/nf_conntrack_h323_main.o: defined in discarded section `.exit.text' of net/netfilter/nf_conntrack_h323_main.o
`.exit.text' referenced in section `__jump_table' of net/netfilter/nf_conntrack_h323_main.o: defined in discarded section `.exit.text' of net/netfilter/nf_conntrack_h323_main.o
`.exit.text' referenced in section `__jump_table' of net/netfilter/ipset/ip_set_core.o: defined in discarded section `.exit.text' of net/netfilter/ipset/ip_set_core.o
`.exit.text' referenced in section `__jump_table' of net/netfilter/ipset/ip_set_core.o: defined in discarded section `.exit.text' of net/netfilter/ipset/ip_set_core.o
`.exit.text' referenced in section `__jump_table' of net/bluetooth/6lowpan.o: defined in discarded section `.exit.text' of net/bluetooth/6lowpan.o
`.exit.text' referenced in section `__jump_table' of net/bluetooth/6lowpan.o: defined in discarded section `.exit.text' of net/bluetooth/6lowpan.o
`.exit.text' referenced in section `__jump_table' of net/ceph/ceph_common.o: defined in discarded section `.exit.text' of net/ceph/ceph_common.o
`.exit.text' referenced in section `__jump_table' of net/ceph/ceph_common.o: defined in discarded section `.exit.text' of net/ceph/ceph_common.o
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[shenki:dev-5.4 159/293] drivers/mfd/intel-peci-client.c:47:20: error: 'INTEL_FAM6_SKYLAKE_XD' undeclared here (not in a function); did you mean 'INTEL_FAM6_SKYLAKE_X'?
by kernel test robot
Hi Jae,
FYI, the error/warning still remains.
tree: https://github.com/shenki/linux dev-5.4
head: 43e79c6defc55f9c0e3190aa2c2ed0bd1b704e07
commit: 89d561847e6b7d3093ac13de78f263470403d0a6 [159/293] mfd: intel-peci-client: Add Intel PECI client driver
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/shenki/linux/commit/89d561847e6b7d3093ac13de78f2634704...
git remote add shenki https://github.com/shenki/linux
git fetch --no-tags shenki dev-5.4
git checkout 89d561847e6b7d3093ac13de78f263470403d0a6
# save the attached .config to linux build tree
make W=1 ARCH=i386
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/mfd/intel-peci-client.c:47:20: error: 'INTEL_FAM6_SKYLAKE_XD' undeclared here (not in a function); did you mean 'INTEL_FAM6_SKYLAKE_X'?
47 | .model = INTEL_FAM6_SKYLAKE_XD,
| ^~~~~~~~~~~~~~~~~~~~~
| INTEL_FAM6_SKYLAKE_X
vim +47 drivers/mfd/intel-peci-client.c
25
26 static const struct cpu_gen_info cpu_gen_info_table[] = {
27 { /* Haswell Xeon */
28 .family = INTEL_FAM6,
29 .model = INTEL_FAM6_HASWELL_X,
30 .core_max = CORE_MAX_ON_HSX,
31 .chan_rank_max = CHAN_RANK_MAX_ON_HSX,
32 .dimm_idx_max = DIMM_IDX_MAX_ON_HSX },
33 { /* Broadwell Xeon */
34 .family = INTEL_FAM6,
35 .model = INTEL_FAM6_BROADWELL_X,
36 .core_max = CORE_MAX_ON_BDX,
37 .chan_rank_max = CHAN_RANK_MAX_ON_BDX,
38 .dimm_idx_max = DIMM_IDX_MAX_ON_BDX },
39 { /* Skylake Xeon */
40 .family = INTEL_FAM6,
41 .model = INTEL_FAM6_SKYLAKE_X,
42 .core_max = CORE_MAX_ON_SKX,
43 .chan_rank_max = CHAN_RANK_MAX_ON_SKX,
44 .dimm_idx_max = DIMM_IDX_MAX_ON_SKX },
45 { /* Skylake Xeon D */
46 .family = INTEL_FAM6,
> 47 .model = INTEL_FAM6_SKYLAKE_XD,
48 .core_max = CORE_MAX_ON_SKXD,
49 .chan_rank_max = CHAN_RANK_MAX_ON_SKXD,
50 .dimm_idx_max = DIMM_IDX_MAX_ON_SKXD },
51 };
52
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[freescale-fslc:pr/341 14836/18812] drivers/misc/mic/scif/scif_api.c:1101:30: warning: left shift count >= width of type
by kernel test robot
tree: https://github.com/Freescale/linux-fslc pr/341
head: a9cd93bab1195c192188b78911e8e2bf47cfd6c2
commit: 36c9b7a8085cc507a15927a4e333bc7778f6c9b3 [14836/18812] MLK-24937-2 misc: mic: add the correct dependencies and fix build errors for COSM/SCIF modules
config: ia64-randconfig-r032-20210519 (attached as .config)
compiler: ia64-linux-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/Freescale/linux-fslc/commit/36c9b7a8085cc507a15927a4e3...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/341
git checkout 36c9b7a8085cc507a15927a4e333bc7778f6c9b3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/misc/mic/scif/scif_api.c: In function '_scif_recv':
drivers/misc/mic/scif/scif_api.c:1000:6: warning: variable 'read_size' set but not used [-Wunused-but-set-variable]
1000 | int read_size;
| ^~~~~~~~~
In file included from include/linux/list.h:9,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/linux/ktime.h:24,
from include/linux/poll.h:7,
from include/linux/scif.h:57,
from drivers/misc/mic/scif/scif_api.c:9:
drivers/misc/mic/scif/scif_api.c: In function 'scif_user_send':
>> drivers/misc/mic/scif/scif_api.c:1101:30: warning: left shift count >= width of type [-Wshift-count-overflow]
1101 | int chunk_len = min(len, (1 << (MAX_ORDER + PAGE_SHIFT - 1)));
| ^~
include/linux/kernel.h:858:34: note: in definition of macro '__cmp'
858 | #define __cmp(x, y, op) ((x) op (y) ? (x) : (y))
| ^
include/linux/kernel.h:875:19: note: in expansion of macro '__careful_cmp'
875 | #define min(x, y) __careful_cmp(x, y, <)
| ^~~~~~~~~~~~~
drivers/misc/mic/scif/scif_api.c:1101:18: note: in expansion of macro 'min'
1101 | int chunk_len = min(len, (1 << (MAX_ORDER + PAGE_SHIFT - 1)));
| ^~~
>> drivers/misc/mic/scif/scif_api.c:1101:30: warning: left shift count >= width of type [-Wshift-count-overflow]
1101 | int chunk_len = min(len, (1 << (MAX_ORDER + PAGE_SHIFT - 1)));
| ^~
include/linux/kernel.h:858:46: note: in definition of macro '__cmp'
858 | #define __cmp(x, y, op) ((x) op (y) ? (x) : (y))
| ^
include/linux/kernel.h:875:19: note: in expansion of macro '__careful_cmp'
875 | #define min(x, y) __careful_cmp(x, y, <)
| ^~~~~~~~~~~~~
drivers/misc/mic/scif/scif_api.c:1101:18: note: in expansion of macro 'min'
1101 | int chunk_len = min(len, (1 << (MAX_ORDER + PAGE_SHIFT - 1)));
| ^~~
>> drivers/misc/mic/scif/scif_api.c:1101:30: warning: left shift count >= width of type [-Wshift-count-overflow]
1101 | int chunk_len = min(len, (1 << (MAX_ORDER + PAGE_SHIFT - 1)));
| ^~
include/linux/kernel.h:862:25: note: in definition of macro '__cmp_once'
862 | typeof(y) unique_y = (y); \
| ^
include/linux/kernel.h:875:19: note: in expansion of macro '__careful_cmp'
875 | #define min(x, y) __careful_cmp(x, y, <)
| ^~~~~~~~~~~~~
drivers/misc/mic/scif/scif_api.c:1101:18: note: in expansion of macro 'min'
1101 | int chunk_len = min(len, (1 << (MAX_ORDER + PAGE_SHIFT - 1)));
| ^~~
drivers/misc/mic/scif/scif_api.c: In function 'scif_user_recv':
drivers/misc/mic/scif/scif_api.c:1162:30: warning: left shift count >= width of type [-Wshift-count-overflow]
1162 | int chunk_len = min(len, (1 << (MAX_ORDER + PAGE_SHIFT - 1)));
| ^~
include/linux/kernel.h:858:34: note: in definition of macro '__cmp'
858 | #define __cmp(x, y, op) ((x) op (y) ? (x) : (y))
| ^
include/linux/kernel.h:875:19: note: in expansion of macro '__careful_cmp'
875 | #define min(x, y) __careful_cmp(x, y, <)
| ^~~~~~~~~~~~~
drivers/misc/mic/scif/scif_api.c:1162:18: note: in expansion of macro 'min'
1162 | int chunk_len = min(len, (1 << (MAX_ORDER + PAGE_SHIFT - 1)));
| ^~~
drivers/misc/mic/scif/scif_api.c:1162:30: warning: left shift count >= width of type [-Wshift-count-overflow]
1162 | int chunk_len = min(len, (1 << (MAX_ORDER + PAGE_SHIFT - 1)));
| ^~
include/linux/kernel.h:858:46: note: in definition of macro '__cmp'
858 | #define __cmp(x, y, op) ((x) op (y) ? (x) : (y))
| ^
include/linux/kernel.h:875:19: note: in expansion of macro '__careful_cmp'
875 | #define min(x, y) __careful_cmp(x, y, <)
| ^~~~~~~~~~~~~
drivers/misc/mic/scif/scif_api.c:1162:18: note: in expansion of macro 'min'
1162 | int chunk_len = min(len, (1 << (MAX_ORDER + PAGE_SHIFT - 1)));
| ^~~
drivers/misc/mic/scif/scif_api.c:1162:30: warning: left shift count >= width of type [-Wshift-count-overflow]
1162 | int chunk_len = min(len, (1 << (MAX_ORDER + PAGE_SHIFT - 1)));
| ^~
include/linux/kernel.h:862:25: note: in definition of macro '__cmp_once'
862 | typeof(y) unique_y = (y); \
| ^
include/linux/kernel.h:875:19: note: in expansion of macro '__careful_cmp'
875 | #define min(x, y) __careful_cmp(x, y, <)
| ^~~~~~~~~~~~~
drivers/misc/mic/scif/scif_api.c:1162:18: note: in expansion of macro 'min'
1162 | int chunk_len = min(len, (1 << (MAX_ORDER + PAGE_SHIFT - 1)));
| ^~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for FRAME_POINTER
Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS
Selected by
- FAULT_INJECTION_STACKTRACE_FILTER && FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT && !X86_64 && !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM && !ARC && !X86
vim +1101 drivers/misc/mic/scif/scif_api.c
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1083
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1084 /**
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1085 * scif_user_send() - Send data to connection queue
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1086 * @epd: The end point returned from scif_open()
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1087 * @msg: Address to place data
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1088 * @len: Length to receive
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1089 * @flags: blocking or non blocking
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1090 *
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1091 * This function is called from the driver IOCTL entry point
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1092 * only and is a wrapper for _scif_send().
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1093 */
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1094 int scif_user_send(scif_epd_t epd, void __user *msg, int len, int flags)
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1095 {
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1096 struct scif_endpt *ep = (struct scif_endpt *)epd;
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1097 int err = 0;
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1098 int sent_len = 0;
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1099 char *tmp;
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1100 int loop_len;
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 @1101 int chunk_len = min(len, (1 << (MAX_ORDER + PAGE_SHIFT - 1)));
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1102
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1103 dev_dbg(scif_info.mdev.this_device,
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1104 "SCIFAPI send (U): ep %p %s\n", ep, scif_ep_states[ep->state]);
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1105 if (!len)
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1106 return 0;
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1107
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1108 err = scif_msg_param_check(epd, len, flags);
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1109 if (err)
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1110 goto send_err;
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1111
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1112 tmp = kmalloc(chunk_len, GFP_KERNEL);
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1113 if (!tmp) {
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1114 err = -ENOMEM;
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1115 goto send_err;
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1116 }
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1117 /*
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1118 * Grabbing the lock before breaking up the transfer in
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1119 * multiple chunks is required to ensure that messages do
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1120 * not get fragmented and reordered.
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1121 */
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1122 mutex_lock(&ep->sendlock);
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1123 while (sent_len != len) {
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1124 loop_len = len - sent_len;
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1125 loop_len = min(chunk_len, loop_len);
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1126 if (copy_from_user(tmp, msg, loop_len)) {
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1127 err = -EFAULT;
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1128 goto send_free_err;
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1129 }
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1130 err = _scif_send(epd, tmp, loop_len, flags);
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1131 if (err < 0)
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1132 goto send_free_err;
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1133 sent_len += err;
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1134 msg += err;
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1135 if (err != loop_len)
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1136 goto send_free_err;
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1137 }
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1138 send_free_err:
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1139 mutex_unlock(&ep->sendlock);
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1140 kfree(tmp);
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1141 send_err:
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1142 return err < 0 ? err : sent_len;
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1143 }
fdd9fd5c38afe7 Sudeep Dutt 2015-04-29 1144
:::::: The code at line 1101 was first introduced by commit
:::::: fdd9fd5c38afe732258a0af4c6be14f3fbd1585c misc: mic: SCIF messaging and node enumeration APIs
:::::: TO: Sudeep Dutt <sudeep.dutt(a)intel.com>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[djwong-xfs:quotaoff-cleanups-5.14 9/13] fs/xfs/xfs_icache.c:894:1: warning: no previous prototype for function 'xfs_inode_walk'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git quotaoff-cleanups-5.14
head: a1f5d2033e4e314fb8a52a151dd6e1f389f4bc4b
commit: 22506fb74c2f1170af9344fc7a84048185e19aca [9/13] xfs: move the quotaoff dqrele inode walk into xfs_icache.c
config: x86_64-randconfig-a011-20210518 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project ceb1ac9812cb0972cfa34cecc5e5704ae2a22063)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git/comm...
git remote add djwong-xfs https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
git fetch --no-tags djwong-xfs quotaoff-cleanups-5.14
git checkout 22506fb74c2f1170af9344fc7a84048185e19aca
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> fs/xfs/xfs_icache.c:894:1: warning: no previous prototype for function 'xfs_inode_walk' [-Wmissing-prototypes]
xfs_inode_walk(
^
fs/xfs/xfs_icache.c:893:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int
^
static
1 warning generated.
vim +/xfs_inode_walk +894 fs/xfs/xfs_icache.c
5662d38ccdbd9e Darrick J. Wong 2020-05-21 888
5662d38ccdbd9e Darrick J. Wong 2020-05-21 889 /*
5662d38ccdbd9e Darrick J. Wong 2020-05-21 890 * Call the @execute function on all incore inodes matching the radix tree
5662d38ccdbd9e Darrick J. Wong 2020-05-21 891 * @tag.
5662d38ccdbd9e Darrick J. Wong 2020-05-21 892 */
5662d38ccdbd9e Darrick J. Wong 2020-05-21 893 int
042f65f4a79c81 Darrick J. Wong 2020-05-21 @894 xfs_inode_walk(
5662d38ccdbd9e Darrick J. Wong 2020-05-21 895 struct xfs_mount *mp,
5662d38ccdbd9e Darrick J. Wong 2020-05-21 896 int iter_flags,
5662d38ccdbd9e Darrick J. Wong 2020-05-21 897 int (*execute)(struct xfs_inode *ip, void *args),
5662d38ccdbd9e Darrick J. Wong 2020-05-21 898 void *args,
5662d38ccdbd9e Darrick J. Wong 2020-05-21 899 int tag)
5662d38ccdbd9e Darrick J. Wong 2020-05-21 900 {
5662d38ccdbd9e Darrick J. Wong 2020-05-21 901 struct xfs_perag *pag;
5662d38ccdbd9e Darrick J. Wong 2020-05-21 902 int error = 0;
5662d38ccdbd9e Darrick J. Wong 2020-05-21 903 int last_error = 0;
5662d38ccdbd9e Darrick J. Wong 2020-05-21 904 xfs_agnumber_t ag;
5662d38ccdbd9e Darrick J. Wong 2020-05-21 905
5662d38ccdbd9e Darrick J. Wong 2020-05-21 906 ag = 0;
5662d38ccdbd9e Darrick J. Wong 2020-05-21 907 while ((pag = xfs_inode_walk_get_perag(mp, ag, tag))) {
5662d38ccdbd9e Darrick J. Wong 2020-05-21 908 ag = pag->pag_agno + 1;
964176bd32da98 Darrick J. Wong 2020-05-21 909 error = xfs_inode_walk_ag(pag, iter_flags, execute, args, tag);
5662d38ccdbd9e Darrick J. Wong 2020-05-21 910 xfs_perag_put(pag);
5662d38ccdbd9e Darrick J. Wong 2020-05-21 911 if (error) {
5662d38ccdbd9e Darrick J. Wong 2020-05-21 912 last_error = error;
5662d38ccdbd9e Darrick J. Wong 2020-05-21 913 if (error == -EFSCORRUPTED)
5662d38ccdbd9e Darrick J. Wong 2020-05-21 914 break;
5662d38ccdbd9e Darrick J. Wong 2020-05-21 915 }
5662d38ccdbd9e Darrick J. Wong 2020-05-21 916 }
5662d38ccdbd9e Darrick J. Wong 2020-05-21 917 return last_error;
5662d38ccdbd9e Darrick J. Wong 2020-05-21 918 }
5662d38ccdbd9e Darrick J. Wong 2020-05-21 919
:::::: The code at line 894 was first introduced by commit
:::::: 042f65f4a79c819d74309c2607959fccacc4094a xfs: straighten out all the naming around incore inode tree walks
:::::: TO: Darrick J. Wong <darrick.wong(a)oracle.com>
:::::: CC: Darrick J. Wong <darrick.wong(a)oracle.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[freescale-fslc:pr/341 15241/18812] drivers/reset/reset-imx-hdmimix.c:134:23: sparse: sparse: incorrect type in assignment (different address spaces)
by kernel test robot
Hi Jason,
First bad commit (maybe != root cause):
tree: https://github.com/Freescale/linux-fslc pr/341
head: a9cd93bab1195c192188b78911e8e2bf47cfd6c2
commit: 5bb09de3044acf91e6f8c712c026d5a4bc53b563 [15241/18812] MLK-24874-1: include: uapi: fmd: fix the UAPI_HEADER_TEST/install failure
config: xtensa-randconfig-s032-20210519 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://github.com/Freescale/linux-fslc/commit/5bb09de3044acf91e6f8c712c0...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/341
git checkout 5bb09de3044acf91e6f8c712c026d5a4bc53b563
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/reset/reset-imx-hdmimix.c:134:23: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] <asn:2> *base @@ got void * @@
drivers/reset/reset-imx-hdmimix.c:134:23: sparse: expected void [noderef] <asn:2> *base
drivers/reset/reset-imx-hdmimix.c:134:23: sparse: got void *
drivers/reset/reset-imx-hdmimix.c: note: in included file (through arch/xtensa/include/asm/io.h, include/linux/io.h):
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
--
>> drivers/reset/reset-imx-audiomix.c:93:23: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] <asn:2> *base @@ got void * @@
drivers/reset/reset-imx-audiomix.c:93:23: sparse: expected void [noderef] <asn:2> *base
drivers/reset/reset-imx-audiomix.c:93:23: sparse: got void *
drivers/reset/reset-imx-audiomix.c: note: in included file (through arch/xtensa/include/asm/io.h, include/linux/io.h):
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
vim +134 drivers/reset/reset-imx-hdmimix.c
d4b6fb2adc1967 Sandor Yu 2020-01-19 124
d4b6fb2adc1967 Sandor Yu 2020-01-19 125 static int imx_hdmimix_reset_probe(struct platform_device *pdev)
d4b6fb2adc1967 Sandor Yu 2020-01-19 126 {
d4b6fb2adc1967 Sandor Yu 2020-01-19 127 struct imx_hdmimix_reset_data *drvdata;
d4b6fb2adc1967 Sandor Yu 2020-01-19 128 struct device *dev = &pdev->dev;
d4b6fb2adc1967 Sandor Yu 2020-01-19 129
d4b6fb2adc1967 Sandor Yu 2020-01-19 130 drvdata = devm_kzalloc(&pdev->dev, sizeof(*drvdata), GFP_KERNEL);
d4b6fb2adc1967 Sandor Yu 2020-01-19 131 if (drvdata == NULL)
d4b6fb2adc1967 Sandor Yu 2020-01-19 132 return -ENOMEM;
d4b6fb2adc1967 Sandor Yu 2020-01-19 133
d4b6fb2adc1967 Sandor Yu 2020-01-19 @134 drvdata->base = dev_get_drvdata(dev->parent);
d4b6fb2adc1967 Sandor Yu 2020-01-19 135
d4b6fb2adc1967 Sandor Yu 2020-01-19 136 platform_set_drvdata(pdev, drvdata);
d4b6fb2adc1967 Sandor Yu 2020-01-19 137
d4b6fb2adc1967 Sandor Yu 2020-01-19 138 pm_runtime_enable(dev);
d4b6fb2adc1967 Sandor Yu 2020-01-19 139
d4b6fb2adc1967 Sandor Yu 2020-01-19 140 spin_lock_init(&drvdata->lock);
d4b6fb2adc1967 Sandor Yu 2020-01-19 141
d4b6fb2adc1967 Sandor Yu 2020-01-19 142 drvdata->rcdev.owner = THIS_MODULE;
d4b6fb2adc1967 Sandor Yu 2020-01-19 143 drvdata->rcdev.nr_resets = IMX_HDMIMIX_RESET_NUM;
d4b6fb2adc1967 Sandor Yu 2020-01-19 144 drvdata->rcdev.ops = &imx_hdmimix_reset_ops;
d4b6fb2adc1967 Sandor Yu 2020-01-19 145 drvdata->rcdev.of_node = dev->of_node;
d4b6fb2adc1967 Sandor Yu 2020-01-19 146 drvdata->rcdev.dev = dev;
d4b6fb2adc1967 Sandor Yu 2020-01-19 147
d4b6fb2adc1967 Sandor Yu 2020-01-19 148 return devm_reset_controller_register(dev, &drvdata->rcdev);
d4b6fb2adc1967 Sandor Yu 2020-01-19 149 }
d4b6fb2adc1967 Sandor Yu 2020-01-19 150
:::::: The code at line 134 was first introduced by commit
:::::: d4b6fb2adc19675a36d44b5ee0ebe4b5c93fef63 MLK-23250-06: reset: Add hdmimix reset driver
:::::: TO: Sandor Yu <Sandor.yu(a)nxp.com>
:::::: CC: Sandor Yu <Sandor.yu(a)nxp.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[freescale-fslc:pr/341 14383/18812] ld: drivers/pci/controller/dwc/pcie-designware.h:293: undefined reference to `dw_pcie_read_dbi'
by kernel test robot
tree: https://github.com/Freescale/linux-fslc pr/341
head: a9cd93bab1195c192188b78911e8e2bf47cfd6c2
commit: 61b7aecf354c8e55cffc466be937c184b8aaadb0 [14383/18812] MA-17597-5 pci: controller: dwc: support module build
config: x86_64-randconfig-a015-20210519 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/Freescale/linux-fslc/commit/61b7aecf354c8e55cffc466be9...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/341
git checkout 61b7aecf354c8e55cffc466be937c184b8aaadb0
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
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 >>):
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:293: undefined reference to `dw_pcie_read_dbi'
>> ld: drivers/pci/controller/dwc/pcie-designware.h:293: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:288: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readw_dbi':
drivers/pci/controller/dwc/pcie-designware.h:303: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writew_dbi':
drivers/pci/controller/dwc/pcie-designware.h:298: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:293: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:288: undefined reference to `dw_pcie_write_dbi'
>> ld: drivers/pci/controller/dwc/pcie-designware.h:288: undefined reference to `dw_pcie_write_dbi'
>> ld: drivers/pci/controller/dwc/pcie-designware.h:288: undefined reference to `dw_pcie_write_dbi'
>> ld: drivers/pci/controller/dwc/pcie-designware.h:288: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:293: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:288: undefined reference to `dw_pcie_write_dbi'
>> ld: drivers/pci/controller/dwc/pcie-designware.h:288: undefined reference to `dw_pcie_write_dbi'
>> ld: drivers/pci/controller/dwc/pcie-designware.h:288: undefined reference to `dw_pcie_write_dbi'
>> ld: drivers/pci/controller/dwc/pcie-designware.h:288: undefined reference to `dw_pcie_write_dbi'
>> ld: drivers/pci/controller/dwc/pcie-designware.h:288: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o:drivers/pci/controller/dwc/pcie-designware.h:288: more undefined references to `dw_pcie_write_dbi' follow
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `imx6_pcie_start_link':
drivers/pci/controller/dwc/pci-imx6.c:1961: undefined reference to `dw_pcie_link_up'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:293: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:288: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `imx6_pcie_establish_link':
drivers/pci/controller/dwc/pci-imx6.c:1816: undefined reference to `dw_pcie_wait_for_link'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:293: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:288: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:293: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:288: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:293: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:288: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:293: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:288: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:293: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `imx6_pcie_establish_link':
drivers/pci/controller/dwc/pci-imx6.c:1864: undefined reference to `dw_pcie_wait_for_link'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:293: undefined reference to `dw_pcie_read_dbi'
>> ld: drivers/pci/controller/dwc/pcie-designware.h:293: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:288: undefined reference to `dw_pcie_write_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_readl_dbi':
drivers/pci/controller/dwc/pcie-designware.h:293: undefined reference to `dw_pcie_read_dbi'
ld: drivers/pci/controller/dwc/pci-imx6.o: in function `dw_pcie_writel_dbi':
drivers/pci/controller/dwc/pcie-designware.h:288: undefined reference to `dw_pcie_write_dbi'
>> ld: drivers/pci/controller/dwc/pcie-designware.h:288: undefined reference to `dw_pcie_write_dbi'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[freescale-fslc:5.4-2.3.x-imx 11674/18813] drivers/irqchip/irq-imx-intmux.c:169:14: error: 'struct intmux_data' has no member named 'saved_reg'
by kernel test robot
Hi Joakim,
FYI, the error/warning still remains.
tree: https://github.com/Freescale/linux-fslc 5.4-2.3.x-imx
head: ef2339380856bee33c1ae25535ff0d72c92d02ad
commit: 89f28f28d76a0bc4a4d825818e2f50fbd4368235 [11674/18813] MLK-24382-1 irqchip: imx-intmux: add system PM support
config: arm-randconfig-r033-20210519 (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/Freescale/linux-fslc/commit/89f28f28d76a0bc4a4d825818e...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc 5.4-2.3.x-imx
git checkout 89f28f28d76a0bc4a4d825818e2f50fbd4368235
# 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 >>):
drivers/irqchip/irq-imx-intmux.c: In function 'imx_intmux_probe':
>> drivers/irqchip/irq-imx-intmux.c:169:14: error: 'struct intmux_data' has no member named 'saved_reg'
169 | intmux_data->saved_reg = devm_kzalloc(&pdev->dev,
| ^~
drivers/irqchip/irq-imx-intmux.c:172:19: error: 'struct intmux_data' has no member named 'saved_reg'
172 | if (!intmux_data->saved_reg)
| ^~
vim +169 drivers/irqchip/irq-imx-intmux.c
128
129 static int imx_intmux_probe(struct platform_device *pdev)
130 {
131 struct device_node *np = pdev->dev.of_node;
132 struct intmux_data *intmux_data;
133 struct resource *res;
134 int i;
135 int channum;
136 int ret;
137
138 ret = of_property_read_u32(np, "nxp,intmux_chans", &channum);
139 if (ret)
140 channum = 1;
141
142 intmux_data = devm_kzalloc(&pdev->dev, sizeof(*intmux_data) +
143 channum *
144 sizeof(intmux_data->irqchip_data[0]),
145 GFP_KERNEL);
146 if (!intmux_data)
147 return -ENOMEM;
148
149 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
150 intmux_data->regs = devm_ioremap_resource(&pdev->dev, res);
151 if (IS_ERR(intmux_data->regs)) {
152 dev_err(&pdev->dev, "failed to initialize reg\n");
153 return PTR_ERR(intmux_data->regs);
154 }
155
156 intmux_data->ipg_clk = devm_clk_get(&pdev->dev, "ipg");
157 if (IS_ERR(intmux_data->ipg_clk)) {
158 ret = PTR_ERR(intmux_data->ipg_clk);
159 dev_err(&pdev->dev, "failed to get ipg clk: %d\n", ret);
160 return ret;
161 }
162
163 intmux_data->channum = channum;
164 intmux_data->pdev = pdev;
165 spin_lock_init(&intmux_data->lock);
166
167 if (IS_ENABLED(CONFIG_PM)) {
168 /* save CHANIER register */
> 169 intmux_data->saved_reg = devm_kzalloc(&pdev->dev,
170 sizeof(u32) * channum,
171 GFP_KERNEL);
172 if (!intmux_data->saved_reg)
173 return -ENOMEM;
174 }
175
176 ret = clk_prepare_enable(intmux_data->ipg_clk);
177 if (ret) {
178 dev_err(&pdev->dev, "failed to enable ipg clk: %d\n", ret);
179 return ret;
180 }
181
182 for (i = 0; i < channum; i++) {
183 intmux_data->irqchip_data[i].chanidx = i;
184 intmux_data->irqchip_data[i].irq = platform_get_irq(pdev, i);
185 if (intmux_data->irqchip_data[i].irq <= 0) {
186 dev_err(&pdev->dev, "failed to get irq\n");
187 return -ENODEV;
188 }
189
190 intmux_data->irqchip_data[i].domain = irq_domain_add_linear(np,
191 32,
192 &imx_intmux_domain_ops,
193 &intmux_data->irqchip_data[i]);
194 if (!intmux_data->irqchip_data[i].domain) {
195 dev_err(&intmux_data->pdev->dev,
196 "failed to create IRQ domain\n");
197 return -ENOMEM;
198 }
199
200 irq_set_chained_handler_and_data(intmux_data->irqchip_data[i].irq,
201 imx_intmux_irq_handler,
202 &intmux_data->irqchip_data[i]);
203 }
204
205 platform_set_drvdata(pdev, intmux_data);
206
207 return 0;
208 }
209
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months