From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by kanga.kvack.org (Postfix) with ESMTP id BD5BE6B00C3 for ; Mon, 17 Mar 2014 15:55:36 -0400 (EDT) Received: by mail-pa0-f44.google.com with SMTP id bj1so6218119pad.3 for ; Mon, 17 Mar 2014 12:55:36 -0700 (PDT) Received: from mga02.intel.com (mga02.intel.com. [134.134.136.20]) by mx.google.com with ESMTP id hj8si10713966pac.490.2014.03.17.12.55.35 for ; Mon, 17 Mar 2014 12:55:35 -0700 (PDT) Date: Tue, 18 Mar 2014 03:55:08 +0800 From: kbuild test robot Subject: [next:master 216/452] 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 Message-ID: <5327531c.fCek1K1FJ86yLrhi%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_5327531c.fIUd/12KRn0Kun6NxZ+jc5ssPx8/8sYHogblbGfugmEkRZR1" Sender: owner-linux-mm@kvack.org List-ID: To: Minchan Kim Cc: Linux Memory Management List , Andrew Morton , kbuild-all@01.org This is a multi-part message in MIME format. --=_5327531c.fIUd/12KRn0Kun6NxZ+jc5ssPx8/8sYHogblbGfugmEkRZR1 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 --=_5327531c.fIUd/12KRn0Kun6NxZ+jc5ssPx8/8sYHogblbGfugmEkRZR1 Content-Type: text/x-diff; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="boolreturn-zcomp.patch" From: Fengguang Wu Subject: [PATCH] zram: fix coccinelle warnings TO: Stephen Rothwell CC: Minchan Kim CC: linux-kernel@vger.kernel.org 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 CC: Stephen Rothwell Signed-off-by: Fengguang Wu --- 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) --=_5327531c.fIUd/12KRn0Kun6NxZ+jc5ssPx8/8sYHogblbGfugmEkRZR1-- -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org