summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2014-03-12 15:01:54 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-18 00:13:23 +0100
commit58dea3577c5b7a88a989a511d7bc16514647f472 (patch)
treefbd7a67e6c4c5713fe82fc0c05a539c4a218d4d0
parentsynclink: fix info leak in ioctl (diff)
downloadlinux-58dea3577c5b7a88a989a511d7bc16514647f472.tar.xz
linux-58dea3577c5b7a88a989a511d7bc16514647f472.zip
serial: max310x: Add missing #include <linux/uaccess.h>
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>
-rw-r--r--drivers/tty/serial/max310x.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/serial/max310x.c b/drivers/tty/serial/max310x.c
index 471dbc1e2b58..2a99d0c61b9e 100644
--- a/drivers/tty/serial/max310x.c
+++ b/drivers/tty/serial/max310x.c
@@ -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