* [PATCH] fs: fix compile error
@ 2022-12-20 2:49 lingfuyi
0 siblings, 0 replies; only message in thread
From: lingfuyi @ 2022-12-20 2:49 UTC (permalink / raw)
To: dhowells, marc.dionne; +Cc: linux-afs, linux-kernel, lingfuyi
From: lingfuyi <lingfuyi@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@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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-12-20 3:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-20 2:49 [PATCH] fs: fix compile error lingfuyi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).