From: John Stultz Date: Wed, 29 Jan 2014 21:00:51 +0000 (-0800) Subject: staging: ion: Build fix for compat_ion.c X-Git-Tag: firefly_0821_release~4090^2~402 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d4e564429cb89a90b9d5482af884b0b6a85aa284;p=firefly-linux-kernel-4.4.55.git staging: ion: Build fix for compat_ion.c compat_get_ion_handle_data is missing a declaration for the return value. This patch simply adds it, so things build. Change-Id: I1a72a3c56975dc614322a63852f2a6554f2be107 Signed-off-by: John Stultz --- diff --git a/drivers/staging/android/ion/compat_ion.c b/drivers/staging/android/ion/compat_ion.c index fb0ebddbba2b..a5e8c408fd78 100644 --- a/drivers/staging/android/ion/compat_ion.c +++ b/drivers/staging/android/ion/compat_ion.c @@ -74,6 +74,7 @@ static int compat_get_ion_handle_data( struct ion_handle_data __user *data) { compat_int_t i; + int err; err = get_user(i, &data32->handle); err |= put_user(i, &data->handle);