lkml.org 
[lkml]   [2022]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] fs: fix compile error
Date
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
\
 
 \ /
  Last update: 2023-03-26 23:15    [W:0.030 / U:0.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site