From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabian Vogt Subject: Re: linux-next: build failure after merge of the final tree (gpio tree related) Date: Wed, 05 Mar 2014 17:42:06 +0100 Message-ID: <8059814.9s1EQsUgo4@fabians-laptop.fritz.box> References: <20140305173559.0b50971a1ab88a16bee8819c@canb.auug.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Return-path: Received: from moutng.kundenserver.de ([212.227.17.13]:59670 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753478AbaCEPmG (ORCPT ); Wed, 5 Mar 2014 10:42:06 -0500 In-Reply-To: Sender: linux-next-owner@vger.kernel.org List-ID: To: Linus Walleij Cc: Stephen Rothwell , "linux-next@vger.kernel.org" , "linux-kernel@vger.kernel.org" Hi, On Wed, Mar 5, 2014, 3:16 PM, Linus Walleij wrote: > On Wed, Mar 5, 2014 at 2:35 PM, Stephen Rothwell wrote: > > > 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) > > ^ > > Fabian can you suggest a patch adding the proper depends added to > the Kconfig. Check what things bring in the IOMEM etc that is needed > to compile this. It looks like powerpc doesn't have the IOMEM macro (which just casts to "void __iomem*"). Would "depends on ARM && OF_GPIO" be ok? > Yours, > Linus Walleij Bye, Fabian