All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sven Eckelmann <sven@narfation.org>
To: kbuild test robot <fengguang.wu@intel.com>
Cc: Antonio Quartulli <a@unstable.cc>,
	kbuild-all@01.org, b.a.t.m.a.n@lists.open-mesh.org,
	Marek Lindner <mareklindner@neomailbox.ch>
Subject: Re: [B.A.T.M.A.N.] [PATCH] batman-adv: fix boolreturn.cocci warnings
Date: Wed, 06 Jul 2016 08:12:09 +0200	[thread overview]
Message-ID: <1937144.keiqMBNOt5@sven-edge> (raw)
In-Reply-To: <20160706024929.GA25250@lkp-nex05>

[-- Attachment #1: Type: text/plain, Size: 1298 bytes --]

On Wednesday 06 July 2016 10:49:29 kbuild test robot wrote:
> net/batman-adv/bridge_loop_avoidance.c:1105:9-10: WARNING: return of 0/1 in function 'batadv_bla_process_claim' 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
> 
> CC: Sven Eckelmann <sven@narfation.org>
> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
> ---

Reviewed-by: Sven Eckelmann <sven@narfation.org>

The problematic commit is in batman-adv.git (next):

Fixes: a998bf5dfbd7 ("batman-adv: add detection for complex bridge loops")

And in net-next.git (due to some reordering)

Fixes: 4b426b108ac8 ("batman-adv: Use bool as return type for boolean functions")


Thanks,
	Sven
> 
>  bridge_loop_avoidance.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- a/net/batman-adv/bridge_loop_avoidance.c
> +++ b/net/batman-adv/bridge_loop_avoidance.c
> @@ -1102,7 +1102,7 @@ static bool batadv_bla_process_claim(str
>  
>  	/* Let the loopdetect frames on the mesh in any case. */
>  	if (bla_dst->type == BATADV_CLAIM_TYPE_LOOPDETECT)
> -		return 0;
> +		return false;
>  
>  	/* check if it is a claim frame. */
>  	ret = batadv_check_claim_group(bat_priv, primary_if, hw_src, hw_dst,

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2016-07-06  6:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-06  2:49 net/batman-adv/bridge_loop_avoidance.c:1105:9-10: WARNING: return of 0/1 in function 'batadv_bla_process_claim' with return type bool kbuild test robot
2016-07-06  2:49 ` [B.A.T.M.A.N.] [PATCH] batman-adv: fix boolreturn.cocci warnings kbuild test robot
2016-07-06  2:49   ` kbuild test robot
2016-07-06  6:12   ` Sven Eckelmann [this message]
2016-07-06  7:26     ` [B.A.T.M.A.N.] " Sven Eckelmann
2016-07-06 13:44   ` Marek Lindner
2016-07-06 13:44     ` Marek Lindner
2016-07-06 13:44   ` Marek Lindner

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=1937144.keiqMBNOt5@sven-edge \
    --to=sven@narfation.org \
    --cc=a@unstable.cc \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    --cc=fengguang.wu@intel.com \
    --cc=kbuild-all@01.org \
    --cc=mareklindner@neomailbox.ch \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.