[patch 17/18] net/rfkill/rfkill-input.c needs

Geert Uytterhoeven
2008-10-13T20:05:43Z

[-- Attachment #1: net-rfkill-rfkill-input-c-needs-linux-sched-h.diff --]
[-- Type: text/plain, Size: 964 bytes --]

From: Geert Uytterhoeven <geert@linux-m68k.org>

For some m68k configs, I get:

| net/rfkill/rfkill-input.c: In function 'rfkill_start':
| net/rfkill/rfkill-input.c:208: error: dereferencing pointer to incomplete type

As the incomplete type is `struct task_struct', including <linux/sched.h> fixes
it.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
net/rfkill/rfkill-input.c | 1 +
1 file changed, 1 insertion(+)

--- a/net/rfkill/rfkill-input.c
+++ b/net/rfkill/rfkill-input.c
@@ -16,6 +16,7 @@
#include <linux/workqueue.h>
#include <linux/init.h>
#include <linux/rfkill.h>
+#include <linux/sched.h>

#include "rfkill-input.h"