All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sean Christopherson <seanjc@google.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH] kvm: fix boolreturn.cocci warnings
Date: Tue, 25 May 2021 16:46:31 +0000	[thread overview]
Message-ID: <YK0p53dAhark4xuy@google.com> (raw)
In-Reply-To: <91885328-dc7f-3d12-3ddb-53a403bb8c60@intel.com>

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

On Tue, May 25, 2021, Rong Chen wrote:
> 
> 
> On 5/25/21 3:11 PM, Peter Zijlstra wrote:
> > On Tue, May 25, 2021 at 01:59:40PM +0800, kernel test robot wrote:
> > > From: kernel test robot <lkp@intel.com>
> > > 
> > > arch/arm64/kvm/mmu.c:1203:9-10: WARNING: return of 0/1 in function 'kvm_age_gfn' with return type bool
> > > arch/arm64/kvm/mmu.c:1173:9-10: WARNING: return of 0/1 in function 'kvm_set_spte_gfn' with return type bool
> > > arch/arm64/kvm/mmu.c:1216:9-10: WARNING: return of 0/1 in function 'kvm_test_age_gfn' with return type bool
> > > arch/arm64/kvm/mmu.c:1159:9-10: WARNING: return of 0/1 in function 'kvm_unmap_gfn_range' 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
> > Per 2b076054e524 ("remove boolinit.cocci"), I have a very dim view of
> > this sort of thing.
> 
> Hi Peterz,
> 
> Sorry for the noise, we'll disable the check.
> 
> > 
> > > Fixes: 63b3f96e1a98 ("kvm: Select SCHED_INFO instead of TASK_DELAY_ACCT")
> > *how* ?!?
> 
> The bot is stupid

LOL.  FWIW, it's not _that_ stupid, or maybe it's the broken clock adage...  The
proper fix is sitting in the KVM tree, it should soon make its way to Linus.

  fcb8283920b1 ("KVM: arm64: Fix boolreturn.cocci warnings")

WARNING: multiple messages have this Message-ID (diff)
From: Sean Christopherson <seanjc@google.com>
To: Rong Chen <rong.a.chen@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
	kernel test robot <lkp@intel.com>,
	kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	x86@kernel.org, Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@kernel.org>, Marc Zyngier <maz@kernel.org>,
	James Morse <james.morse@arm.com>,
	Alexandru Elisei <alexandru.elisei@arm.com>,
	Suzuki K Poulose <suzuki.poulose@arm.com>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Will Deacon <will@kernel.org>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [kbuild-all] Re: [PATCH] kvm: fix boolreturn.cocci warnings
Date: Tue, 25 May 2021 16:46:31 +0000	[thread overview]
Message-ID: <YK0p53dAhark4xuy@google.com> (raw)
In-Reply-To: <91885328-dc7f-3d12-3ddb-53a403bb8c60@intel.com>

On Tue, May 25, 2021, Rong Chen wrote:
> 
> 
> On 5/25/21 3:11 PM, Peter Zijlstra wrote:
> > On Tue, May 25, 2021 at 01:59:40PM +0800, kernel test robot wrote:
> > > From: kernel test robot <lkp@intel.com>
> > > 
> > > arch/arm64/kvm/mmu.c:1203:9-10: WARNING: return of 0/1 in function 'kvm_age_gfn' with return type bool
> > > arch/arm64/kvm/mmu.c:1173:9-10: WARNING: return of 0/1 in function 'kvm_set_spte_gfn' with return type bool
> > > arch/arm64/kvm/mmu.c:1216:9-10: WARNING: return of 0/1 in function 'kvm_test_age_gfn' with return type bool
> > > arch/arm64/kvm/mmu.c:1159:9-10: WARNING: return of 0/1 in function 'kvm_unmap_gfn_range' 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
> > Per 2b076054e524 ("remove boolinit.cocci"), I have a very dim view of
> > this sort of thing.
> 
> Hi Peterz,
> 
> Sorry for the noise, we'll disable the check.
> 
> > 
> > > Fixes: 63b3f96e1a98 ("kvm: Select SCHED_INFO instead of TASK_DELAY_ACCT")
> > *how* ?!?
> 
> The bot is stupid

