[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1313355177-12605-1-git-send-email-slyfox@gentoo.org>
Date: Sun, 14 Aug 2011 23:52:51 +0300
From: Sergei Trofimovich <slyfox@...too.org>
To: linux-kernel@...r.kernel.org
Cc: Sergei Trofimovich <slyfox@...too.org>,
Greg Kroah-Hartman <gregkh@...e.de>,
J Freyensee <james_p_freyensee@...ux.intel.com>,
Jeremy Rocher <rocher.jeremy@...il.com>
Subject: [PATCH] pti: fix build failure
Found on allmodconfig build (ARCH=alpha)
drivers/misc/pti.c: In function 'get_id':
drivers/misc/pti.c:249: error: implicit declaration of function 'kmalloc'
drivers/misc/pti.c: In function 'pti_char_write':
drivers/misc/pti.c:658: error: implicit declaration of function 'copy_from_user'
Signed-off-by: Sergei Trofimovich <slyfox@...too.org>
Cc: Greg Kroah-Hartman <gregkh@...e.de>
Cc: J Freyensee <james_p_freyensee@...ux.intel.com>
Cc: Jeremy Rocher <rocher.jeremy@...il.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..06df187 100644
--- a/drivers/misc/pti.c
+++ b/drivers/misc/pti.c
@@ -33,6 +33,8 @@
#include <linux/mutex.h>
#include <linux/miscdevice.h>
#include <linux/pti.h>
+#include <linux/slab.h>
+#include <linux/uaccess.h>
#define DRIVERNAME "pti"
#define PCINAME "pciPTI"
--
1.7.3.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