From: "Hitoshi Mitake" <h.mitake@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] Build error on Linux-2.6.25
Date: Fri, 9 May 2008 01:11:02 +0900 [thread overview]
Message-ID: <a6b9f31a0805080911m7fd497cu37180f19c406fcac@mail.gmail.com> (raw)
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>
reply other threads:[~2008-05-08 16:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a6b9f31a0805080911m7fd497cu37180f19c406fcac@mail.gmail.com \
--to=h.mitake@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).