[PATCH 04/14] fs: let dir_emit_dots return int

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Change to the same prototype as the kernel to make code porting
easier.

Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
---
 include/linux/fs.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/linux/fs.h b/include/linux/fs.h
index 4550e8feeb..0c91434039 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -426,7 +426,7 @@ static inline bool dir_emit_dotdot(struct file *file, struct dir_context *ctx)
 			parent_ino(file->f_path.dentry), DT_DIR) == 0;
 }
 
-static inline void dir_emit_dots(struct file *file, struct dir_context *ctx)
+static inline int dir_emit_dots(struct file *file, struct dir_context *ctx)
 {
 	if (ctx->pos == 0) {
 		dir_emit_dot(file, ctx);
@@ -436,6 +436,7 @@ static inline void dir_emit_dots(struct file *file, struct dir_context *ctx)
 		dir_emit_dotdot(file, ctx);
 		ctx->pos = 2;
 	}
+	return true;
 }
 
 struct file_operations {
-- 
2.19.0


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux