Fix for sparc64 irq.c compile error

Sven Hartge <[email protected]>
Newsgroups gmane.linux.ports.ultrapenguin
Message-ID <[email protected]>
Hello.

Please excuse me for contacting you so bluntly, but after some hours of 
debugging, I feel the need to contribute my little patch, in the hope it 
is somewhat helpful.

The problem: On sparc64, arch/sparc64/kernel/irq.c is missing the 
inclusion of asm/io.h, which causes readb() and writeb() to be undefined. 
Please see the attached patch for the correction.

This should also go into the -stable-series.

Grüße,
Sven Hartge

-- 
Sven Hartge -- professioneller Unix-Geek
Meine Gedanken im Netz: http://sven.formvision.de/blog/
fix_sparc64_irq_c.patch (text/plain, 515 B)
[SPARC64]: Fix compile error in irq.c

irq.c is missing the inclusion of asm/io.h, which causes
readb() and writeb() the be undefined.

Signed-off-by: Sven Hartge <[email protected]>

diff --git a/arch/sparc64/kernel/irq.c b/arch/sparc64/kernel/irq.c
--- a/arch/sparc64/kernel/irq.c
+++ b/arch/sparc64/kernel/irq.c
@@ -27,6 +27,7 @@
 #include <asm/atomic.h>
 #include <asm/system.h>
 #include <asm/irq.h>
+#include <asm/io.h>
 #include <asm/sbus.h>
 #include <asm/iommu.h>
 #include <asm/upa.h>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.