From: kernel test robot <lkp@intel.com>
To: John Garry <john.garry@huawei.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Wei Xu <xuwei5@hisilicon.com>, Arnd Bergmann <arnd@arndb.de>
Subject: drivers/atm/ambassador.c:329:19: sparse: sparse: incorrect type in initializer (different base types)
Date: Tue, 14 Jul 2020 05:10:15 +0800 [thread overview]
Message-ID: <202007140549.J7X9BVPT%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 11237 bytes --]
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@intel.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@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: 31258 bytes --]
reply other threads:[~2020-07-13 21:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202007140549.J7X9BVPT%lkp@intel.com \
--to=lkp@intel.com \
--cc=arnd@arndb.de \
--cc=john.garry@huawei.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=xuwei5@hisilicon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).