Skip to contentSkip to conversation

vfs: Make __vfs_write() static

PATCH In review Geert Uytterhoeven 2 participants 2 messages Feb 20, 2019 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vfs: Make __vfs_write() static

__vfs_write() was unexported, and removed from <linux/fs.h>, but forgotten to be made static.

Fixes eb031849d52e61d2 ("fs: unexport __vfs_read/__vfs_write")
---
 fs/read_write.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/read_write.c +2 -2
index ff3c5e6f87cfaa7c..4b328e45db36682a 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.17.1