lkml.org 
[lkml]   [2011]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] PTI implicit declaration fix.
Date
From: J Freyensee <james_p_freyensee@linux.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@linux-m68k.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: J Freyensee <james_p_freyensee@linux.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


\
 
 \ /
  Last update: 2011-07-08 23:37    [W:0.038 / U:27.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site