Problems compiling r600 for PPC
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
@@ -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
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>
inkernel/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