[origin tree build failure] [PATCH] headers: Fix build indrivers/char/genrtc.c

From: Ingo Molnar
Date: Mon Oct 12 2009 - 06:08:32 EST


Fix:

drivers/char/genrtc.c: In function âgen_rtc_interruptâ:
drivers/char/genrtc.c:168: error: âTASK_INTERRUPTIBLEâ undeclared (first use in this function)
drivers/char/genrtc.c:168: error: (Each undeclared identifier is reported only once
drivers/char/genrtc.c:168: error: for each function it appears in.)
drivers/char/genrtc.c:186: error: âTASK_INTERRUPTIBLEâ undeclared (first use in this function)
drivers/char/genrtc.c:186: error: implicit declaration of function âsignal_pendingâ
drivers/char/genrtc.c:186: error: implicit declaration of function âscheduleâ

Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
---
drivers/char/genrtc.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/char/genrtc.c b/drivers/char/genrtc.c
index aac0985..31e7c91 100644
--- a/drivers/char/genrtc.c
+++ b/drivers/char/genrtc.c
@@ -43,6 +43,7 @@
#define RTC_VERSION "1.07"

#include <linux/module.h>
+#include <linux/sched.h>
#include <linux/errno.h>
#include <linux/miscdevice.h>
#include <linux/fcntl.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/