linux-next: build failure after merge of the final tree (gpio tree related)

From: Stephen Rothwell
Date: Wed Mar 05 2014 - 01:36:18 EST


Hi all,

After merging the final tree, today's linux-next build (powerpc
allyesconfig) failed like this:

drivers/gpio/gpio-zevio.c: In function 'zevio_gpio_port_get':
drivers/gpio/gpio-zevio.c:70:2: error: implicit declaration of function 'IOMEM' [-Werror=implicit-function-declaration]
return readl(IOMEM(c->chip.regs + section_offset + port_offset));
^
drivers/gpio/gpio-zevio.c:70:2: warning: passing argument 1 of 'readl' makes pointer from integer without a cast [enabled by default]
In file included from include/linux/io.h:22:0,
from drivers/gpio/gpio-zevio.c:15:
arch/powerpc/include/asm/io-defs.h:6:16: note: expected 'const volatile void *' but argument is of type 'int'
DEF_PCI_AC_RET(readl, u32, (const PCI_IO_ADDR addr), (addr), mem, addr)
^
arch/powerpc/include/asm/io.h:577:19: note: in definition of macro 'DEF_PCI_AC_RET'
static inline ret name at \
^
drivers/gpio/gpio-zevio.c: In function 'zevio_gpio_port_set':
drivers/gpio/gpio-zevio.c:77:2: warning: passing argument 2 of 'writel' makes pointer from integer without a cast [enabled by default]
writel(val, IOMEM(c->chip.regs + section_offset + port_offset));
^
In file included from include/linux/io.h:22:0,
from drivers/gpio/gpio-zevio.c:15:
arch/powerpc/include/asm/io-defs.h:11:18: note: expected 'volatile void *' but argument is of type 'int'
DEF_PCI_AC_NORET(writel, (u32 val, PCI_IO_ADDR addr), (val, addr), mem, addr)
^
arch/powerpc/include/asm/io.h:585:20: note: in definition of macro 'DEF_PCI_AC_NORET'
static inline void name at \
^

Caused by commit 9af4d80ba566 ("gpio: New driver for LSI ZEVIO SoCs").

I have reverted that commit for today.
--
Cheers,
Stephen Rothwell sfr@xxxxxxxxxxxxxxxx

Attachment: pgpO9cO0Zwh0g.pgp
Description: PGP signature