All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [PATCH] KVM: SVM: fix boolreturn.cocci warnings
Date: Wed, 18 Mar 2020 16:18:07 +0800	[thread overview]
Message-ID: <20200318081806.GA59593@286353ede479> (raw)
In-Reply-To: <202003181602.mbRLEts8%lkp@intel.com>

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

From: kbuild test robot <lkp@intel.com>

arch/x86/kvm/vmx.c:7862:8-9: WARNING: return of 0/1 in function 'vmx_need_emulation_on_page_fault' 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: 20ba1423933f ("KVM: SVM: Workaround errata#1096 (insn_len maybe zero on SMAP violation)")
CC: Singh, Brijesh <brijesh.singh@amd.com>
Signed-off-by: kbuild test robot <lkp@intel.com>
---

tree:   https://github.com/alibaba/cloud-kernel.git linux-next
head:   e07b931e8ed58352ad4839243454571b6ce59222
commit: 20ba1423933f563748cf1b426c0329d7d7f132b5 [155/644] KVM: SVM: Workaround errata#1096 (insn_len maybe zero on SMAP violation)

 vmx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -7859,7 +7859,7 @@ static void vmx_enable_tdp(void)
 
 static bool vmx_need_emulation_on_page_fault(struct kvm_vcpu *vcpu)
 {
-	return 0;
+	return false;
 }
 
 static __init int hardware_setup(void)

      reply	other threads:[~2020-03-18  8:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-18  8:18 [alibaba-cloud:linux-next 155/644] arch/x86/kvm/vmx.c:7862:8-9: WARNING: return of 0/1 in function 'vmx_need_emulation_on_page_fault' with return type bool kbuild test robot
2020-03-18  8:18 ` kbuild test robot [this message]

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=20200318081806.GA59593@286353ede479 \
    --to=lkp@intel.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.