From 9e574a6a3c267a94e5a37d03d1e7598d79311373 Mon Sep 17 00:00:00 2001 From: Yi Wang Date: Mon, 15 Jul 2019 12:35:17 +0800 Subject: [PATCH 0838/2944] kvm: vmx: fix coccinelle warnings fix #25924484 commit 9481b7f10c5a7f149048310c25510f0386eb6631 upstream. This fixes the following coccinelle warning: WARNING: return of 0/1 in function 'vmx_need_emulation_on_page_fault' with return type bool Return false instead of 0. Signed-off-by: Yi Wang Signed-off-by: Paolo Bonzini Signed-off-by: Shile Zhang Reviewed-by: Joseph Qi --- arch/x86/kvm/vmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 2bcec49..298842c 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -7879,7 +7879,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) -- 1.8.3.1