Subject: [PATCH] PTI implicit declaration fix.

From: [email-masked]
Date: Fri, 8 Jul 2011 14:34:11 -0700

From: J Freyensee <[email-masked]>

In a certain compile configuration, functions like
'kmalloc' and 'copy_from_user' were coming up as
implicit errors.  This patch adds slab.h and
uaccess.h to the driver.

Reported-by: Geert Uytterhoeven <[email-masked]>
Acked-by: Geert Uytterhoeven <[email-masked]>
Signed-off-by: J Freyensee <[email-masked]>
---
 drivers/misc/pti.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/misc/pti.c b/drivers/misc/pti.c
index 8653bd0..4ba4e5f 100644
--- a/drivers/misc/pti.c
+++ b/drivers/misc/pti.c
@@ -22,6 +22,8 @@
  */
 
 #include <linux/init.h>
+#include <linux/slab.h>
+#include <linux/uaccess.h>
 #include <linux/sched.h>
 #include <linux/interrupt.h>
 #include <linux/console.h>
-- 
1.7.0.4