linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: kbuild-all@lists.01.org,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Arnd Bergmann <arnd@arndb.de>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 7683/7824] drivers/mailbox/bcm-pdc-mailbox.c:682:28: sparse: sparse: incorrect type in argument 1 (different address spaces)
Date: Mon, 13 Jul 2020 22:05:14 +0800	[thread overview]
Message-ID: <202007132209.Rxmv4QyS%lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   be978f8feb1d4678b941a3ccf181eea1039110e2
commit: 05596e9daf61b0965d525ce889d9414b49727b40 [7683/7824] iomap: constify ioreadX() iomem argument (as in generic implementation)
config: x86_64-randconfig-s021-20200713 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-37-gc9676a3b-dirty
        git checkout 05596e9daf61b0965d525ce889d9414b49727b40
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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/mailbox/bcm-pdc-mailbox.c:682:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem * @@     got unsigned int * @@
>> drivers/mailbox/bcm-pdc-mailbox.c:682:28: sparse:     expected void const [noderef] __iomem *
   drivers/mailbox/bcm-pdc-mailbox.c:682:28: sparse:     got unsigned int *
   drivers/mailbox/bcm-pdc-mailbox.c:792:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int * @@
   drivers/mailbox/bcm-pdc-mailbox.c:792:42: sparse:     expected void [noderef] __iomem *
   drivers/mailbox/bcm-pdc-mailbox.c:792:42: sparse:     got unsigned int *
   drivers/mailbox/bcm-pdc-mailbox.c:793:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int * @@
   drivers/mailbox/bcm-pdc-mailbox.c:793:42: sparse:     expected void [noderef] __iomem *
   drivers/mailbox/bcm-pdc-mailbox.c:793:42: sparse:     got unsigned int *
   drivers/mailbox/bcm-pdc-mailbox.c:1031:32: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int * @@
   drivers/mailbox/bcm-pdc-mailbox.c:1031:32: sparse:     expected void [noderef] __iomem *
   drivers/mailbox/bcm-pdc-mailbox.c:1031:32: sparse:     got unsigned int *
   drivers/mailbox/bcm-pdc-mailbox.c:1033:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int * @@
   drivers/mailbox/bcm-pdc-mailbox.c:1033:20: sparse:     expected void [noderef] __iomem *
   drivers/mailbox/bcm-pdc-mailbox.c:1033:20: sparse:     got unsigned int *
   drivers/mailbox/bcm-pdc-mailbox.c:1034:23: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int * @@
   drivers/mailbox/bcm-pdc-mailbox.c:1034:23: sparse:     expected void [noderef] __iomem *
   drivers/mailbox/bcm-pdc-mailbox.c:1034:23: sparse:     got unsigned int *
   drivers/mailbox/bcm-pdc-mailbox.c:1035:23: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int * @@
   drivers/mailbox/bcm-pdc-mailbox.c:1035:23: sparse:     expected void [noderef] __iomem *
   drivers/mailbox/bcm-pdc-mailbox.c:1035:23: sparse:     got unsigned int *
   drivers/mailbox/bcm-pdc-mailbox.c:1039:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int * @@
   drivers/mailbox/bcm-pdc-mailbox.c:1039:20: sparse:     expected void [noderef] __iomem *
   drivers/mailbox/bcm-pdc-mailbox.c:1039:20: sparse:     got unsigned int *
   drivers/mailbox/bcm-pdc-mailbox.c:1041:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int * @@
   drivers/mailbox/bcm-pdc-mailbox.c:1041:20: sparse:     expected void [noderef] __iomem *
   drivers/mailbox/bcm-pdc-mailbox.c:1041:20: sparse:     got unsigned int *
   drivers/mailbox/bcm-pdc-mailbox.c:1044:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int * @@
   drivers/mailbox/bcm-pdc-mailbox.c:1044:20: sparse:     expected void [noderef] __iomem *
   drivers/mailbox/bcm-pdc-mailbox.c:1044:20: sparse:     got unsigned int *
   drivers/mailbox/bcm-pdc-mailbox.c:1046:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int * @@
   drivers/mailbox/bcm-pdc-mailbox.c:1046:20: sparse:     expected void [noderef] __iomem *
   drivers/mailbox/bcm-pdc-mailbox.c:1046:20: sparse:     got unsigned int *
   drivers/mailbox/bcm-pdc-mailbox.c:1049:48: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int * @@
   drivers/mailbox/bcm-pdc-mailbox.c:1049:48: sparse:     expected void [noderef] __iomem *
   drivers/mailbox/bcm-pdc-mailbox.c:1049:48: sparse:     got unsigned int *
   drivers/mailbox/bcm-pdc-mailbox.c:1051:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int * @@
   drivers/mailbox/bcm-pdc-mailbox.c:1051:20: sparse:     expected void [noderef] __iomem *
   drivers/mailbox/bcm-pdc-mailbox.c:1051:20: sparse:     got unsigned int *
   drivers/mailbox/bcm-pdc-mailbox.c:1058:48: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int * @@
   drivers/mailbox/bcm-pdc-mailbox.c:1058:48: sparse:     expected void [noderef] __iomem *
   drivers/mailbox/bcm-pdc-mailbox.c:1058:48: sparse:     got unsigned int *
   drivers/mailbox/bcm-pdc-mailbox.c:1062:63: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int * @@
   drivers/mailbox/bcm-pdc-mailbox.c:1062:63: sparse:     expected void [noderef] __iomem *
   drivers/mailbox/bcm-pdc-mailbox.c:1062:63: sparse:     got unsigned int *
   drivers/mailbox/bcm-pdc-mailbox.c:1068:48: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int * @@
   drivers/mailbox/bcm-pdc-mailbox.c:1068:48: sparse:     expected void [noderef] __iomem *
   drivers/mailbox/bcm-pdc-mailbox.c:1068:48: sparse:     got unsigned int *
   drivers/mailbox/bcm-pdc-mailbox.c:1072:48: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int * @@
   drivers/mailbox/bcm-pdc-mailbox.c:1072:48: sparse:     expected void [noderef] __iomem *
   drivers/mailbox/bcm-pdc-mailbox.c:1072:48: sparse:     got unsigned int *
   drivers/mailbox/bcm-pdc-mailbox.c:1296:23: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/mailbox/bcm-pdc-mailbox.c:1298:16: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/mailbox/bcm-pdc-mailbox.c:1301:16: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/mailbox/bcm-pdc-mailbox.c:1308:27: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int * @@
   drivers/mailbox/bcm-pdc-mailbox.c:1308:27: sparse:     expected void [noderef] __iomem *
   drivers/mailbox/bcm-pdc-mailbox.c:1308:27: sparse:     got unsigned int *
   drivers/mailbox/bcm-pdc-mailbox.c:1313:32: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int * @@
   drivers/mailbox/bcm-pdc-mailbox.c:1313:32: sparse:     expected void [noderef] __iomem *
   drivers/mailbox/bcm-pdc-mailbox.c:1313:32: sparse:     got unsigned int *
   drivers/mailbox/bcm-pdc-mailbox.c:1316:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int * @@
   drivers/mailbox/bcm-pdc-mailbox.c:1316:20: sparse:     expected void [noderef] __iomem *
   drivers/mailbox/bcm-pdc-mailbox.c:1316:20: sparse:     got unsigned int *
   drivers/mailbox/bcm-pdc-mailbox.c:1319:23: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int * @@
   drivers/mailbox/bcm-pdc-mailbox.c:1319:23: sparse:     expected void [noderef] __iomem *
   drivers/mailbox/bcm-pdc-mailbox.c:1319:23: sparse:     got unsigned int *
   drivers/mailbox/bcm-pdc-mailbox.c:1320:23: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int * @@
   drivers/mailbox/bcm-pdc-mailbox.c:1320:23: sparse:     expected void [noderef] __iomem *
   drivers/mailbox/bcm-pdc-mailbox.c:1320:23: sparse:     got unsigned int *
   drivers/mailbox/bcm-pdc-mailbox.c:1337:32: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int * @@
   drivers/mailbox/bcm-pdc-mailbox.c:1337:32: sparse:     expected void [noderef] __iomem *
   drivers/mailbox/bcm-pdc-mailbox.c:1337:32: sparse:     got unsigned int *
   drivers/mailbox/bcm-pdc-mailbox.c:1339:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int * @@
   drivers/mailbox/bcm-pdc-mailbox.c:1339:20: sparse:     expected void [noderef] __iomem *
   drivers/mailbox/bcm-pdc-mailbox.c:1339:20: sparse:     got unsigned int *
   drivers/mailbox/bcm-pdc-mailbox.c:558:22: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] addrlow @@     got restricted __le32 [usertype] @@
   drivers/mailbox/bcm-pdc-mailbox.c:558:22: sparse:     expected unsigned int [usertype] addrlow
   drivers/mailbox/bcm-pdc-mailbox.c:558:22: sparse:     got restricted __le32 [usertype]
   drivers/mailbox/bcm-pdc-mailbox.c:559:23: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] addrhigh @@     got restricted __le32 [usertype] @@
   drivers/mailbox/bcm-pdc-mailbox.c:559:23: sparse:     expected unsigned int [usertype] addrhigh
   drivers/mailbox/bcm-pdc-mailbox.c:559:23: sparse:     got restricted __le32 [usertype]
   drivers/mailbox/bcm-pdc-mailbox.c:560:20: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] ctrl1 @@     got restricted __le32 [usertype] @@
   drivers/mailbox/bcm-pdc-mailbox.c:560:20: sparse:     expected unsigned int [usertype] ctrl1
   drivers/mailbox/bcm-pdc-mailbox.c:560:20: sparse:     got restricted __le32 [usertype]
   drivers/mailbox/bcm-pdc-mailbox.c:561:20: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] ctrl2 @@     got restricted __le32 [usertype] @@
   drivers/mailbox/bcm-pdc-mailbox.c:561:20: sparse:     expected unsigned int [usertype] ctrl2
   drivers/mailbox/bcm-pdc-mailbox.c:561:20: sparse:     got restricted __le32 [usertype]
   drivers/mailbox/bcm-pdc-mailbox.c:558:22: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] addrlow @@     got restricted __le32 [usertype] @@
   drivers/mailbox/bcm-pdc-mailbox.c:558:22: sparse:     expected unsigned int [usertype] addrlow
   drivers/mailbox/bcm-pdc-mailbox.c:558:22: sparse:     got restricted __le32 [usertype]
   drivers/mailbox/bcm-pdc-mailbox.c:559:23: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] addrhigh @@     got restricted __le32 [usertype] @@
   drivers/mailbox/bcm-pdc-mailbox.c:559:23: sparse:     expected unsigned int [usertype] addrhigh
   drivers/mailbox/bcm-pdc-mailbox.c:559:23: sparse:     got restricted __le32 [usertype]
   drivers/mailbox/bcm-pdc-mailbox.c:560:20: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] ctrl1 @@     got restricted __le32 [usertype] @@
   drivers/mailbox/bcm-pdc-mailbox.c:560:20: sparse:     expected unsigned int [usertype] ctrl1
   drivers/mailbox/bcm-pdc-mailbox.c:560:20: sparse:     got restricted __le32 [usertype]
   drivers/mailbox/bcm-pdc-mailbox.c:561:20: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] ctrl2 @@     got restricted __le32 [usertype] @@
   drivers/mailbox/bcm-pdc-mailbox.c:561:20: sparse:     expected unsigned int [usertype] ctrl2
   drivers/mailbox/bcm-pdc-mailbox.c:561:20: sparse:     got restricted __le32 [usertype]
   drivers/mailbox/bcm-pdc-mailbox.c:530:22: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] addrlow @@     got restricted __le32 [usertype] @@
   drivers/mailbox/bcm-pdc-mailbox.c:530:22: sparse:     expected unsigned int [usertype] addrlow
   drivers/mailbox/bcm-pdc-mailbox.c:530:22: sparse:     got restricted __le32 [usertype]