LOL.  FWIW, it's not _that_ stupid, or maybe it's the broken clock adage...  The
proper fix is sitting in the KVM tree, it should soon make its way to Linus.

  fcb8283920b1 ("KVM: arm64: Fix boolreturn.cocci warnings")

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

WARNING: multiple messages have this Message-ID (diff)
From: Sean Christopherson <seanjc@google.com>
To: Rong Chen <rong.a.chen@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
	kernel test robot <lkp@intel.com>,
	kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	x86@kernel.org, Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@kernel.org>, Marc Zyngier <maz@kernel.org>,
	James Morse <james.morse@arm.com>,
	Alexandru Elisei <alexandru.elisei@arm.com>,
	Suzuki K Poulose <suzuki.poulose@arm.com>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Will Deacon <will@kernel.org>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [kbuild-all] Re: [PATCH] kvm: fix boolreturn.cocci warnings
Date: Tue, 25 May 2021 16:46:31 +0000	[thread overview]
Message-ID: <YK0p53dAhark4xuy@google.com> (raw)
In-Reply-To: <91885328-dc7f-3d12-3ddb-53a403bb8c60@intel.com>

On Tue, May 25, 2021, Rong Chen wrote:
> 
> 
> On 5/25/21 3:11 PM, Peter Zijlstra wrote:
> > On Tue, May 25, 2021 at 01:59:40PM +0800, kernel test robot wrote:
> > > From: kernel test robot <lkp@intel.com>
> > > 
> > > arch/arm64/kvm/mmu.c:1203:9-10: WARNING: return of 0/1 in function 'kvm_age_gfn' with return type bool
> > > arch/arm64/kvm/mmu.c:1173:9-10: WARNING: return of 0/1 in function 'kvm_set_spte_gfn' with return type bool
> > > arch/arm64/kvm/mmu.c:1216:9-10: WARNING: return of 0/1 in function 'kvm_test_age_gfn' with return type bool
> > > arch/arm64/kvm/mmu.c:1159:9-10: WARNING: return of 0/1 in function 'kvm_unmap_gfn_range' 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
> > Per 2b076054e524 ("remove boolinit.cocci"), I have a very dim view of
> > this sort of thing.
> 
> Hi Peterz,
> 
> Sorry for the noise, we'll disable the check.
> 
> > 
> > > Fixes: 63b3f96e1a98 ("kvm: Select SCHED_INFO instead of TASK_DELAY_ACCT")
> > *how* ?!?
> 
> The bot is stupid

LOL.  FWIW, it's not _that_ stupid, or maybe it's the broken clock adage...  The
proper fix is sitting in the KVM tree, it should soon make its way to Linus.

  fcb8283920b1 ("KVM: arm64: Fix boolreturn.cocci warnings")

  reply	other threads:[~2021-05-25 16:46 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-25  5:59 [tip:sched/core 7/29] arch/arm64/kvm/mmu.c:1203:9-10: WARNING: return of 0/1 in function 'kvm_age_gfn' with return type bool kernel test robot
2021-05-25  5:59 ` kernel test robot
2021-05-25  5:59 ` [PATCH] kvm: fix boolreturn.cocci warnings kernel test robot
2021-05-25  5:59   ` kernel test robot
2021-05-25  5:59   ` kernel test robot
2021-05-25  7:11   ` Peter Zijlstra
2021-05-25  7:11     ` Peter Zijlstra
2021-05-25  7:11     ` Peter Zijlstra
2021-05-25  7:39     ` Rong Chen
2021-05-25  7:39       ` [kbuild-all] " Rong Chen
2021-05-25  7:39       ` Rong Chen
2021-05-25 16:46       ` Sean Christopherson [this message]
2021-05-25 16:46         ` Sean Christopherson
2021-05-25 16:46         ` Sean Christopherson

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=YK0p53dAhark4xuy@google.com \
    --to=seanjc@google.com \
    --cc=kbuild-all@lists.01.org \
    /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.