From: kernel test robot <lkp@intel.com>
To: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: kbuild-all@lists.01.org,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 5857/6320] drivers/irqchip/irq-renesas-h8s.c:54:35: sparse: sparse: incorrect type in argument 1 (different address spaces)
Date: Tue, 17 Nov 2020 22:07:06 +0800 [thread overview]
Message-ID: <202011172258.gDn7ORvK-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 8226 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 7c8ca8129ee9724cb1527895fe6dec942ef07f19
commit: e5afedde24451009af1f6b258044f6a1fa88a860 [5857/6320] Merge remote-tracking branch 'h8300/h8300-next' into master
config: mips-randconfig-s031-20201116 (attached as .config)
compiler: mips64el-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-107-gaf3512a6-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=e5afedde24451009af1f6b258044f6a1fa88a860
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout e5afedde24451009af1f6b258044f6a1fa88a860
# 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=mips
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 >>)"
command-line: note: in included file:
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQUIRE redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_SEQ_CST redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQ_REL redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_RELEASE redefined
builtin:0:0: sparse: this was the original definition
drivers/irqchip/irq-renesas-h8s.c:48:14: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __iomem *addr @@ got void * @@
drivers/irqchip/irq-renesas-h8s.c:48:14: sparse: expected void [noderef] __iomem *addr
drivers/irqchip/irq-renesas-h8s.c:48:14: sparse: got void *
>> drivers/irqchip/irq-renesas-h8s.c:54:35: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
>> drivers/irqchip/irq-renesas-h8s.c:54:35: sparse: expected void const volatile [noderef] __iomem *mem
drivers/irqchip/irq-renesas-h8s.c:54:35: sparse: got void *
drivers/irqchip/irq-renesas-h8s.c:56:35: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
drivers/irqchip/irq-renesas-h8s.c:56:35: sparse: expected void volatile [noderef] __iomem *mem
drivers/irqchip/irq-renesas-h8s.c:56:35: sparse: got void *
drivers/irqchip/irq-renesas-h8s.c:71:14: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __iomem *addr @@ got void * @@
drivers/irqchip/irq-renesas-h8s.c:71:14: sparse: expected void [noderef] __iomem *addr
drivers/irqchip/irq-renesas-h8s.c:71:14: sparse: got void *
drivers/irqchip/irq-renesas-h8s.c:78:35: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/irqchip/irq-renesas-h8s.c:78:35: sparse: expected void const volatile [noderef] __iomem *mem
drivers/irqchip/irq-renesas-h8s.c:78:35: sparse: got void *
drivers/irqchip/irq-renesas-h8s.c:80:35: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
drivers/irqchip/irq-renesas-h8s.c:80:35: sparse: expected void volatile [noderef] __iomem *mem
drivers/irqchip/irq-renesas-h8s.c:80:35: sparse: got void *
drivers/irqchip/irq-renesas-h8s.c:91:35: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/irqchip/irq-renesas-h8s.c:91:35: sparse: expected void const volatile [noderef] __iomem *mem
drivers/irqchip/irq-renesas-h8s.c:91:35: sparse: got void *
drivers/irqchip/irq-renesas-h8s.c:93:35: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
drivers/irqchip/irq-renesas-h8s.c:93:35: sparse: expected void volatile [noderef] __iomem *mem
drivers/irqchip/irq-renesas-h8s.c:93:35: sparse: got void *
drivers/irqchip/irq-renesas-h8s.c:123:18: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *static [toplevel] ipr_base @@ got void [noderef] __iomem * @@
drivers/irqchip/irq-renesas-h8s.c:123:18: sparse: expected void *static [toplevel] ipr_base
drivers/irqchip/irq-renesas-h8s.c:123:18: sparse: got void [noderef] __iomem *
drivers/irqchip/irq-renesas-h8s.c:124:18: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *static [toplevel] icr_base @@ got void [noderef] __iomem * @@
drivers/irqchip/irq-renesas-h8s.c:124:18: sparse: expected void *static [toplevel] icr_base
drivers/irqchip/irq-renesas-h8s.c:124:18: sparse: got void [noderef] __iomem *
drivers/irqchip/irq-renesas-h8s.c:130:43: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
drivers/irqchip/irq-renesas-h8s.c:130:43: sparse: expected void volatile [noderef] __iomem *mem
drivers/irqchip/irq-renesas-h8s.c:130:43: sparse: got void *
drivers/irqchip/irq-renesas-h8s.c:132:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
drivers/irqchip/irq-renesas-h8s.c:132:30: sparse: expected void volatile [noderef] __iomem *mem
drivers/irqchip/irq-renesas-h8s.c:132:30: sparse: got void *
vim +54 drivers/irqchip/irq-renesas-h8s.c
8a7644821ae00b7 Yoshinori Sato 2015-05-10 36
8a7644821ae00b7 Yoshinori Sato 2015-05-10 37 static void h8s_disable_irq(struct irq_data *data)
8a7644821ae00b7 Yoshinori Sato 2015-05-10 38 {
8a7644821ae00b7 Yoshinori Sato 2015-05-10 39 int pos;
558e6694cd4da8d Yoshinori Sato 2018-08-13 40 void __iomem *addr;
8a7644821ae00b7 Yoshinori Sato 2015-05-10 41 unsigned short pri;
beab3d5cb0e14e6 Yoshinori Sato 2020-04-15 42 int irq = data->irq - 16;
beab3d5cb0e14e6 Yoshinori Sato 2020-04-15 43 unsigned short ier;
beab3d5cb0e14e6 Yoshinori Sato 2020-04-15 44
beab3d5cb0e14e6 Yoshinori Sato 2020-04-15 45 if (irq < 0)
beab3d5cb0e14e6 Yoshinori Sato 2020-04-15 46 return;
8a7644821ae00b7 Yoshinori Sato 2015-05-10 47
beab3d5cb0e14e6 Yoshinori Sato 2020-04-15 48 addr = IPRA + ((ipr_table[irq] & 0xf0) >> 3);
beab3d5cb0e14e6 Yoshinori Sato 2020-04-15 49 pos = (ipr_table[irq] & 0x0f) * 4;
8a7644821ae00b7 Yoshinori Sato 2015-05-10 50 pri = ~(0x000f << pos);
2c496a11304da82 Yoshinori Sato 2019-12-26 51 pri &= __raw_readw(addr);
2c496a11304da82 Yoshinori Sato 2019-12-26 52 __raw_writew(pri, addr);
beab3d5cb0e14e6 Yoshinori Sato 2020-04-15 53 if (irq < 16) {
beab3d5cb0e14e6 Yoshinori Sato 2020-04-15 @54 ier = __raw_readw(IER);
beab3d5cb0e14e6 Yoshinori Sato 2020-04-15 55 ier &= ~(1 << irq);
beab3d5cb0e14e6 Yoshinori Sato 2020-04-15 56 __raw_writew(ier, IER);
beab3d5cb0e14e6 Yoshinori Sato 2020-04-15 57 }
8a7644821ae00b7 Yoshinori Sato 2015-05-10 58 }
8a7644821ae00b7 Yoshinori Sato 2015-05-10 59
:::::: The code at line 54 was first introduced by commit
:::::: beab3d5cb0e14e6397c4e596b3dbf1d36bf49d06 irq-renesas-h8s: Fix external interrupt control.
:::::: TO: Yoshinori Sato <ysato@users.sourceforge.jp>
:::::: CC: Yoshinori Sato <ysato@users.sourceforge.jp>
---
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: 27311 bytes --]
reply other threads:[~2020-11-17 14:07 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=202011172258.gDn7ORvK-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
--cc=ysato@users.sourceforge.jp \
/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