diff options
author | Jon Ringle <jringle@gridpoint.com> | 2014-04-25 21:53:10 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-04-25 22:22:41 +0200 |
commit | d952795d8193c5a7a8eabdc14fab48777fdcd7c8 (patch) | |
tree | 9ad4bf5cdfe921438d4759beb8c11019c03e763f /drivers/tty/serial | |
parent | serial: sc16is7xx: depend on I2C (diff) | |
download | linux-d952795d8193c5a7a8eabdc14fab48777fdcd7c8.tar.xz linux-d952795d8193c5a7a8eabdc14fab48777fdcd7c8.zip |
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 <jringle@gridpoint.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r-- | drivers/tty/serial/sc16is7xx.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 <linux/serial.h> #include <linux/tty.h> #include <linux/tty_flip.h> +#include <linux/uaccess.h> #define SC16IS7XX_NAME "sc16is7xx" |