mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/atm/fore200e.c:447:12: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2020-06-11  6:12 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-06-11  6:12 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: kbuild-all, linux-kernel, Tony Luck

[-- Attachment #1: Type: text/plain, Size: 4487 bytes --]

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 30197 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-11  6:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-11  6:12 drivers/atm/fore200e.c:447:12: sparse: sparse: incorrect type in argument 1 (different base types) kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®