[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202006250152.oS2V8l1H%lkp@intel.com>
Date: Thu, 25 Jun 2020 01:04:04 +0800
From: kernel test robot <lkp@...el.com>
To: Luc Van Oostenryck <luc.vanoostenryck@...il.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: drivers/char/pcmcia/synclink_cs.c:340:17: sparse: sparse: cast
removes address space '__iomem' of expression
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 3e08a95294a4fb3702bb3d35ed08028433c37fe6
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date: 6 days ago
config: riscv-randconfig-s031-20200624 (attached as .config)
compiler: riscv32-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-dirty
git checkout 670d0a4b10704667765f7d18f7592993d02783aa
# save the attached .config to linux build tree
make W=1 C=1 ARCH=riscv CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/char/pcmcia/synclink_cs.c:340:17: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/char/pcmcia/synclink_cs.c:340:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
>> drivers/char/pcmcia/synclink_cs.c:340:17: sparse: expected void volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:340:17: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:343:17: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:343:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:343:17: sparse: expected void volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:343:17: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:350:17: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:350:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:350:17: sparse: expected void volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:350:17: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:353:17: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:353:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:353:17: sparse: expected void volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:353:17: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3279:9: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/char/pcmcia/synclink_cs.c:3279:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@
>> drivers/char/pcmcia/synclink_cs.c:3279:9: sparse: expected void const volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3279:9: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3279:9: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3279:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3279:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3279:9: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3262:9: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3262:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3262:9: sparse: expected void const volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3262:9: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3262:9: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3262:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3262:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3262:9: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3561:17: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3561:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3561:17: sparse: expected void const volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3561:17: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3561:17: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3561:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3561:17: sparse: expected void volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3561:17: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3563:17: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3563:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3563:17: sparse: expected void const volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3563:17: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3563:17: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3563:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3563:17: sparse: expected void volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3563:17: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3575:13: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3575:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3575:13: sparse: expected void const volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3575:13: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3577:13: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3577:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3577:13: sparse: expected void const volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3577:13: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3580:18: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3580:18: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3580:18: sparse: expected void const volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3580:18: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3594:15: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3594:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3594:15: sparse: expected void const volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3594:15: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3606:9: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3606:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3606:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3606:9: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3609:17: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3609:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3609:17: sparse: expected void const volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3609:17: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3609:17: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3609:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3609:17: sparse: expected void volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3609:17: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3611:17: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3611:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3611:17: sparse: expected void const volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3611:17: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3611:17: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3611:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3611:17: sparse: expected void volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3611:17: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3339:9: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3339:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3339:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3339:9: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3340:9: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3340:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3340:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3340:9: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3341:9: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3341:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3341:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3341:9: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3342:9: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3342:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3342:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3342:9: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3347:9: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3347:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3347:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3347:9: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3359:9: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3359:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3359:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3359:9: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3383:9: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3383:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3383:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3383:9: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3023:9: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3023:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3023:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/char/pcmcia/synclink_cs.c:3023:9: sparse: got void *
drivers/char/pcmcia/synclink_cs.c:3069:9: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/pcmcia/synclink_cs.c:3069:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/char/pcmcia/synclink_cs.c:3069:9: sparse: expected void volatile [noderef] __iomem *addr
--
>> drivers/rtc/rtc-bq4802.c:32:16: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/rtc/rtc-bq4802.c:32:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@
>> drivers/rtc/rtc-bq4802.c:32:16: sparse: expected void const volatile [noderef] __iomem *addr
drivers/rtc/rtc-bq4802.c:32:16: sparse: got void *
drivers/rtc/rtc-bq4802.c:37:9: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/rtc/rtc-bq4802.c:37:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
>> drivers/rtc/rtc-bq4802.c:37:9: sparse: expected void volatile [noderef] __iomem *addr
drivers/rtc/rtc-bq4802.c:37:9: sparse: got void *
vim +/__iomem +340 drivers/char/pcmcia/synclink_cs.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 326
^1da177e4c3f41 Linus Torvalds 2005-04-16 327 #define set_reg_bits(info, reg, mask) \
^1da177e4c3f41 Linus Torvalds 2005-04-16 328 write_reg(info, (reg), \
^1da177e4c3f41 Linus Torvalds 2005-04-16 329 (unsigned char) (read_reg(info, (reg)) | (mask)))
^1da177e4c3f41 Linus Torvalds 2005-04-16 330 #define clear_reg_bits(info, reg, mask) \
^1da177e4c3f41 Linus Torvalds 2005-04-16 331 write_reg(info, (reg), \
^1da177e4c3f41 Linus Torvalds 2005-04-16 332 (unsigned char) (read_reg(info, (reg)) & ~(mask)))
^1da177e4c3f41 Linus Torvalds 2005-04-16 333 /*
^1da177e4c3f41 Linus Torvalds 2005-04-16 334 * interrupt enable/disable routines
^1da177e4c3f41 Linus Torvalds 2005-04-16 335 */
^1da177e4c3f41 Linus Torvalds 2005-04-16 336 static void irq_disable(MGSLPC_INFO *info, unsigned char channel, unsigned short mask)
^1da177e4c3f41 Linus Torvalds 2005-04-16 337 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 338 if (channel == CHA) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 339 info->imra_value |= mask;
^1da177e4c3f41 Linus Torvalds 2005-04-16 @340 write_reg16(info, CHA + IMR, info->imra_value);
^1da177e4c3f41 Linus Torvalds 2005-04-16 341 } else {
^1da177e4c3f41 Linus Torvalds 2005-04-16 342 info->imrb_value |= mask;
^1da177e4c3f41 Linus Torvalds 2005-04-16 343 write_reg16(info, CHB + IMR, info->imrb_value);
^1da177e4c3f41 Linus Torvalds 2005-04-16 344 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 345 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 346 static void irq_enable(MGSLPC_INFO *info, unsigned char channel, unsigned short mask)
^1da177e4c3f41 Linus Torvalds 2005-04-16 347 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 348 if (channel == CHA) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 349 info->imra_value &= ~mask;
^1da177e4c3f41 Linus Torvalds 2005-04-16 350 write_reg16(info, CHA + IMR, info->imra_value);
^1da177e4c3f41 Linus Torvalds 2005-04-16 351 } else {
^1da177e4c3f41 Linus Torvalds 2005-04-16 352 info->imrb_value &= ~mask;
^1da177e4c3f41 Linus Torvalds 2005-04-16 353 write_reg16(info, CHB + IMR, info->imrb_value);
^1da177e4c3f41 Linus Torvalds 2005-04-16 354 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 355 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 356
:::::: The code at line 340 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@...970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@...970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (27844 bytes)
Powered by blists - more mailing lists