All of lore.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2020-03-18  8:18 kbuild test robot
  2020-03-18  8:18 ` [PATCH] KVM: SVM: fix boolreturn.cocci warnings kbuild test robot
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2020-03-18  8:18 UTC (permalink / raw)
  To: kbuild-all

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

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)

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>


coccinelle warnings: (new ones prefixed by >>)

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

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] KVM: SVM: fix boolreturn.cocci warnings
  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
  0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2020-03-18  8:18 UTC (permalink / raw)
  To: kbuild-all

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-18  8:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH] KVM: SVM: fix boolreturn.cocci warnings kbuild test robot

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.