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