Skip to contentSkip to conversation

kqemu: include linux/sched.h

PATCH New Pavel Roskin 1 participant 1 message Jun 25, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kqemu: include linux/sched.h

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 +1 -0
@@ -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>
Signature · 2 lines
Regards,
Pavel Roskin