Skip to contentSkip to conversation

fs: fix compile error

PATCH New lingfuyi 1 participant 1 message Dec 20, 2022 Afs filesystem

lore
Share & tools
lore

lingfuyi

author
#0 lore raw

PATCH 1/1 fs: fix compile error

From: lingfuyi <[email protected]>

fix compile error like this:
fs/afs/dir.c:52:1: error: no return statement in function returning non-void

[-Werror=return-type]
---
 fs/afs/dir.c | 1 +
 1 file changed, 1 insertion(+)
fs/afs/dir.c +1 -0
index 104df2964225..d4ea307dc312 100644
@@ -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 = {
Signature · 1 line
2.20.1