[PATCH -next] fs: Fix build error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The following build error report:
fs/overlayfs/file.c: In function ‘ovl_file_end_write’:
fs/overlayfs/file.c:292:51: error: parameter name omitted
  292 | static void ovl_file_end_write(struct file *file, loff_t, ssize_t)
      |                                                   ^~~~~~
fs/overlayfs/file.c:292:59: error: parameter name omitted
  292 | static void ovl_file_end_write(struct file *file, loff_t, ssize_t)
                                                                  ^~~~~~~

Fixes: 291f180e5929 ("fs: pass offset and result to backing_file end_write() callback")
Signed-off-by: Zheng Zucheng <zhengzucheng@xxxxxxxxxx>
---
 fs/overlayfs/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/overlayfs/file.c b/fs/overlayfs/file.c
index 70df61d5e95a..faeac5842694 100644
--- a/fs/overlayfs/file.c
+++ b/fs/overlayfs/file.c
@@ -289,7 +289,7 @@ static void ovl_file_modified(struct file *file)
 	ovl_copyattr(file_inode(file));
 }
 
-static void ovl_file_end_write(struct file *file, loff_t, ssize_t)
+static void ovl_file_end_write(struct file *file, loff_t pos, ssize_t ret)
 {
 	ovl_file_modified(file);
 }
-- 
2.34.1





[Index of Archives]     [Linux Filesystems Devel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux