[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1494476049-16139-1-git-send-email-pushkar.iit@gmail.com>
Date: Thu, 11 May 2017 09:44:09 +0530
From: Pushkar Jambhlekar <pushkar.iit@...il.com>
To: Alexander Viro <viro@...iv.linux.org.uk>
Cc: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
Pushkar Jambhlekar <pushkar.iit@...il.com>
Subject: [PATCH] FS: Making aproriate return type
unsigned_offsets function returns fmode_t but function definition returns int. sparse generate warning.
Updating proper return type
Signed-off-by: Pushkar Jambhlekar <pushkar.iit@...il.com>
---
fs/read_write.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/read_write.c b/fs/read_write.c
index 47c1d44..d11eabc 100644
--- a/fs/read_write.c
+++ b/fs/read_write.c
@@ -33,7 +33,7 @@ const struct file_operations generic_ro_fops = {
EXPORT_SYMBOL(generic_ro_fops);
-static inline int unsigned_offsets(struct file *file)
+static inline fmode_t unsigned_offsets(struct file *file)
{
return file->f_mode & FMODE_UNSIGNED_OFFSET;
}
--
2.7.4
Powered by blists - more mailing lists