The patch titled Subject: vfs: fix boolreturn.cocci warnings has been added to the -mm tree. Its filename is vfs-add-path_is_mountpoint-helper-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/vfs-add-path_is_mountpoint-helper-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/vfs-add-path_is_mountpoint-helper-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: kbuild test robot <fengguang.wu@xxxxxxxxx> Subject: vfs: fix boolreturn.cocci warnings fs/namespace.c:1185:9-10: WARNING: return of 0/1 in function 'path_is_mountpoint' with return type bool fs/namespace.c:1199:9-10: WARNING: return of 0/1 in function 'path_is_mountpoint_rcu' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: scripts/coccinelle/misc/boolreturn.cocci Link: http://lkml.kernel.org/r/20161114235851.GA29411@xxxxxxxxxxxxxxxxxxxxx Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx> Cc: Ian Kent <ikent@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/namespace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN fs/namespace.c~vfs-add-path_is_mountpoint-helper-fix fs/namespace.c --- a/fs/namespace.c~vfs-add-path_is_mountpoint-helper-fix +++ a/fs/namespace.c @@ -1182,7 +1182,7 @@ bool path_is_mountpoint(struct path *pat bool res; if (!d_mountpoint(path->dentry)) - return 0; + return false; rcu_read_lock(); res = __path_is_mountpoint(path); @@ -1196,7 +1196,7 @@ EXPORT_SYMBOL(path_is_mountpoint); bool path_is_mountpoint_rcu(struct path *path) { if (!d_mountpoint(path->dentry)) - return 0; + return false; return __path_is_mountpoint(path); } _ Patches currently in -mm which might be from fengguang.wu@xxxxxxxxx are vfs-add-path_is_mountpoint-helper-fix.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html