Messages in this thread | | | Date | Thu, 11 Jun 2020 14:12:48 +0800 | From | kernel test robot <> | Subject | drivers/atm/fore200e.c:447:12: sparse: sparse: incorrect type in argument 1 (different base types) |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b29482fde649c72441d5478a4ea2c52c56d97a5e commit: 05933aac7b11911955de307a329dc2a7a14b7bd0 ia64: remove now unused machvec indirections date: 10 months ago config: ia64-randconfig-s032-20200611 (attached as .config) compiler: ia64-linux-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-250-g42323db3-dirty git checkout 05933aac7b11911955de307a329dc2a7a14b7bd0 # save the attached .config to linux build tree make W=1 C=1 ARCH=ia64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
./arch/ia64/include/generated/uapi/asm/unistd_64.h:348:39: sparse: sparse: no newline at end of file drivers/atm/fore200e.c:439:12: sparse: sparse: cast to restricted __le32 >> drivers/atm/fore200e.c:447:12: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@ >> drivers/atm/fore200e.c:447:12: sparse: expected unsigned int [usertype] value drivers/atm/fore200e.c:447:12: sparse: got restricted __le32 [usertype] 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: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: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: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 +447 drivers/atm/fore200e.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 434 ^1da177e4c3f41 Linus Torvalds 2005-04-16 435 static u32 fore200e_pca_read(volatile u32 __iomem *addr) ^1da177e4c3f41 Linus Torvalds 2005-04-16 436 { ^1da177e4c3f41 Linus Torvalds 2005-04-16 437 /* on big-endian hosts, the board is configured to convert ^1da177e4c3f41 Linus Torvalds 2005-04-16 438 the endianess of slave RAM accesses */ ^1da177e4c3f41 Linus Torvalds 2005-04-16 @439 return le32_to_cpu(readl(addr)); ^1da177e4c3f41 Linus Torvalds 2005-04-16 440 } ^1da177e4c3f41 Linus Torvalds 2005-04-16 441 ^1da177e4c3f41 Linus Torvalds 2005-04-16 442 ^1da177e4c3f41 Linus Torvalds 2005-04-16 443 static void fore200e_pca_write(u32 val, volatile u32 __iomem *addr) ^1da177e4c3f41 Linus Torvalds 2005-04-16 444 { ^1da177e4c3f41 Linus Torvalds 2005-04-16 445 /* on big-endian hosts, the board is configured to convert ^1da177e4c3f41 Linus Torvalds 2005-04-16 446 the endianess of slave RAM accesses */ ^1da177e4c3f41 Linus Torvalds 2005-04-16 @447 writel(cpu_to_le32(val), addr); ^1da177e4c3f41 Linus Torvalds 2005-04-16 448 } ^1da177e4c3f41 Linus Torvalds 2005-04-16 449
:::::: The code at line 447 was first introduced by commit :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org> :::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [unhandled content-type:application/gzip] | |