Build error on Linux-2.6.25
PATCH 1/1 Build error on Linux-2.6.25
Hello.
I tried to build kqemu-1.3.0pre11 on Linux 2.6.25, but it was failed. Detail of error is,
CC [M] /home/mtk/src/kqemu-1.3.0pre11/kqemu-linux.o/home/mtk/src/kqemu-1.3.0pre11/kqemu-linux.c: In function 'kqemu_lock_user_page':/home/mtk/src/kqemu-1.3.0pre11/kqemu-linux.c:81: error: dereferencing pointer to incomplete type /home/mtk/src/kqemu-1.3.0pre11/kqemu-linux.c: In function 'kqemu_schedule':/home/mtk/src/kqemu-1.3.0pre11/kqemu-linux.c:194: error: implicit declaration of function 'need_resched' /home/mtk/src/kqemu-1.3.0pre11/kqemu-linux.c:195: error: implicit declaration of function 'schedule' /home/mtk/src/kqemu-1.3.0pre11/kqemu-linux.c:197: error: implicit declaration of function 'signal_pending'
Prototype of these functions in error message is in linux/sched.h now. This patch fixes the problem. Changing is adding one include line only :)
If this build error problem is not solved or detected yet, please use.
kqemu-linux.c +1 -0
@@ -26,6 +26,7 @@#include <linux/ioctl.h> #include <linux/smp_lock.h> #include <linux/miscdevice.h> +#include <linux/sched.h> #include <asm/atomic.h> #include <asm/processor.h> #include <asm/uaccess.h>