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

From: Ingo Molnar
Date: Mon Oct 12 2009 - 10:24:52 EST


Fix:

drivers/char/sonypi.c: In function âsonypi_irqâ:
drivers/char/sonypi.c:883: error: âSIGIOâ undeclared (first use in this function)
drivers/char/sonypi.c:883: error: (Each undeclared identifier is reported only once
drivers/char/sonypi.c:883: error: for each function it appears in.)
drivers/char/sonypi.c:883: error: âPOLL_INâ undeclared (first use in this function)
drivers/char/sonypi.c:884: error: âTASK_INTERRUPTIBLEâ undeclared (first use in this function)
drivers/char/sonypi.c: In function âsonypi_misc_readâ:
drivers/char/sonypi.c:925: error: âTASK_INTERRUPTIBLEâ undeclared (first use in this function)
drivers/char/sonypi.c:925: error: implicit declaration of function âsignal_pendingâ
drivers/char/sonypi.c:925: error: implicit declaration of function âscheduleâ

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

diff --git a/drivers/char/sonypi.c b/drivers/char/sonypi.c
index fd3dced..8c262aa 100644
--- a/drivers/char/sonypi.c
+++ b/drivers/char/sonypi.c
@@ -36,6 +36,7 @@
*/

#include <linux/module.h>
+#include <linux/sched.h>
#include <linux/input.h>
#include <linux/pci.h>
#include <linux/init.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/