serial: max310x: Add missing #include <linux/uaccess.h>
authorGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 12 Mar 2014 14:01:54 +0000 (15:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Mar 2014 23:13:23 +0000 (16:13 -0700)
cris allmodconfig:

drivers/tty/serial/max310x.c: In function 'max310x_ioctl':
drivers/tty/serial/max310x.c:885:3: error: implicit declaration of function 'copy_from_user' [-Werror=implicit-function-declaration]
drivers/tty/serial/max310x.c:916:3: error: implicit declaration of function 'copy_to_user' [-Werror=implicit-function-declaration]

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/max310x.c

index 471dbc1e2b58e768eb36624603cb1b841f33651c..2a99d0c61b9e6699de55161c334f07bb469654e2 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/tty.h>
 #include <linux/tty_flip.h>
 #include <linux/spi/spi.h>
+#include <linux/uaccess.h>
 
 #define MAX310X_NAME                   "max310x"
 #define MAX310X_MAJOR                  204