All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2020-12-06 12:20 ` kernel test robot
  0 siblings, 0 replies; 10+ messages in thread
From: kernel test robot @ 2020-12-06 12:20 UTC (permalink / raw)
  To: Stafford Horne; +Cc: kbuild-all, linux-kernel

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7059c2c00a2196865c2139083cbef47cd18109b6
commit: c1d55d50139bea6bfe964458272a93dd899efb83 asm-generic/io.h: Fix sparse warnings on big-endian architectures
date:   4 months ago
config: microblaze-randconfig-s031-20201206 (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.3-179-ga00755aa-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c1d55d50139bea6bfe964458272a93dd899efb83
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout c1d55d50139bea6bfe964458272a93dd899efb83
        # 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/horizon.c:1135:22: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *[usertype] tx_addr @@     got void [noderef] __user *iov_base @@
   drivers/atm/horizon.c:1135:22: sparse:     expected void *[usertype] tx_addr
   drivers/atm/horizon.c:1135:22: sparse:     got void [noderef] __user *iov_base
   drivers/atm/horizon.c:1173:49: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected unsigned int [usertype] data @@     got restricted __be32 [usertype] @@
   drivers/atm/horizon.c:1173:49: sparse:     expected unsigned int [usertype] data
   drivers/atm/horizon.c:1173:49: sparse:     got restricted __be32 [usertype]
   drivers/atm/horizon.c:1177:48: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected unsigned int [usertype] data @@     got restricted __be32 [usertype] @@
   drivers/atm/horizon.c:1177:48: sparse:     expected unsigned int [usertype] data
   drivers/atm/horizon.c:1177:48: sparse:     got restricted __be32 [usertype]
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: too many warnings

vim +365 drivers/atm/horizon.c

^1da177e4c3f41 Linus Torvalds 2005-04-16  354  
^1da177e4c3f41 Linus Torvalds 2005-04-16  355  /* Read / Write Horizon registers */
^1da177e4c3f41 Linus Torvalds 2005-04-16  356  static inline void wr_regl (const hrz_dev * dev, unsigned char reg, u32 data) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 @357    outl (cpu_to_le32 (data), dev->iobase + reg);
^1da177e4c3f41 Linus Torvalds 2005-04-16  358  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  359  
^1da177e4c3f41 Linus Torvalds 2005-04-16  360  static inline u32 rd_regl (const hrz_dev * dev, unsigned char reg) {
^1da177e4c3f41 Linus Torvalds 2005-04-16  361    return le32_to_cpu (inl (dev->iobase + reg));
^1da177e4c3f41 Linus Torvalds 2005-04-16  362  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  363  
^1da177e4c3f41 Linus Torvalds 2005-04-16  364  static inline void wr_regw (const hrz_dev * dev, unsigned char reg, u16 data) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 @365    outw (cpu_to_le16 (data), dev->iobase + reg);
^1da177e4c3f41 Linus Torvalds 2005-04-16  366  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  367  

:::::: The code at line 365 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: 32543 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2020-12-06 12:20 ` kernel test robot
  0 siblings, 0 replies; 10+ messages in thread
