tree: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 8808b950581f71e3ee4cf8e6cae479f4c7106405 commit: 1dc40232c6515cf0eb4ce7650b3b703bb8eea82c [216/452] zram: propagate error to user coccinelle warnings: (new ones prefixed by >>) >> drivers/block/zram/zcomp.c:237:8-9: WARNING: return of 0/1 in function 'zcomp_strm_single_set_max_streams' with return type bool Please consider folding the attached diff :-) --- 0-DAY kernel build testing backend Open Source Technology Center http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
From: Fengguang Wu <fengguang.wu@xxxxxxxxx> Subject: [PATCH] zram: fix coccinelle warnings TO: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> CC: Minchan Kim <minchan@xxxxxxxxxx> CC: linux-kernel@xxxxxxxxxxxxxxx drivers/block/zram/zcomp.c:237:8-9: WARNING: return of 0/1 in function 'zcomp_strm_single_set_max_streams' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: coccinelle/misc/boolreturn.cocci CC: Minchan Kim <minchan@xxxxxxxxxx> CC: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx> --- cocci-output-25581-4ec682-zcomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/block/zram/zcomp.c +++ b/drivers/block/zram/zcomp.c @@ -234,7 +234,7 @@ static void zcomp_strm_single_release(st static bool zcomp_strm_single_set_max_streams(struct zcomp *comp, int num_strm) { /* zcomp_strm_single support only max_comp_streams == 1 */ - return 0; + return false; } static void zcomp_strm_single_destroy(struct zcomp *comp)