[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Build error on Linux-2.6.25
From: |
Hitoshi Mitake |
Subject: |
[Qemu-devel] [PATCH] Build error on Linux-2.6.25 |
Date: |
Fri, 9 May 2008 01:11:02 +0900 |
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.
diff -Naur kqemu-1.3.0pre11.orig/kqemu-linux.c kqemu-1.3.0pre11/kqemu-linux.c
--- kqemu-1.3.0pre11.orig/kqemu-linux.c 2007-02-07 06:02:00.000000000 +0900
+++ kqemu-1.3.0pre11/kqemu-linux.c 2008-05-09 00:56:45.536370752 +0900
@@ -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>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] Build error on Linux-2.6.25,
Hitoshi Mitake <=