mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Anup Patel <anup.patel@wdc.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [avpatel:riscv_aia_v1 16/18] drivers/irqchip/irq-riscv-imsic.c:162:32: sparse: sparse: incorrect type in return expression (different address spaces)
Date: Tue, 6 Jul 2021 10:12:18 +0800	[thread overview]
Message-ID: <202107061016.idWFa6zO-lkp@intel.com> (raw)

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

tree:   https://github.com/avpatel/linux.git riscv_aia_v1
head:   5d6eb4c6c04e1ef92602e706e2484415ac3234a1
commit: 6cf1dc094f6ff07059469b7530a4d7c522bdd15c [16/18] irqchip: Add RISC-V incoming MSI controller driver
config: riscv-randconfig-s031-20210705 (attached as .config)
compiler: riscv32-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-341-g8af24329-dirty
        # https://github.com/avpatel/linux/commit/6cf1dc094f6ff07059469b7530a4d7c522bdd15c
        git remote add avpatel https://github.com/avpatel/linux.git
        git fetch --no-tags avpatel riscv_aia_v1
        git checkout 6cf1dc094f6ff07059469b7530a4d7c522bdd15c
        # 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=riscv 

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/irqchip/irq-riscv-imsic.c:162:32: sparse: sparse: incorrect type in return expression (different address spaces) @@     expected void * @@     got void [noderef] __iomem * @@
   drivers/irqchip/irq-riscv-imsic.c:162:32: sparse:     expected void *
   drivers/irqchip/irq-riscv-imsic.c:162:32: sparse:     got void [noderef] __iomem *
>> drivers/irqchip/irq-riscv-imsic.c:397:24: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void [noderef] __iomem *msi_va @@     got void * @@
   drivers/irqchip/irq-riscv-imsic.c:397:24: sparse:     expected void [noderef] __iomem *msi_va
   drivers/irqchip/irq-riscv-imsic.c:397:24: sparse:     got void *

vim +162 drivers/irqchip/irq-riscv-imsic.c

   151	
   152	void *imsic_cpu_page_virt(unsigned int cpu, unsigned int guest_index)
   153	{
   154		struct imsic_handler *handler;
   155	
   156		handler = per_cpu_ptr(&imsic_handlers, cpu);
   157		if (!handler || !handler->priv)
   158			return NULL;
   159		if (BIT(handler->priv->guest_index_bits) <= guest_index)
   160			return NULL;
   161	
 > 162		return handler->msi_va + (guest_index * IMSIC_MMIO_PAGE_SZ);
   163	}
   164	EXPORT_SYMBOL_GPL(imsic_cpu_page_virt);
   165	

---
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: 28076 bytes --]

                 reply	other threads:[~2021-07-06  2:13 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=202107061016.idWFa6zO-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=anup.patel@wdc.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®