diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-05-20 16:31:19 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-05-20 22:36:03 -0700 |
commit | 4f8ab1105da2f13ae52dc2f2c31fb7bea1301793 (patch) | |
tree | b6060db81035e6f393d4646d0d1370bc0860507e /drivers/staging/greybus/raw.c | |
parent | e806c7fb8e9bae87fc23958c3789f2c2f96f54a4 (diff) | |
download | op-kernel-dev-4f8ab1105da2f13ae52dc2f2c31fb7bea1301793.zip op-kernel-dev-4f8ab1105da2f13ae52dc2f2c31fb7bea1301793.tar.gz |
greybus: raw: include uaccess.h to fix warning
This is what I get over mainline:
greybus/raw.c: In function 'gb_raw_send':
greybus/raw.c:153:2: error: implicit declaration of function 'copy_from_user' [-Werror=implicit-function-declaration]
if (copy_from_user(&request->data[0], data, len)) {
^
greybus/raw.c: In function 'raw_read':
greybus/raw.c:305:2: error: implicit declaration of function 'copy_to_user' [-Werror=implicit-function-declaration]
if (copy_to_user(buf, &raw_data->data[0], raw_data->len)) {
^
Fix this by including uaccess.h.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/raw.c')
-rw-r--r-- | drivers/staging/greybus/raw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/raw.c b/drivers/staging/greybus/raw.c index eb43acc..515c187 100644 --- a/drivers/staging/greybus/raw.c +++ b/drivers/staging/greybus/raw.c @@ -13,6 +13,7 @@ #include <linux/cdev.h> #include <linux/fs.h> #include <linux/idr.h> +#include <linux/uaccess.h> #include "greybus.h" |