Re: [PATCH] pti: fix build failure

From: J Freyensee
Date: Mon Aug 15 2011 - 12:35:19 EST


On 08/14/2011 01:52 PM, Sergei Trofimovich wrote:
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@xxxxxxxxxx>
Cc: Greg Kroah-Hartman<gregkh@xxxxxxx>
Cc: J Freyensee<james_p_freyensee@xxxxxxxxxxxxxxx>
Cc: Jeremy Rocher<rocher.jeremy@xxxxxxxxx>
---
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>

Thanks for the patch fix, but a patch was emailed to Greg KH on 08/02/2011 fixing this:

http://marc.info/?l=linux-next&m=131016084730837&w=2


#define DRIVERNAME "pti"
#define PCINAME "pciPTI"


--
J (James/Jay) Freyensee
Storage Technology Group
Intel Corporation
--
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/