Hi everybody

I had the following problem building the kernel:
kernel/built-in.o: In function 
undefined reference to `virt_to_phys'
make[1]: *** [.tmp_vmlinux1] Error 1
make: *** [_all] Error 2

Adding a 
#include <asm/io.h>
in kernel/xenomai/skins/rtdm/drvlib.c
fixed my compile problem. Is this the correct solution for the other 
architectures also?

svn diff was:
Index: ksrc/skins/rtdm/drvlib.c
--- ksrc/skins/rtdm/drvlib.c    (revision 600)
+++ ksrc/skins/rtdm/drvlib.c    (working copy)
@@ -31,6 +31,7 @@

 #include <linux/delay.h>
+#include <asm/io.h>
 #include <linux/mman.h>

 #include <rtdm/rtdm_driver.h>

Best regards

Niklaus Giger

Xenomai-core mailing list

Reply via email to