Skip to contentSkip to conversation

CRIS architecture: Correct compile errors

PATCH In review Jesper Nilsson 2 participants 2 messages Oct 30, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 4/16 CRIS architecture: Correct compile errors

Include asm/irq.h to avoid undefined value warning.

---
 hardirq.h |    1 +
 1 file changed, 1 insertion(+)
include/asm-cris/hardirq.h +1 -0
diff -urBb -X /h/jespern/.exclude_files clean_linux-2.6.23/include/asm-cris/hardirq.h linux-2.6.23/include/asm-cris/hardirq.h
@@ -1,6 +1,7 @@
 #ifndef __ASM_HARDIRQ_H
 #define __ASM_HARDIRQ_H
 
+#include <asm/irq.h>
 #include <linux/threads.h>
 #include <linux/cache.h>
 

/^JN - Jesper Nilsson
--
Jesper Nilsson -- [email protected]

#1 lore raw
Quoted 3 lines · On Tue, 30 Oct 2007 10:30:00 +0100 Jesper Nilsson <[email protected]>…

Include asm/irq.h to avoid undefined value warning.

When fixing build errors or warnings please always always quote the compiler output so that we can see what you're actually fixing. Saying "undefined value warning" is pretty useless.

When quoting gcc output, please ensure that LANG=C was set - otherwise gcc will emit utf gobbledigook which basically never makes it through the system unscathed.

include/asm-cris/hardirq.h line 7

Quoted 11 lines

diff -urBb -X /h/jespern/.exclude_files clean_linux-2.6.23/include/asm-cris/hardirq.h linux-2.6.23/include/asm-cris/hardirq.h

include/asm-cris/hardirq.h +1 -0
@@ -1,6 +1,7 @@
 #ifndef __ASM_HARDIRQ_H
 #define __ASM_HARDIRQ_H
 
+#include <asm/irq.h>
 #include <linux/threads.h>
 #include <linux/cache.h>
 

hrm, OK. Not linux/irq.h? I guess not, as cris doesn't appear to support CONFIG_GENERIC_HARDIRQS.