Re: irqnr fallout in gpiolib on sparc32

From: Ingo Molnar
Date: Mon Jan 05 2009 - 08:38:48 EST



* Sam Ravnborg <sam@xxxxxxxxxxxx> wrote:

> I hit the following build error on sparc:
>
> drivers/gpio/gpiolib.c: In function `gpiolib_dbg_show':
> drivers/gpio/gpiolib.c:1146: error: implicit declaration of function `irq_to_desc'
> drivers/gpio/gpiolib.c:1146: warning: initialization makes pointer from integer without a cast
>
>
> This is with an allmodconfig where I did:
>
> make ARCH=sparc vmlinux
>
> sparc do _not_ have GENERIC_HARDIRQS set to 'y'.
>
> I did a simple:
> #include <linux/irqnr.h> but that did not help.

yeah. Does the patch below do the trick?

btw., i'm curious, does the unification of the sparc architectures mean
that sparc32 will be using genirq too some time in the future?

Ingo

---------------->