From: kernel test robot @ 2020-12-06 12:20 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7059c2c00a2196865c2139083cbef47cd18109b6
commit: c1d55d50139bea6bfe964458272a93dd899efb83 asm-generic/io.h: Fix sparse warnings on big-endian architectures
date:   4 months ago
config: microblaze-randconfig-s031-20201206 (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.3-179-ga00755aa-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c1d55d50139bea6bfe964458272a93dd899efb83
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout c1d55d50139bea6bfe964458272a93dd899efb83
        # 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/horizon.c:1135:22: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *[usertype] tx_addr @@     got void [noderef] __user *iov_base @@
   drivers/atm/horizon.c:1135:22: sparse:     expected void *[usertype] tx_addr
   drivers/atm/horizon.c:1135:22: sparse:     got void [noderef] __user *iov_base
   drivers/atm/horizon.c:1173:49: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected unsigned int [usertype] data @@     got restricted __be32 [usertype] @@
   drivers/atm/horizon.c:1173:49: sparse:     expected unsigned int [usertype] data
   drivers/atm/horizon.c:1173:49: sparse:     got restricted __be32 [usertype]
   drivers/atm/horizon.c:1177:48: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected unsigned int [usertype] data @@     got restricted __be32 [usertype] @@
   drivers/atm/horizon.c:1177:48: sparse:     expected unsigned int [usertype] data
   drivers/atm/horizon.c:1177:48: sparse:     got restricted __be32 [usertype]
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: too many warnings

vim +365 drivers/atm/horizon.c

^1da177e4c3f41 Linus Torvalds 2005-04-16  354  
^1da177e4c3f41 Linus Torvalds 2005-04-16  355  /* Read / Write Horizon registers */
^1da177e4c3f41 Linus Torvalds 2005-04-16  356  static inline void wr_regl (const hrz_dev * dev, unsigned char reg, u32 data) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 @357    outl (cpu_to_le32 (data), dev->iobase + reg);
^1da177e4c3f41 Linus Torvalds 2005-04-16  358  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  359  
^1da177e4c3f41 Linus Torvalds 2005-04-16  360  static inline u32 rd_regl (const hrz_dev * dev, unsigned char reg) {
^1da177e4c3f41 Linus Torvalds 2005-04-16  361    return le32_to_cpu (inl (dev->iobase + reg));
^1da177e4c3f41 Linus Torvalds 2005-04-16  362  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  363  
^1da177e4c3f41 Linus Torvalds 2005-04-16  364  static inline void wr_regw (const hrz_dev * dev, unsigned char reg, u16 data) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 @365    outw (cpu_to_le16 (data), dev->iobase + reg);
^1da177e4c3f41 Linus Torvalds 2005-04-16  366  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  367  

:::::: The code at line 365 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: 32543 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2021-02-18  5:48 ` kernel test robot
  0 siblings, 0 replies; 10+ messages in thread
From: kernel test robot @ 2021-02-18  5:48 UTC (permalink / raw)
  To: Stafford Horne; +Cc: kbuild-all, linux-kernel

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f40ddce88593482919761f74910f42f4b84c004b
commit: c1d55d50139bea6bfe964458272a93dd899efb83 asm-generic/io.h: Fix sparse warnings on big-endian architectures
date:   7 months ago
config: microblaze-randconfig-s032-20210218 (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.3-215-g0fb77bb6-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c1d55d50139bea6bfe964458272a93dd899efb83
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout c1d55d50139bea6bfe964458272a93dd899efb83
        # 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/horizon.c:1135:22: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *[usertype] tx_addr @@     got void [noderef] __user *iov_base @@
   drivers/atm/horizon.c:1135:22: sparse:     expected void *[usertype] tx_addr
   drivers/atm/horizon.c:1135:22: sparse:     got void [noderef] __user *iov_base
   drivers/atm/horizon.c:1173:49: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected unsigned int [usertype] data @@     got restricted __be32 [usertype] @@
   drivers/atm/horizon.c:1173:49: sparse:     expected unsigned int [usertype] data
   drivers/atm/horizon.c:1173:49: sparse:     got restricted __be32 [usertype]
   drivers/atm/horizon.c:1177:48: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected unsigned int [usertype] data @@     got restricted __be32 [usertype] @@
   drivers/atm/horizon.c:1177:48: sparse:     expected unsigned int [usertype] data
   drivers/atm/horizon.c:1177:48: sparse:     got restricted __be32 [usertype]
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: too many warnings

vim +365 drivers/atm/horizon.c

^1da177e4c3f41 Linus Torvalds 2005-04-16  354  
^1da177e4c3f41 Linus Torvalds 2005-04-16  355  /* Read / Write Horizon registers */
^1da177e4c3f41 Linus Torvalds 2005-04-16  356  static inline void wr_regl (const hrz_dev * dev, unsigned char reg, u32 data) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 @357    outl (cpu_to_le32 (data), dev->iobase + reg);
^1da177e4c3f41 Linus Torvalds 2005-04-16  358  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  359  
^1da177e4c3f41 Linus Torvalds 2005-04-16  360  static inline u32 rd_regl (const hrz_dev * dev, unsigned char reg) {
^1da177e4c3f41 Linus Torvalds 2005-04-16  361    return le32_to_cpu (inl (dev->iobase + reg));
^1da177e4c3f41 Linus Torvalds 2005-04-16  362  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  363  
^1da177e4c3f41 Linus Torvalds 2005-04-16  364  static inline void wr_regw (const hrz_dev * dev, unsigned char reg, u16 data) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 @365    outw (cpu_to_le16 (data), dev->iobase + reg);
^1da177e4c3f41 Linus Torvalds 2005-04-16  366  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  367  

:::::: The code at line 365 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: 39902 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2021-02-18  5:48 ` kernel test robot
  0 siblings, 0 replies; 10+ messages in thread
From: kernel test robot @ 2021-02-18  5:48 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f40ddce88593482919761f74910f42f4b84c004b
commit: c1d55d50139bea6bfe964458272a93dd899efb83 asm-generic/io.h: Fix sparse warnings on big-endian architectures
date:   7 months ago
config: microblaze-randconfig-s032-20210218 (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.3-215-g0fb77bb6-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c1d55d50139bea6bfe964458272a93dd899efb83
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout c1d55d50139bea6bfe964458272a93dd899efb83
        # 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/horizon.c:1135:22: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *[usertype] tx_addr @@     got void [noderef] __user *iov_base @@
   drivers/atm/horizon.c:1135:22: sparse:     expected void *[usertype] tx_addr
   drivers/atm/horizon.c:1135:22: sparse:     got void [noderef] __user *iov_base
   drivers/atm/horizon.c:1173:49: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected unsigned int [usertype] data @@     got restricted __be32 [usertype] @@
   drivers/atm/horizon.c:1173:49: sparse:     expected unsigned int [usertype] data
   drivers/atm/horizon.c:1173:49: sparse:     got restricted __be32 [usertype]
   drivers/atm/horizon.c:1177:48: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected unsigned int [usertype] data @@     got restricted __be32 [usertype] @@
   drivers/atm/horizon.c:1177:48: sparse:     expected unsigned int [usertype] data
   drivers/atm/horizon.c:1177:48: sparse:     got restricted __be32 [usertype]
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: too many warnings

vim +365 drivers/atm/horizon.c

^1da177e4c3f41 Linus Torvalds 2005-04-16  354  
^1da177e4c3f41 Linus Torvalds 2005-04-16  355  /* Read / Write Horizon registers */
^1da177e4c3f41 Linus Torvalds 2005-04-16  356  static inline void wr_regl (const hrz_dev * dev, unsigned char reg, u32 data) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 @357    outl (cpu_to_le32 (data), dev->iobase + reg);
^1da177e4c3f41 Linus Torvalds 2005-04-16  358  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  359  
^1da177e4c3f41 Linus Torvalds 2005-04-16  360  static inline u32 rd_regl (const hrz_dev * dev, unsigned char reg) {
^1da177e4c3f41 Linus Torvalds 2005-04-16  361    return le32_to_cpu (inl (dev->iobase + reg));
^1da177e4c3f41 Linus Torvalds 2005-04-16  362  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  363  
^1da177e4c3f41 Linus Torvalds 2005-04-16  364  static inline void wr_regw (const hrz_dev * dev, unsigned char reg, u16 data) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 @365    outw (cpu_to_le16 (data), dev->iobase + reg);
^1da177e4c3f41 Linus Torvalds 2005-04-16  366  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  367  

:::::: The code at line 365 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: 39902 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2020-10-15 18:34 ` kernel test robot
  0 siblings, 0 replies; 10+ messages in thread
From: kernel test robot @ 2020-10-15 18:34 UTC (permalink / raw)
  To: Stafford Horne; +Cc: kbuild-all, linux-kernel

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   3e4fb4346c781068610d03c12b16c0cfb0fd24a3
commit: c1d55d50139bea6bfe964458272a93dd899efb83 asm-generic/io.h: Fix sparse warnings on big-endian architectures
date:   2 months ago
config: xtensa-randconfig-s031-20201015 (attached as .config)
compiler: xtensa-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.3-rc1-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c1d55d50139bea6bfe964458272a93dd899efb83
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout c1d55d50139bea6bfe964458272a93dd899efb83
        # 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=xtensa 

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/horizon.c:1135:22: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *[usertype] tx_addr @@     got void [noderef] __user *iov_base @@
   drivers/atm/horizon.c:1135:22: sparse:     expected void *[usertype] tx_addr
   drivers/atm/horizon.c:1135:22: sparse:     got void [noderef] __user *iov_base
   drivers/atm/horizon.c:1173:49: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected unsigned int [usertype] data @@     got restricted __be32 [usertype] @@
   drivers/atm/horizon.c:1173:49: sparse:     expected unsigned int [usertype] data
   drivers/atm/horizon.c:1173:49: sparse:     got restricted __be32 [usertype]
   drivers/atm/horizon.c:1177:48: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected unsigned int [usertype] data @@     got restricted __be32 [usertype] @@
   drivers/atm/horizon.c:1177:48: sparse:     expected unsigned int [usertype] data
   drivers/atm/horizon.c:1177:48: sparse:     got restricted __be32 [usertype]
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: too many warnings

vim +365 drivers/atm/horizon.c

^1da177e4c3f415 Linus Torvalds 2005-04-16  363  
^1da177e4c3f415 Linus Torvalds 2005-04-16  364  static inline void wr_regw (const hrz_dev * dev, unsigned char reg, u16 data) {
^1da177e4c3f415 Linus Torvalds 2005-04-16 @365    outw (cpu_to_le16 (data), dev->iobase + reg);
^1da177e4c3f415 Linus Torvalds 2005-04-16  366  }
^1da177e4c3f415 Linus Torvalds 2005-04-16  367  

:::::: The code at line 365 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: 30180 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2020-10-15 18:34 ` kernel test robot
  0 siblings, 0 replies; 10+ messages in thread
From: kernel test robot @ 2020-10-15 18:34 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   3e4fb4346c781068610d03c12b16c0cfb0fd24a3
commit: c1d55d50139bea6bfe964458272a93dd899efb83 asm-generic/io.h: Fix sparse warnings on big-endian architectures
date:   2 months ago
config: xtensa-randconfig-s031-20201015 (attached as .config)
compiler: xtensa-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.3-rc1-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c1d55d50139bea6bfe964458272a93dd899efb83
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout c1d55d50139bea6bfe964458272a93dd899efb83
        # 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=xtensa 

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/horizon.c:1135:22: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *[usertype] tx_addr @@     got void [noderef] __user *iov_base @@
   drivers/atm/horizon.c:1135:22: sparse:     expected void *[usertype] tx_addr
   drivers/atm/horizon.c:1135:22: sparse:     got void [noderef] __user *iov_base
   drivers/atm/horizon.c:1173:49: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected unsigned int [usertype] data @@     got restricted __be32 [usertype] @@
   drivers/atm/horizon.c:1173:49: sparse:     expected unsigned int [usertype] data
   drivers/atm/horizon.c:1173:49: sparse:     got restricted __be32 [usertype]
   drivers/atm/horizon.c:1177:48: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected unsigned int [usertype] data @@     got restricted __be32 [usertype] @@
   drivers/atm/horizon.c:1177:48: sparse:     expected unsigned int [usertype] data
   drivers/atm/horizon.c:1177:48: sparse:     got restricted __be32 [usertype]
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: too many warnings

vim +365 drivers/atm/horizon.c

^1da177e4c3f415 Linus Torvalds 2005-04-16  363  
^1da177e4c3f415 Linus Torvalds 2005-04-16  364  static inline void wr_regw (const hrz_dev * dev, unsigned char reg, u16 data) {
^1da177e4c3f415 Linus Torvalds 2005-04-16 @365    outw (cpu_to_le16 (data), dev->iobase + reg);
^1da177e4c3f415 Linus Torvalds 2005-04-16  366  }
^1da177e4c3f415 Linus Torvalds 2005-04-16  367  

:::::: The code at line 365 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: 30180 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2020-09-04  9:52 ` kernel test robot
  0 siblings, 0 replies; 10+ messages in thread
From: kernel test robot @ 2020-09-04  9:52 UTC (permalink / raw)
  To: Luc Van Oostenryck; +Cc: kbuild-all, linux-kernel, Masahiro Yamada

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   59126901f200f5fc907153468b03c64e0081b6e6
commit: 80591e61a0f7e88deaada69844e4a31280c4a38f kbuild: tell sparse about the $ARCH
date:   10 months ago
config: microblaze-randconfig-s031-20200904 (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-191-g10164920-dirty
        git checkout 80591e61a0f7e88deaada69844e4a31280c4a38f
        # 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/horizon.c: note: in included file (through arch/microblaze/include/uapi/asm/unistd.h, arch/microblaze/include/asm/unistd.h, include/uapi/linux/unistd.h, ...):
   ./arch/microblaze/include/generated/uapi/asm/unistd_32.h:438:45: sparse: sparse: no newline at end of file
   drivers/atm/horizon.c:1135:22: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *[usertype] tx_addr @@     got void [noderef] <asn:1> *iov_base @@
   drivers/atm/horizon.c:1135:22: sparse:     expected void *[usertype] tx_addr
   drivers/atm/horizon.c:1135:22: sparse:     got void [noderef] <asn:1> *iov_base
   drivers/atm/horizon.c:1173:49: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected unsigned int [usertype] data @@     got restricted __be32 [usertype] @@
   drivers/atm/horizon.c:1173:49: sparse:     expected unsigned int [usertype] data
   drivers/atm/horizon.c:1173:49: sparse:     got restricted __be32 [usertype]
   drivers/atm/horizon.c:1177:48: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected unsigned int [usertype] data @@     got restricted __be32 [usertype] @@
   drivers/atm/horizon.c:1177:48: sparse:     expected unsigned int [usertype] data
   drivers/atm/horizon.c:1177:48: sparse:     got restricted __be32 [usertype]
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c: note: in included file (through arch/microblaze/include/asm/io.h, include/linux/io.h, include/linux/irq.h, ...):
   include/asm-generic/io.h:479:15: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   include/asm-generic/io.h:479:15: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: too many warnings

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=80591e61a0f7e88deaada69844e4a31280c4a38f
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 80591e61a0f7e88deaada69844e4a31280c4a38f
vim +365 drivers/atm/horizon.c

^1da177e4c3f41 Linus Torvalds 2005-04-16  354  
^1da177e4c3f41 Linus Torvalds 2005-04-16  355  /* Read / Write Horizon registers */
^1da177e4c3f41 Linus Torvalds 2005-04-16  356  static inline void wr_regl (const hrz_dev * dev, unsigned char reg, u32 data) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 @357    outl (cpu_to_le32 (data), dev->iobase + reg);
^1da177e4c3f41 Linus Torvalds 2005-04-16  358  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  359  
^1da177e4c3f41 Linus Torvalds 2005-04-16  360  static inline u32 rd_regl (const hrz_dev * dev, unsigned char reg) {
^1da177e4c3f41 Linus Torvalds 2005-04-16  361    return le32_to_cpu (inl (dev->iobase + reg));
^1da177e4c3f41 Linus Torvalds 2005-04-16  362  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  363  
^1da177e4c3f41 Linus Torvalds 2005-04-16  364  static inline void wr_regw (const hrz_dev * dev, unsigned char reg, u16 data) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 @365    outw (cpu_to_le16 (data), dev->iobase + reg);
^1da177e4c3f41 Linus Torvalds 2005-04-16  366  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  367  

:::::: The code at line 365 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: 30670 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2020-09-04  9:52 ` kernel test robot
  0 siblings, 0 replies; 10+ messages in thread
From: kernel test robot @ 2020-09-04  9:52 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   59126901f200f5fc907153468b03c64e0081b6e6
commit: 80591e61a0f7e88deaada69844e4a31280c4a38f kbuild: tell sparse about the $ARCH
date:   10 months ago
config: microblaze-randconfig-s031-20200904 (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-191-g10164920-dirty
        git checkout 80591e61a0f7e88deaada69844e4a31280c4a38f
        # 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/horizon.c: note: in included file (through arch/microblaze/include/uapi/asm/unistd.h, arch/microblaze/include/asm/unistd.h, include/uapi/linux/unistd.h, ...):
   ./arch/microblaze/include/generated/uapi/asm/unistd_32.h:438:45: sparse: sparse: no newline at end of file
   drivers/atm/horizon.c:1135:22: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *[usertype] tx_addr @@     got void [noderef] <asn:1> *iov_base @@
   drivers/atm/horizon.c:1135:22: sparse:     expected void *[usertype] tx_addr
   drivers/atm/horizon.c:1135:22: sparse:     got void [noderef] <asn:1> *iov_base
   drivers/atm/horizon.c:1173:49: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected unsigned int [usertype] data @@     got restricted __be32 [usertype] @@
   drivers/atm/horizon.c:1173:49: sparse:     expected unsigned int [usertype] data
   drivers/atm/horizon.c:1173:49: sparse:     got restricted __be32 [usertype]
   drivers/atm/horizon.c:1177:48: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected unsigned int [usertype] data @@     got restricted __be32 [usertype] @@
   drivers/atm/horizon.c:1177:48: sparse:     expected unsigned int [usertype] data
   drivers/atm/horizon.c:1177:48: sparse:     got restricted __be32 [usertype]
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c: note: in included file (through arch/microblaze/include/asm/io.h, include/linux/io.h, include/linux/irq.h, ...):
   include/asm-generic/io.h:479:15: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   include/asm-generic/io.h:479:15: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: too many warnings

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=80591e61a0f7e88deaada69844e4a31280c4a38f
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 80591e61a0f7e88deaada69844e4a31280c4a38f
vim +365 drivers/atm/horizon.c

^1da177e4c3f41 Linus Torvalds 2005-04-16  354  
^1da177e4c3f41 Linus Torvalds 2005-04-16  355  /* Read / Write Horizon registers */
^1da177e4c3f41 Linus Torvalds 2005-04-16  356  static inline void wr_regl (const hrz_dev * dev, unsigned char reg, u32 data) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 @357    outl (cpu_to_le32 (data), dev->iobase + reg);
^1da177e4c3f41 Linus Torvalds 2005-04-16  358  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  359  
^1da177e4c3f41 Linus Torvalds 2005-04-16  360  static inline u32 rd_regl (const hrz_dev * dev, unsigned char reg) {
^1da177e4c3f41 Linus Torvalds 2005-04-16  361    return le32_to_cpu (inl (dev->iobase + reg));
^1da177e4c3f41 Linus Torvalds 2005-04-16  362  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  363  
^1da177e4c3f41 Linus Torvalds 2005-04-16  364  static inline void wr_regw (const hrz_dev * dev, unsigned char reg, u16 data) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 @365    outw (cpu_to_le16 (data), dev->iobase + reg);
^1da177e4c3f41 Linus Torvalds 2005-04-16  366  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  367  

:::::: The code at line 365 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: 30670 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2020-07-13 16:20 ` kernel test robot
  0 siblings, 0 replies; 10+ messages in thread
From: kernel test robot @ 2020-07-13 16:20 UTC (permalink / raw)
  To: Luc Van Oostenryck; +Cc: kbuild-all, linux-kernel, Masahiro Yamada

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   11ba468877bb23f28956a35e896356252d63c983
commit: 80591e61a0f7e88deaada69844e4a31280c4a38f kbuild: tell sparse about the $ARCH
date:   8 months 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 80591e61a0f7e88deaada69844e4a31280c4a38f
        # 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 >>)

   ./arch/microblaze/include/generated/uapi/asm/unistd_32.h:438:45: sparse: sparse: no newline at end of file
   drivers/atm/horizon.c:1135:22: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *[usertype] tx_addr @@     got void [noderef] <asn:1> *iov_base @@
   drivers/atm/horizon.c:1135:22: sparse:     expected void *[usertype] tx_addr
   drivers/atm/horizon.c:1135:22: sparse:     got void [noderef] <asn:1> *iov_base
   drivers/atm/horizon.c:1173:49: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected unsigned int [usertype] data @@     got restricted __be32 [usertype] @@
   drivers/atm/horizon.c:1173:49: sparse:     expected unsigned int [usertype] data
   drivers/atm/horizon.c:1173:49: sparse:     got restricted __be32 [usertype]
   drivers/atm/horizon.c:1177:48: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected unsigned int [usertype] data @@     got restricted __be32 [usertype] @@
   drivers/atm/horizon.c:1177:48: sparse:     expected unsigned int [usertype] data
   drivers/atm/horizon.c:1177:48: sparse:     got restricted __be32 [usertype]
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   include/asm-generic/io.h:479:15: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   include/asm-generic/io.h:479:15: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: too many warnings

vim +365 drivers/atm/horizon.c

^1da177e4c3f41 Linus Torvalds 2005-04-16  363  
^1da177e4c3f41 Linus Torvalds 2005-04-16  364  static inline void wr_regw (const hrz_dev * dev, unsigned char reg, u16 data) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 @365    outw (cpu_to_le16 (data), dev->iobase + reg);
^1da177e4c3f41 Linus Torvalds 2005-04-16  366  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  367  

:::::: The code at line 365 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: 30395 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2020-07-13 16:20 ` kernel test robot
  0 siblings, 0 replies; 10+ messages in thread
From: kernel test robot @ 2020-07-13 16:20 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   11ba468877bb23f28956a35e896356252d63c983
commit: 80591e61a0f7e88deaada69844e4a31280c4a38f kbuild: tell sparse about the $ARCH
date:   8 months 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 80591e61a0f7e88deaada69844e4a31280c4a38f
        # 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 >>)

   ./arch/microblaze/include/generated/uapi/asm/unistd_32.h:438:45: sparse: sparse: no newline at end of file
   drivers/atm/horizon.c:1135:22: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *[usertype] tx_addr @@     got void [noderef] <asn:1> *iov_base @@
   drivers/atm/horizon.c:1135:22: sparse:     expected void *[usertype] tx_addr
   drivers/atm/horizon.c:1135:22: sparse:     got void [noderef] <asn:1> *iov_base
   drivers/atm/horizon.c:1173:49: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected unsigned int [usertype] data @@     got restricted __be32 [usertype] @@
   drivers/atm/horizon.c:1173:49: sparse:     expected unsigned int [usertype] data
   drivers/atm/horizon.c:1173:49: sparse:     got restricted __be32 [usertype]
   drivers/atm/horizon.c:1177:48: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected unsigned int [usertype] data @@     got restricted __be32 [usertype] @@
   drivers/atm/horizon.c:1177:48: sparse:     expected unsigned int [usertype] data
   drivers/atm/horizon.c:1177:48: sparse:     got restricted __be32 [usertype]
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   include/asm-generic/io.h:479:15: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
   include/asm-generic/io.h:479:15: sparse: sparse: cast to restricted __le16
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
   include/asm-generic/io.h:513:22: sparse:     expected unsigned short [usertype] value
   include/asm-generic/io.h:513:22: sparse:     got restricted __le16 [usertype]
   drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:492:15: sparse: sparse: cast to restricted __le32
   drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   drivers/atm/horizon.c:357:9: sparse:     expected unsigned int [usertype] value
   drivers/atm/horizon.c:357:9: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:523: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:523:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:523:22: sparse:     got restricted __le32 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] value @@     got restricted __le16 [usertype] @@
>> drivers/atm/horizon.c:365:9: sparse:     expected unsigned short [usertype] value
   drivers/atm/horizon.c:365:9: sparse:     got restricted __le16 [usertype]
   include/asm-generic/io.h:513:22: sparse: sparse: too many warnings

vim +365 drivers/atm/horizon.c

^1da177e4c3f41 Linus Torvalds 2005-04-16  363  
^1da177e4c3f41 Linus Torvalds 2005-04-16  364  static inline void wr_regw (const hrz_dev * dev, unsigned char reg, u16 data) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 @365    outw (cpu_to_le16 (data), dev->iobase + reg);
^1da177e4c3f41 Linus Torvalds 2005-04-16  366  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  367  

:::::: The code at line 365 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: 30395 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-02-18  6:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-06 12:20 drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) kernel test robot
2020-12-06 12:20 ` kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-02-18  5:48 kernel test robot
2021-02-18  5:48 ` kernel test robot
2020-10-15 18:34 kernel test robot
2020-10-15 18:34 ` kernel test robot
2020-09-04  9:52 kernel test robot
2020-09-04  9:52 ` kernel test robot
2020-07-13 16:20 kernel test robot
2020-07-13 16:20 ` kernel 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.