]> git.karo-electronics.de Git - karo-tx-linux.git/commit
greybus: raw: include uaccess.h to fix warning
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 20 May 2015 11:01:19 +0000 (16:31 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 21 May 2015 05:36:03 +0000 (22:36 -0700)
commit4f8ab1105da2f13ae52dc2f2c31fb7bea1301793
treeb6060db81035e6f393d4646d0d1370bc0860507e
parente806c7fb8e9bae87fc23958c3789f2c2f96f54a4
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>
drivers/staging/greybus/raw.c