Hi everybody

I had the following problem building the kernel:
kernel/built-in.o: In function 
`rtdm_mmap_buffer':/mnt/data.ng/hcu/kernel/ppc/linux-2.6.14/kernel/xenomai/skins/rtdm/drvlib.c:1386:
 
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
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core

Reply via email to