Skip to content

Commit 06ed462

Browse files
Sergei Trofimovichtorvalds
authored andcommitted
drivers/misc/pti.c: add missing includes
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@gentoo.org> Cc: Greg Kroah-Hartman <gregkh@suse.de> Cc: J Freyensee <james_p_freyensee@linux.intel.com> Cc: Jeremy Rocher <rocher.jeremy@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent b4ca46e commit 06ed462

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/misc/pti.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
#include <linux/mutex.h>
3434
#include <linux/miscdevice.h>
3535
#include <linux/pti.h>
36+
#include <linux/slab.h>
37+
#include <linux/uaccess.h>
3638

3739
#define DRIVERNAME "pti"
3840
#define PCINAME "pciPTI"

0 commit comments

Comments
 (0)