* 2.6.22-rc2 prepatch breaks compile on Dreamcast
@ 2007-05-19 12:07 Adrian McMenamin
2007-05-21 6:11 ` Paul Mundt
0 siblings, 1 reply; 2+ messages in thread
From: Adrian McMenamin @ 2007-05-19 12:07 UTC (permalink / raw)
To: linuxsh-dev; +Cc: Andrew Morton, Paul Mundt, LKML
The patch includes:
-#if OFFCHIP_NR_IRQS > 0
-# define OFFCHIP_IRQ_BASE (ONCHIP_NR_IRQS + PINT_NR_IRQS)
-#endif
but the OFFCHIP_IRQ_BASE symbol is still referenced in the Dreamcast
code, so a compile generates this:
arch/sh/boards/dreamcast/irq.c: In function `disable_systemasic_irq':
arch/sh/boards/dreamcast/irq.c:59: error: `OFFCHIP_IRQ_BASE' undeclared
(first use in this function)
arch/sh/boards/dreamcast/irq.c:59: error: (Each undeclared identifier is
reported only once
arch/sh/boards/dreamcast/irq.c:59: error: for each function it appears
in.)
arch/sh/boards/dreamcast/irq.c: In function `enable_systemasic_irq':
arch/sh/boards/dreamcast/irq.c:70: error: `OFFCHIP_IRQ_BASE' undeclared
(first use in this function)
arch/sh/boards/dreamcast/irq.c: In function `ack_systemasic_irq':
arch/sh/boards/dreamcast/irq.c:81: error: `OFFCHIP_IRQ_BASE' undeclared
(first use in this function)
arch/sh/boards/dreamcast/irq.c: In function `systemasic_irq_demux':
arch/sh/boards/dreamcast/irq.c:146: error: `OFFCHIP_IRQ_BASE' undeclared
(first use in this function)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 2.6.22-rc2 prepatch breaks compile on Dreamcast
2007-05-19 12:07 2.6.22-rc2 prepatch breaks compile on Dreamcast Adrian McMenamin
@ 2007-05-21 6:11 ` Paul Mundt
0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2007-05-21 6:11 UTC (permalink / raw)
To: Adrian McMenamin; +Cc: linuxsh-dev, Andrew Morton, LKML
On Sat, May 19, 2007 at 01:07:00PM +0100, Adrian McMenamin wrote:
> The patch includes:
>
> -#if OFFCHIP_NR_IRQS > 0
> -# define OFFCHIP_IRQ_BASE (ONCHIP_NR_IRQS + PINT_NR_IRQS)
> -#endif
>
>
> but the OFFCHIP_IRQ_BASE symbol is still referenced in the Dreamcast
> code, so a compile generates this:
>
This will fix it, queued for -rc3:
diff --git a/include/asm-sh/dreamcast/sysasic.h b/include/asm-sh/dreamcast/sysasic.h
index 7874e3d..f334266 100644
--- a/include/asm-sh/dreamcast/sysasic.h
+++ b/include/asm-sh/dreamcast/sysasic.h
@@ -23,7 +23,7 @@
takes.
*/
-#define HW_EVENT_IRQ_BASE OFFCHIP_IRQ_BASE /* 48 */
+#define HW_EVENT_IRQ_BASE 48
/* IRQ 13 */
#define HW_EVENT_VSYNC (HW_EVENT_IRQ_BASE + 5) /* VSync */
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-23 0:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-19 12:07 2.6.22-rc2 prepatch breaks compile on Dreamcast Adrian McMenamin
2007-05-21 6:11 ` Paul Mundt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox