linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Minchan Kim <minchan@kernel.org>
To: Souptick Joarder <jrdr.linux@gmail.com>
Cc: kbuild test robot <lkp@intel.com>,
	kbuild-all@01.org, Nitin Gupta <ngupta@vflare.org>,
	sergey.senozhatsky.work@gmail.com, Linux-MM <linux-mm@kvack.org>
Subject: Re: [PATCH] mm: zsmalloc: Replace return type int with bool
Date: Tue, 20 Feb 2018 18:08:21 +0900	[thread overview]
Message-ID: <20180220090820.GA153760@rodete-desktop-imager.corp.google.com> (raw)
In-Reply-To: <CAFqt6zagwbvs06yK6KPp1TE5Z-mXzv6Bh2rhFFAyjz3Nh0BXmA@mail.gmail.com>

Hi Souptick,

On Tue, Feb 20, 2018 at 01:09:26PM +0530, Souptick Joarder wrote:
> On Tue, Feb 20, 2018 at 9:07 AM, kbuild test robot <lkp@intel.com> wrote:
> > Hi Souptick,
> >
> > Thank you for the patch! Perhaps something to improve:
> >
> > [auto build test WARNING on mmotm/master]
> > [also build test WARNING on v4.16-rc2 next-20180219]
> > [if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
> >
> > url:    https://github.com/0day-ci/linux/commits/Souptick-Joarder/mm-zsmalloc-Replace-return-type-int-with-bool/20180220-070147
> > base:   git://git.cmpxchg.org/linux-mmotm.git master
> >
> >
> > coccinelle warnings: (new ones prefixed by >>)
> >
> >>> mm/zsmalloc.c:309:65-66: WARNING: return of 0/1 in function 'zs_register_migration' with return type bool
> >
> > Please review and possibly fold the followup patch.
> >
> 
> OK, I will send the v2.

First of all, thanks for the patch.

Yub, bool could be more appropriate. However, there are lots of other places
in kernel where use int instead of bool.
If we fix every such places with each patch, it would be very painful.
If you believe it's really worth, it would be better to find/fix every
such places in one patch. But I'm not sure it's worth.

Thanks.

--
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>

  reply	other threads:[~2018-02-20  9:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-19 19:42 Souptick Joarder
2018-02-19 19:43 ` Randy Dunlap
2018-02-20  3:37 ` [PATCH] mm: zsmalloc: fix boolreturn.cocci warnings kbuild test robot
2018-02-20  3:37 ` [PATCH] mm: zsmalloc: Replace return type int with bool kbuild test robot
2018-02-20  7:39   ` Souptick Joarder
2018-02-20  9:08     ` Minchan Kim [this message]
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=20180220090820.GA153760@rodete-desktop-imager.corp.google.com \
    --to=minchan@kernel.org \
    --cc=jrdr.linux@gmail.com \
    --cc=kbuild-all@01.org \
    --cc=linux-mm@kvack.org \
    --cc=lkp@intel.com \
    --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