vim +682 drivers/mailbox/bcm-pdc-mailbox.c

e004c7e7d3b873 Rob Rice 2016-11-14  667  
e004c7e7d3b873 Rob Rice 2016-11-14  668  /**
e004c7e7d3b873 Rob Rice 2016-11-14  669   * pdc_receive() - Process as many responses as are available in the rx ring.
e004c7e7d3b873 Rob Rice 2016-11-14  670   * @pdcs:  PDC state
e004c7e7d3b873 Rob Rice 2016-11-14  671   *
e004c7e7d3b873 Rob Rice 2016-11-14  672   * Called within the hard IRQ.
e004c7e7d3b873 Rob Rice 2016-11-14  673   * Return:
e004c7e7d3b873 Rob Rice 2016-11-14  674   */
e004c7e7d3b873 Rob Rice 2016-11-14  675  static int
e004c7e7d3b873 Rob Rice 2016-11-14  676  pdc_receive(struct pdc_state *pdcs)
e004c7e7d3b873 Rob Rice 2016-11-14  677  {
e004c7e7d3b873 Rob Rice 2016-11-14  678  	int rx_status;
e004c7e7d3b873 Rob Rice 2016-11-14  679  
e004c7e7d3b873 Rob Rice 2016-11-14  680  	/* read last_rx_curr from register once */
e004c7e7d3b873 Rob Rice 2016-11-14  681  	pdcs->last_rx_curr =
cf17581340d730 Rob Rice 2016-11-14 @682  	    (ioread32(&pdcs->rxregs_64->status0) &
e004c7e7d3b873 Rob Rice 2016-11-14  683  	     CRYPTO_D64_RS0_CD_MASK) / RING_ENTRY_SIZE;
e004c7e7d3b873 Rob Rice 2016-11-14  684  
e004c7e7d3b873 Rob Rice 2016-11-14  685  	do {
e004c7e7d3b873 Rob Rice 2016-11-14  686  		/* Could be many frames ready */
e004c7e7d3b873 Rob Rice 2016-11-14  687  		rx_status = pdc_receive_one(pdcs);
e004c7e7d3b873 Rob Rice 2016-11-14  688  	} while (rx_status == PDC_SUCCESS);
e004c7e7d3b873 Rob Rice 2016-11-14  689  
e004c7e7d3b873 Rob Rice 2016-11-14  690  	return 0;
a24532f8d17b72 Rob Rice 2016-06-30  691  }
a24532f8d17b72 Rob Rice 2016-06-30  692  

:::::: The code at line 682 was first introduced by commit
:::::: cf17581340d730175f1f3f4ce6e90ae434154e37 mailbox: bcm-pdc: Remove unnecessary void* casts

:::::: TO: Rob Rice <rob.rice@broadcom.com>
:::::: CC: Jassi Brar <jaswinder.singh@linaro.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: 45590 bytes --]

                 reply	other threads:[~2020-07-13 14:08 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=202007132209.Rxmv4QyS%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=arnd@arndb.de \
    --cc=geert+renesas@glider.be \
    --cc=kbuild-all@lists.01.org \
    --cc=krzk@kernel.org \
    --cc=linux-mm@kvack.org \
    /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