[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1310160851-26415-1-git-send-email-james_p_freyensee@linux.intel.com>
Date: Fri, 8 Jul 2011 14:34:11 -0700
From: james_p_freyensee@...ux.intel.com
To: linux-next@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, randy.dunlap@...cle.com,
sfr@...b.auug.org.au, christophe.guerard@...el.com,
pranav.k.sanghadia@...el.com, geert@...ux-m68k.org
Subject: [PATCH] PTI implicit declaration fix.
From: J Freyensee <james_p_freyensee@...ux.intel.com>
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 <geert@...ux-m68k.org>
Acked-by: Geert Uytterhoeven <geert@...ux-m68k.org>
Signed-off-by: J Freyensee <james_p_freyensee@...ux.intel.com>
---
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists