All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 6478/14131] drivers/atm/ambassador.c:329:19: sparse: sparse: incorrect type in initializer (different base types)
@ 2020-06-01 16:40 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-06-01 16:40 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   e7b08814b16b80a0bf76eeca16317f8c2ed23b8c
commit: f009c89df79abea5f5244b8135a205f7d4352f86 [6478/14131] io: Provide _inX() and _outX()
config: microblaze-randconfig-s032-20200601 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-243-gc100a7ab-dirty
        git checkout f009c89df79abea5f5244b8135a205f7d4352f86
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=microblaze CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)

   include/linux/byteorder/big_endian.h:8:2: sparse: sparse: inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN
   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: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: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: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: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: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: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: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: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: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]
>> 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
   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: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: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
   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: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: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
   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: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: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: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: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: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
   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: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: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
   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: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: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
   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: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: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: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: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: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
   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: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: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: too many warnings

vim +329 drivers/atm/ambassador.c

^1da177e4c3f415 Linus Torvalds 2005-04-16  324  
^1da177e4c3f415 Linus Torvalds 2005-04-16  325  static inline u32 rd_mem (const amb_dev * dev, size_t addr) {
^1da177e4c3f415 Linus Torvalds 2005-04-16  326  #ifdef AMB_MMIO
^1da177e4c3f415 Linus Torvalds 2005-04-16  327    __be32 be = dev->membase[addr / sizeof(u32)];
^1da177e4c3f415 Linus Torvalds 2005-04-16  328  #else
^1da177e4c3f415 Linus Torvalds 2005-04-16 @329    __be32 be = inl (dev->iobase + addr);
^1da177e4c3f415 Linus Torvalds 2005-04-16  330  #endif
^1da177e4c3f415 Linus Torvalds 2005-04-16  331    u32 data = be32_to_cpu (be);
^1da177e4c3f415 Linus Torvalds 2005-04-16  332    PRINTD (DBG_FLOW|DBG_REGS, "rd: %08zx -> %08x b[%08x]", addr, data, be);
^1da177e4c3f415 Linus Torvalds 2005-04-16  333    return data;
^1da177e4c3f415 Linus Torvalds 2005-04-16  334  }
^1da177e4c3f415 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(a)lists.01.org

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

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

only message in thread, other threads:[~2020-06-01 16:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-01 16:40 [linux-next:master 6478/14131] drivers/atm/ambassador.c:329:19: sparse: sparse: incorrect type in initializer (different base types) kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.