[PATCH] fs: fix compile error
lingfuyi
lingfuyi at 126.com
Mon Dec 19 18:49:11 PST 2022
From: lingfuyi <lingfuyi at kylinos.cn>
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 at kylinos.cn>
---
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
More information about the linux-afs
mailing list