bcm63xx: ext_intc: fix warning
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Thu, 14 May 2020 14:14:52 +0000 (16:14 +0200)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Thu, 14 May 2020 14:28:31 +0000 (16:28 +0200)
commit29c3bb5f413f0962971c66e6516b8409a78e0135
tree3ce1368a594d02ea07e8cfd783d267aefa067f9a
parentf2f2cf07a61e9c170ab8d65e1e054f0131a84e2a
bcm63xx: ext_intc: fix warning

In file included from ./arch/mips/include/asm/io.h:34,
                 from ./arch/mips/include/asm/mmiowb.h:5,
                 from ./include/linux/spinlock.h:60,
                 from ./include/linux/irq.h:14,
                 from drivers/irqchip/irq-bcm6345-ext.c:10:
drivers/irqchip/irq-bcm6345-ext.c: In function 'bcm6345_ext_intc_of_init':
./arch/mips/include/asm/mach-bcm63xx/ioremap.h:48:9: warning: 'base' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return is_bcm63xx_internal_registers((unsigned long)addr);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/irqchip/irq-bcm6345-ext.c:255:16: note: 'base' was declared here
  void __iomem *base;
                ^~~~

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
target/linux/bcm63xx/patches-5.4/325-irqchip-bcm6345-external-fix-base-uninitialized.patch [new file with mode: 0644]