drivers:staging:android:ashmem: Changing return type from int to loff_t
authorRohit Kumar <rohit12techie@gmail.com>
Thu, 15 Mar 2018 19:38:59 +0000 (01:08 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Mar 2018 18:43:24 +0000 (19:43 +0100)
Changing return type from int to loff_t. Actual return type of the
function (vfs_llseek) is loff_t (long long). Here due to implicit
converion from long long to int, result will be implementation defined.

Signed-off-by: Rohit Kumar <rohit12techie@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ashmem.c

index 86580b6..a1a0025 100644 (file)
@@ -321,7 +321,7 @@ out_unlock:
 static loff_t ashmem_llseek(struct file *file, loff_t offset, int origin)
 {
        struct ashmem_area *asma = file->private_data;
-       int ret;
+       loff_t ret;
 
        mutex_lock(&ashmem_mutex);