qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Pavel Roskin <proski@gnu.org>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] kqemu: include linux/sched.h
Date: Wed, 25 Jun 2008 19:18:57 -0400	[thread overview]
Message-ID: <1214435937.14340.11.camel@dv> (raw)

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

                 reply	other threads:[~2008-06-25 23:19 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=1214435937.14340.11.camel@dv \
    --to=proski@gnu.org \
    --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).