tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: f30a24ed97b401416118756fa35fbe5d28f999e3 commit: 6b9a5f88e90983c7725ee56437b5f6ae8974152d [54/3897] Merge remote-tracking branch 'origin/master' into h8300-next config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20211128/202111281258.6xJLYyPb-lkp@xxxxxxxxx/config) compiler: mips-linux-gcc (GCC) 11.2.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 # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=6b9a5f88e90983c7725ee56437b5f6ae8974152d 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 6b9a5f88e90983c7725ee56437b5f6ae8974152d # save the config file to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=mips SHELL=/bin/bash drivers/irqchip/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> 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 8a7644821ae00b Yoshinori Sato 2015-05-10 36 8a7644821ae00b Yoshinori Sato 2015-05-10 37 static void h8s_disable_irq(struct irq_data *data) 8a7644821ae00b Yoshinori Sato 2015-05-10 38 { 8a7644821ae00b Yoshinori Sato 2015-05-10 39 int pos; 558e6694cd4da8 Yoshinori Sato 2018-08-13 40 void __iomem *addr; 8a7644821ae00b Yoshinori Sato 2015-05-10 41 unsigned short pri; beab3d5cb0e14e Yoshinori Sato 2020-04-15 42 int irq = data->irq - 16; beab3d5cb0e14e Yoshinori Sato 2020-04-15 43 unsigned short ier; beab3d5cb0e14e Yoshinori Sato 2020-04-15 44 beab3d5cb0e14e Yoshinori Sato 2020-04-15 45 if (irq < 0) beab3d5cb0e14e Yoshinori Sato 2020-04-15 46 return; 8a7644821ae00b Yoshinori Sato 2015-05-10 47 beab3d5cb0e14e Yoshinori Sato 2020-04-15 48 addr = IPRA + ((ipr_table[irq] & 0xf0) >> 3); beab3d5cb0e14e Yoshinori Sato 2020-04-15 49 pos = (ipr_table[irq] & 0x0f) * 4; 8a7644821ae00b Yoshinori Sato 2015-05-10 50 pri = ~(0x000f << pos); 2c496a11304da8 Yoshinori Sato 2019-12-26 51 pri &= __raw_readw(addr); 2c496a11304da8 Yoshinori Sato 2019-12-26 52 __raw_writew(pri, addr); beab3d5cb0e14e Yoshinori Sato 2020-04-15 53 if (irq < 16) { beab3d5cb0e14e Yoshinori Sato 2020-04-15 @54 ier = __raw_readw(IER); beab3d5cb0e14e Yoshinori Sato 2020-04-15 55 ier &= ~(1 << irq); beab3d5cb0e14e Yoshinori Sato 2020-04-15 56 __raw_writew(ier, IER); beab3d5cb0e14e Yoshinori Sato 2020-04-15 57 } 8a7644821ae00b Yoshinori Sato 2015-05-10 58 } 8a7644821ae00b 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@xxxxxxxxxxxxxxxxxxxx> :::::: CC: Yoshinori Sato <ysato@xxxxxxxxxxxxxxxxxxxx> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx