From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f71.google.com (mail-pg0-f71.google.com [74.125.83.71]) by kanga.kvack.org (Postfix) with ESMTP id A2E716B0006 for ; Mon, 19 Feb 2018 22:37:37 -0500 (EST) Received: by mail-pg0-f71.google.com with SMTP id r1so6286335pgq.7 for ; Mon, 19 Feb 2018 19:37:37 -0800 (PST) Received: from mga07.intel.com (mga07.intel.com. [134.134.136.100]) by mx.google.com with ESMTPS id z78si4721667pfk.374.2018.02.19.19.37.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Feb 2018 19:37:36 -0800 (PST) Date: Tue, 20 Feb 2018 11:37:08 +0800 From: kbuild test robot Subject: [PATCH] mm: zsmalloc: fix boolreturn.cocci warnings Message-ID: <20180220033708.GA15296@lkp-ne02> References: <20180219194216.GA26165@jordon-HP-15-Notebook-PC> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180219194216.GA26165@jordon-HP-15-Notebook-PC> Sender: owner-linux-mm@kvack.org List-ID: To: Souptick Joarder Cc: kbuild-all@01.org, minchan@kernel.org, ngupta@vflare.org, sergey.senozhatsky.work@gmail.com, linux-mm@kvack.org From: Fengguang Wu mm/zsmalloc.c:309:65-66: WARNING: return of 0/1 in function 'zs_register_migration' 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 Fixes: 3d58cbb028bb ("mm: zsmalloc: Replace return type int with bool") CC: Souptick Joarder Signed-off-by: Fengguang Wu --- zsmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -306,7 +306,7 @@ static void SetZsPageMovable(struct zs_p #else static int zsmalloc_mount(void) { return 0; } static void zsmalloc_unmount(void) {} -static bool zs_register_migration(struct zs_pool *pool) { return 0; } +static bool zs_register_migration(struct zs_pool *pool) { return false; } static void zs_unregister_migration(struct zs_pool *pool) {} static void migrate_lock_init(struct zspage *zspage) {} static void migrate_read_lock(struct zspage *zspage) {} -- 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