From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KBeGX-0007fo-GQ for qemu-devel@nongnu.org; Wed, 25 Jun 2008 19:19:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KBeGS-0007f9-1k for qemu-devel@nongnu.org; Wed, 25 Jun 2008 19:19:04 -0400 Received: from [199.232.76.173] (port=33168 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KBeGR-0007f5-VQ for qemu-devel@nongnu.org; Wed, 25 Jun 2008 19:19:00 -0400 Received: from c60.cesmail.net ([216.154.195.49]:37019) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1KBeGR-0003Pv-Lh for qemu-devel@nongnu.org; Wed, 25 Jun 2008 19:18:59 -0400 Received: from [192.168.0.21] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by relay.cesmail.net (Postfix) with ESMTP id A6F0C618F23 for ; Wed, 25 Jun 2008 19:18:58 -0400 (EDT) From: Pavel Roskin Content-Type: text/plain; charset=UTF-8 Date: Wed, 25 Jun 2008 19:18:57 -0400 Message-Id: <1214435937.14340.11.camel@dv> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH] kqemu: include linux/sched.h Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 #include #include +#include #include #include #include -- Regards, Pavel Roskin