aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/raw.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-05-20 16:31:19 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2015-05-20 22:36:03 -0700
commit4f8ab1105da2f13ae52dc2f2c31fb7bea1301793 (patch)
treeb6060db81035e6f393d4646d0d1370bc0860507e /drivers/staging/greybus/raw.c
parentgreybus: raw: add raw greybus kernel driver (diff)
downloadlinux-dev-4f8ab1105da2f13ae52dc2f2c31fb7bea1301793.tar.xz
linux-dev-4f8ab1105da2f13ae52dc2f2c31fb7bea1301793.zip
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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/raw.c b/drivers/staging/greybus/raw.c
index eb43acc91e66..515c1877bc7f 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"