[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202205162326.G70XUnDW-lkp@intel.com>
Date: Tue, 17 May 2022 00:01:10 +0800
From: kernel test robot <lkp@...el.com>
To: Yoshinori Sato <ysato@...rs.sourceforge.jp>
Cc: kbuild-all@...ts.01.org, uclinux-h8-devel@...ts.sourceforge.jp,
linux-kernel@...r.kernel.org
Subject: [uclinux-h8:h8300-next 12/15]
drivers/irqchip/irq-renesas-h8s.c:54:35: sparse: sparse: incorrect type in
argument 1 (different address spaces)
tree: git://git.sourceforge.jp/gitroot/uclinux-h8/linux h8300-next
head: 096e0fe4084eb9c2c12c272688d1703921811cd7
commit: 1bf38534b95dfd447964ed1fbdb6fe8401449ec9 [12/15] irq-renesas-h8s: Fix external interrupt control.
config: mips-randconfig-s032-20220516 (https://download.01.org/0day-ci/archive/20220516/202205162326.G70XUnDW-lkp@intel.com/config)
compiler: mipsel-linux-gcc (GCC) 11.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.4-dirty
git remote add uclinux-h8 git://git.sourceforge.jp/gitroot/uclinux-h8/linux
git fetch --no-tags uclinux-h8 h8300-next
git checkout 1bf38534b95dfd447964ed1fbdb6fe8401449ec9
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=mips SHELL=/bin/bash drivers/irqchip/ drivers/usb/gadget/udc/
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 >>)
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
36
37 static void h8s_disable_irq(struct irq_data *data)
38 {
39 int pos;
40 void __iomem *addr;
41 unsigned short pri;
42 int irq = data->irq - 16;
43 unsigned short ier;
44
45 if (irq < 0)
46 return;
47
48 addr = IPRA + ((ipr_table[irq] & 0xf0) >> 3);
49 pos = (ipr_table[irq] & 0x0f) * 4;
50 pri = ~(0x000f << pos);
51 pri &= __raw_readw(addr);
52 __raw_writew(pri, addr);
53 if (irq < 16) {
> 54 ier = __raw_readw(IER);
55 ier &= ~(1 << irq);
56 __raw_writew(ier, IER);
57 }
58 }
59
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists