From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============3703467857292278379==" MIME-Version: 1.0 From: kbuild test robot To: kbuild-all@lists.01.org Subject: [PATCH] KVM: SVM: fix boolreturn.cocci warnings Date: Wed, 18 Mar 2020 16:18:07 +0800 Message-ID: <20200318081806.GA59593@286353ede479> In-Reply-To: <202003181602.mbRLEts8%lkp@intel.com> List-Id: --===============3703467857292278379== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kbuild test robot arch/x86/kvm/vmx.c:7862:8-9: WARNING: return of 0/1 in function 'vmx_need_e= mulation_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 Signed-off-by: kbuild test robot --- tree: https://github.com/alibaba/cloud-kernel.git linux-next head: e07b931e8ed58352ad4839243454571b6ce59222 commit: 20ba1423933f563748cf1b426c0329d7d7f132b5 [155/644] KVM: SVM: Workar= ound 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) --===============3703467857292278379==--