Skip to contentSkip to conversation

Problems compiling r600 for PPC

Xenomai-core Niklaus Giger 2 participants 2 messages Feb 25, 2006 – Feb 26, 2006

lore
Share & tools
lore
#0 lore raw

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:

skins/rtdm/drvlib.c (working copy) renamed from skins/rtdm/drvlib.c (revision 600) +1 -0
Index: ksrc/skins/rtdm/drvlib.c
===================================================================
@@ -31,6 +31,7 @@
 
 
 #include <linux/delay.h>
+#include <asm/io.h>
 #include <linux/mman.h>
 
 #include <rtdm/rtdm_driver.h>

Best regards

Signature · 1 line
Niklaus Giger
#1 lore raw
Quoted 9 lines · Niklaus Giger

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

Quoted 6 lines

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?

Looks reasonable. It's fixed now, thanks for reporting.

Jan