[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202007140549.J7X9BVPT%lkp@intel.com>
Date: Tue, 14 Jul 2020 05:10:15 +0800
From: kernel test robot <lkp@...el.com>
To: John Garry <john.garry@...wei.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Wei Xu <xuwei5@...ilicon.com>, Arnd Bergmann <arnd@...db.de>
Subject: drivers/atm/ambassador.c:329:19: sparse: sparse: incorrect type in
initializer (different base types)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 11ba468877bb23f28956a35e896356252d63c983
commit: f009c89df79abea5f5244b8135a205f7d4352f86 io: Provide _inX() and _outX()
date: 10 weeks ago
config: microblaze-randconfig-s031-20200713 (attached as .config)
compiler: microblaze-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.2-37-gc9676a3b-dirty
git checkout f009c89df79abea5f5244b8135a205f7d4352f86
# 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__' ARCH=microblaze
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
drivers/atm/ambassador.c:1747:58: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected void *address @@ got struct loader_block volatile [usertype] *lb @@
drivers/atm/ambassador.c:1747:58: sparse: expected void *address
drivers/atm/ambassador.c:1747:58: sparse: got struct loader_block volatile [usertype] *lb
drivers/atm/ambassador.c:321:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __be32 [usertype] be @@
drivers/atm/ambassador.c:321:9: sparse: expected unsigned int [usertype] value
drivers/atm/ambassador.c:321:9: sparse: got restricted __be32 [usertype] be
include/asm-generic/io.h:521: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:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
drivers/atm/ambassador.c:321:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __be32 [usertype] be @@
drivers/atm/ambassador.c:321:9: sparse: expected unsigned int [usertype] value
drivers/atm/ambassador.c:321:9: sparse: got restricted __be32 [usertype] be
include/asm-generic/io.h:521: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:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
drivers/atm/ambassador.c:321:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __be32 [usertype] be @@
drivers/atm/ambassador.c:321:9: sparse: expected unsigned int [usertype] value
drivers/atm/ambassador.c:321:9: sparse: got restricted __be32 [usertype] be
include/asm-generic/io.h:521: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:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
drivers/atm/ambassador.c:321:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __be32 [usertype] be @@
drivers/atm/ambassador.c:321:9: sparse: expected unsigned int [usertype] value
drivers/atm/ambassador.c:321:9: sparse: got restricted __be32 [usertype] be
include/asm-generic/io.h:521: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:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:490:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:521: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:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:490:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:521: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:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:490:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:521: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:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
drivers/atm/ambassador.c:321:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __be32 [usertype] be @@
drivers/atm/ambassador.c:321:9: sparse: expected unsigned int [usertype] value
drivers/atm/ambassador.c:321:9: sparse: got restricted __be32 [usertype] be
include/asm-generic/io.h:521: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:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:490:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:490:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:521: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:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:521: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:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:521: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:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:521: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:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:521: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:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:490:15: sparse: sparse: cast to restricted __le32
>> drivers/atm/ambassador.c:329:19: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __be32 [usertype] be @@ got unsigned short @@
drivers/atm/ambassador.c:329:19: sparse: expected restricted __be32 [usertype] be
>> drivers/atm/ambassador.c:329:19: sparse: got unsigned short
include/asm-generic/io.h:490:15: sparse: sparse: cast to restricted __le32
drivers/atm/ambassador.c:321:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __be32 [usertype] be @@
drivers/atm/ambassador.c:321:9: sparse: expected unsigned int [usertype] value
drivers/atm/ambassador.c:321:9: sparse: got restricted __be32 [usertype] be
include/asm-generic/io.h:521: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:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:490:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:490:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:521: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:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
vim +329 drivers/atm/ambassador.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 324
^1da177e4c3f41 Linus Torvalds 2005-04-16 325 static inline u32 rd_mem (const amb_dev * dev, size_t addr) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 326 #ifdef AMB_MMIO
^1da177e4c3f41 Linus Torvalds 2005-04-16 327 __be32 be = dev->membase[addr / sizeof(u32)];
^1da177e4c3f41 Linus Torvalds 2005-04-16 328 #else
^1da177e4c3f41 Linus Torvalds 2005-04-16 @329 __be32 be = inl (dev->iobase + addr);
^1da177e4c3f41 Linus Torvalds 2005-04-16 330 #endif
^1da177e4c3f41 Linus Torvalds 2005-04-16 331 u32 data = be32_to_cpu (be);
^1da177e4c3f41 Linus Torvalds 2005-04-16 332 PRINTD (DBG_FLOW|DBG_REGS, "rd: %08zx -> %08x b[%08x]", addr, data, be);
^1da177e4c3f41 Linus Torvalds 2005-04-16 333 return data;
^1da177e4c3f41 Linus Torvalds 2005-04-16 334 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 335
:::::: The code at line 329 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@...970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@...970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (31258 bytes)
Powered by blists - more mailing lists