[PATCH -mmotm] synchro-test: add missing header file

From: Randy Dunlap
Date: Fri Oct 09 2009 - 19:13:06 EST


From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>

Fix build errors, add <sched.h> header file:

kernel/synchro-test.c: In function 'sched':
kernel/synchro-test.c:220: error: implicit declaration of function 'schedule'
kernel/synchro-test.c: In function 'mutexer':
kernel/synchro-test.c:227: error: implicit declaration of function 'daemonize'
kernel/synchro-test.c:228: error: implicit declaration of function 'set_user_nice'
kernel/synchro-test.c:241: error: dereferencing pointer to incomplete type
kernel/synchro-test.c: In function 'semaphorer':
kernel/synchro-test.c:263: error: dereferencing pointer to incomplete type
kernel/synchro-test.c: In function 'reader':
kernel/synchro-test.c:287: error: dereferencing pointer to incomplete type
kernel/synchro-test.c: In function 'writer':
kernel/synchro-test.c:311: error: dereferencing pointer to incomplete type
kernel/synchro-test.c: In function 'downgrader':
kernel/synchro-test.c:340: error: dereferencing pointer to incomplete type

Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
---
kernel/synchro-test.c | 1 +
1 file changed, 1 insertion(+)

--- mmotm-2009-1009-0107.orig/kernel/synchro-test.c
+++ mmotm-2009-1009-0107/kernel/synchro-test.c
@@ -21,6 +21,7 @@
#include <linux/module.h>
#include <linux/poll.h>
#include <linux/moduleparam.h>
+#include <linux/sched.h>
#include <linux/stat.h>
#include <linux/init.h>
#include <asm/atomic.h>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/