[PATCH] ixp4xx: fix compilation by adding gpiolib support

Richard Cochran richardcochran at gmail.com
Mon May 28 01:43:09 EDT 2012


On Sun, May 27, 2012 at 10:52:48PM +0200, Krzysztof Halasa wrote:
> Arnaud Patard (Rtp) <arnaud.patard at rtp-net.org> writes:
> 
> >> So has every kernel since 3.1 been broken, or is it just broken now
> >> but a good idea to backport anyway?
> >
> > every kernel since 3.1 (even 3.1-rc-something). Would be nice to see
> > this issue fixed as similar patches have been sent from time to time but
> > never been merged.
> 
> Is it really that bad? I'm using IXP425 with 3.2 and it definitely
> compiles (and works). Extra patches maybe? I can't see anything obvious.

[Sigh] 

Yes, it is really that bad. Try the following:

1. export kernel with tag v3.2
2. make ixp4xx_defconfig
3. make

You will see:

  CC      arch/arm/mach-ixp4xx/nslu2-setup.o
In file included from arch/arm/mach-ixp4xx/include/mach/gpio.h:72,
                 from /tmp/linux-v3.2/arch/arm/include/asm/gpio.h:5,
                 from include/linux/gpio.h:30,
                 from arch/arm/mach-ixp4xx/nslu2-setup.c:19:
include/asm-generic/gpio.h: In function 'gpio_get_value_cansleep':
include/asm-generic/gpio.h:212: error: implicit declaration of function '__gpio_get_value'
include/asm-generic/gpio.h: In function 'gpio_set_value_cansleep':
include/asm-generic/gpio.h:218: error: implicit declaration of function '__gpio_set_value'
make[1]: *** [arch/arm/mach-ixp4xx/nslu2-setup.o] Error 1

Richard



More information about the linux-arm-kernel mailing list