Skip to contentSkip to conversation

fs/read_write.c: make __vfs_write() static

PATCH Superseded Eric Biggers 1 participant 1 message Nov 15, 2018 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/read_write.c: make __vfs_write() static

From: Eric Biggers <[email protected]>

__vfs_write() is only used in fs/read_write.c, so make it static.

This addresses a gcc warning when -Wmissing-prototypes is enabled.

---
 fs/read_write.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/read_write.c +2 -2
index bfcb4ced5664c..284fff29d089a 100644
@@ -478,8 +478,8 @@ static ssize_t new_sync_write(struct file *filp, const char __user *buf, size_t
 	return ret;
 }
 
-ssize_t __vfs_write(struct file *file, const char __user *p, size_t count,
-		    loff_t *pos)
+static ssize_t __vfs_write(struct file *file, const char __user *p,
+			   size_t count, loff_t *pos)
 {
 	if (file->f_op->write)
 		return file->f_op->write(file, p, count, pos);
Signature · 1 line
2.19.1.930.g4563a0d9d0-goog