drivers/misc/pti.c: add missing includes
authorSergei Trofimovich <[email protected]>
Thu, 25 Aug 2011 22:59:01 +0000 (15:59 -0700)
committerLinus Torvalds <[email protected]>
Thu, 25 Aug 2011 23:25:33 +0000 (16:25 -0700)
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 <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: J Freyensee <[email protected]>
Cc: Jeremy Rocher <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/misc/pti.c

index 8653bd0b1a33ca68b541c8161338ce8ee9e5357d..06df1877ad0f457091d5430768ec8b9a3c5f7a9f 100644 (file)
@@ -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"