qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Build error on Linux-2.6.25
@ 2008-05-08 16:11 Hitoshi Mitake
  0 siblings, 0 replies; only message in thread
From: Hitoshi Mitake @ 2008-05-08 16:11 UTC (permalink / raw)
  To: qemu-devel

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>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-05-08 16:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-08 16:11 [Qemu-devel] [PATCH] Build error on Linux-2.6.25 Hitoshi Mitake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).