* [2.6 patch] include/asm-xtensa/io.h must #include <asm/page.h>
@ 2007-07-07 8:31 Adrian Bunk
0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2007-07-07 8:31 UTC (permalink / raw)
To: chris; +Cc: linux-kernel
This patch fixes the following compile error with
-Werror-implicit-function-declaration:
<-- snip -->
...
CC kernel/time/clocksource.o
In file included from
/home/bunk/linux/kernel-2.6/linux-2.6.22-rc6-mm1/include/linux/clocksource.h:18,
from
/home/bunk/linux/kernel-2.6/linux-2.6.22-rc6-mm1/kernel/time/clocksource.c:27:
include2/asm/io.h: In function 'virt_to_phys':
include2/asm/io.h:46: error: implicit declaration of function '__pa'
include2/asm/io.h: In function 'phys_to_virt':
include2/asm/io.h:51: error: implicit declaration of function '__va'
include2/asm/io.h:51: warning: return makes pointer from integer without a cast
make[3]: *** [kernel/time/clocksource.o] Error 1
<-- snip -->
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
--- linux-2.6.22-rc6-mm1/include/asm-xtensa/io.h.old 2007-07-07 10:16:54.000000000 +0200
+++ linux-2.6.22-rc6-mm1/include/asm-xtensa/io.h 2007-07-07 10:17:08.000000000 +0200
@@ -13,6 +13,7 @@
#ifdef __KERNEL__
#include <asm/byteorder.h>
+#include <asm/page.h>
#include <linux/types.h>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-07 8:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-07 8:31 [2.6 patch] include/asm-xtensa/io.h must #include <asm/page.h> Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox