linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Souptick Joarder <jrdr.linux@gmail.com>
Cc: kbuild-all@01.org, minchan@kernel.org, ngupta@vflare.org,
	sergey.senozhatsky.work@gmail.com, linux-mm@kvack.org
Subject: [PATCH] mm: zsmalloc: fix boolreturn.cocci warnings
Date: Tue, 20 Feb 2018 11:37:08 +0800	[thread overview]
Message-ID: <20180220033708.GA15296@lkp-ne02> (raw)
In-Reply-To: <20180219194216.GA26165@jordon-HP-15-Notebook-PC>

From: Fengguang Wu <fengguang.wu@intel.com>

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 <jrdr.linux@gmail.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

 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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  parent reply	other threads:[~2018-02-20  3:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-19 19:42 [PATCH] mm: zsmalloc: Replace return type int with bool Souptick Joarder
2018-02-19 19:43 ` Randy Dunlap
2018-02-20  3:37 ` kbuild test robot [this message]
2018-02-20  3:37 ` kbuild test robot
2018-02-20  7:39   ` Souptick Joarder
2018-02-20  9:08     ` Minchan Kim
2018-02-20 10:55       ` Souptick Joarder
2018-02-20 12:52         ` Matthew Wilcox
2018-02-20 13:37           ` Matthew Wilcox
2018-02-20 15:18             ` Souptick Joarder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180220033708.GA15296@lkp-ne02 \
    --to=lkp@intel.com \
    --cc=jrdr.linux@gmail.com \
    --cc=kbuild-all@01.org \
    --cc=linux-mm@kvack.org \
    --cc=minchan@kernel.org \
    --cc=ngupta@vflare.org \
    --cc=sergey.senozhatsky.work@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).