From d952795d8193c5a7a8eabdc14fab48777fdcd7c8 Mon Sep 17 00:00:00 2001 From: Jon Ringle Date: Fri, 25 Apr 2014 15:53:10 -0400 Subject: [PATCH] serial: sc16is7xx: fix implicit decl of func copy_{to,from}_user Fix by including linux/uaccess.h: drivers/tty/serial/sc16is7xx.c: In function 'sc16is7xx_ioctl': >> drivers/tty/serial/sc16is7xx.c:861:3: error: implicit declaration of function 'copy_from_user' [-Werror=implicit-function-declaration] >> drivers/tty/serial/sc16is7xx.c:867:3: error: implicit declaration of function 'copy_to_user' [-Werror=implicit-function-declaration] Signed-off-by: Jon Ringle Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/sc16is7xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c index ed139f5a6f74..7206a64f3ff7 100644 --- a/drivers/tty/serial/sc16is7xx.c +++ b/drivers/tty/serial/sc16is7xx.c @@ -25,6 +25,7 @@ #include #include #include +#include #define SC16IS7XX_NAME "sc16is7xx" -- 2.30.2