qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] kqemu: include linux/sched.h
@ 2008-06-25 23:18 Pavel Roskin
  0 siblings, 0 replies; only message in thread
From: Pavel Roskin @ 2008-06-25 23:18 UTC (permalink / raw)
  To: qemu-devel

Hello!

Both kqemu-1.3.0pre11 and kqemu-1.4.0pre1 fail to compile for Linux
2.6.26-rc6.

kqemu-linux.c doesn't include linux/sched.h, but uses some functions
from it, such as need_resched().  The problem is only seen in the
uniprocessor configuration.  On SMP, linux/sched.h is included
indirectly from other include files.

linux/sched.h is not a new file.  It exists even in Linux 2.4.0, so it
should be fine to include it unconditionally.

Please apply to both kqemu-1.3.0pre11 and kqemu-1.4.0pre1

--- kqemu-linux.c
+++ kqemu-linux.c
@@ -21,6 +21,7 @@
 #include <linux/errno.h>
 #include <linux/fs.h>
 #include <linux/mm.h>
+#include <linux/sched.h>
 #include <linux/proc_fs.h>
 #include <linux/version.h>
 #include <linux/ioctl.h>


-- 
Regards,
Pavel Roskin

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

only message in thread, other threads:[~2008-06-25 23:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-25 23:18 [Qemu-devel] [PATCH] kqemu: include linux/sched.h Pavel Roskin

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).