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>
#define DRIVERNAME "pti"
#define PCINAME "pciPTI"