[PATCH] fs: fix compile error

From: lingfuyi
Date: Mon Dec 19 2022 - 22:21:50 EST


From: lingfuyi <lingfuyi@xxxxxxxxxx>

fix compile error like this:
fs/afs/dir.c:52:1: error: no return statement in function returning non-void
[-Werror=return-type]
Signed-off-by: lingfuyi <lingfuyi@xxxxxxxxxx>
---
fs/afs/dir.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/fs/afs/dir.c b/fs/afs/dir.c
index 104df2964225..d4ea307dc312 100644
--- a/fs/afs/dir.c
+++ b/fs/afs/dir.c
@@ -49,6 +49,7 @@ static bool afs_dir_dirty_folio(struct address_space *mapping,
struct folio *folio)
{
BUG(); /* This should never happen. */
+ return true;
}

const struct file_operations afs_dir_file_operations = {
--
2.20.1