From patchwork Thu Jul 27 22:03:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fengguang Wu X-Patchwork-Id: 9867571 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 877B56038F for ; Thu, 27 Jul 2017 22:04:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7BC002886A for ; Thu, 27 Jul 2017 22:04:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 705992888C; Thu, 27 Jul 2017 22:04:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21F822886A for ; Thu, 27 Jul 2017 22:04:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751711AbdG0WDz (ORCPT ); Thu, 27 Jul 2017 18:03:55 -0400 Received: from mga14.intel.com ([192.55.52.115]:18875 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751658AbdG0WDz (ORCPT ); Thu, 27 Jul 2017 18:03:55 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Jul 2017 15:03:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,422,1496127600"; d="scan'208";a="116517380" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by orsmga002.jf.intel.com with ESMTP; 27 Jul 2017 15:03:53 -0700 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1daqx8-000Xpn-Lg; Fri, 28 Jul 2017 06:08:18 +0800 Date: Fri, 28 Jul 2017 06:03:15 +0800 From: kbuild test robot To: Paolo Bonzini Cc: kbuild-all@01.org, kvm@vger.kernel.org, Robert Hu , Farrah Chen Subject: [PATCH] KVM: nVMX: fix boolreturn.cocci warnings Message-ID: <20170727220315.GA45672@lkp-ib04> References: <201707280612.LF0TOKTz%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <201707280612.LF0TOKTz%fengguang.wu@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP arch/x86/kvm/vmx.c:8192:8-9: WARNING: return of 0/1 in function 'nested_vmx_reflect_vmexit' 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: fef40abd18fd ("KVM: nVMX: do not fill vm_exit_intr_error_code in prepare_vmcs12") Signed-off-by: Fengguang Wu --- vmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -8189,7 +8189,7 @@ static bool nested_vmx_reflect_vmexit(st nested_vmx_vmexit(vcpu, exit_reason, exit_intr_info, vmcs_readl(EXIT_QUALIFICATION)); - return 1; + return true; } static void vmx_get_exit_info(struct kvm_vcpu *vcpu, u64 *info1, u64 *info2)