Browse Source

drivers:staging:android:ashmem: Changing return type from int to loff_t

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>
Rohit Kumar 7 years ago
parent
commit
44f6893672
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/staging/android/ashmem.c

+ 1 - 1
drivers/staging/android/ashmem.c

@@ -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);