mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: drivers/char/pcmcia/synclink_cs.c:340:17: sparse: sparse: cast removes address space '__iomem' of expression
Date: Thu, 25 Jun 2020 01:04:04 +0800	[thread overview]
Message-ID: <202006250152.oS2V8l1H%lkp@intel.com> (raw)

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

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@intel.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@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: 27844 bytes --]

                 reply	other threads:[~2020-06-24 17:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202006250152.oS2V8l1H%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luc.vanoostenryck@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®