From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4FBBEC433F5 for ; Mon, 4 Apr 2022 10:27:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id BD7164B2A5; Mon, 4 Apr 2022 06:27:27 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Authentication-Results: mm01.cs.columbia.edu (amavisd-new); dkim=softfail (fail, message has been altered) header.i=@intel.com Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id urO2DpgrS-UW; Mon, 4 Apr 2022 06:27:26 -0400 (EDT) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id A9D0B4B290; Mon, 4 Apr 2022 06:27:26 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 47A5A4B2BD for ; Mon, 4 Apr 2022 06:27:25 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12RlmR1wRnQY for ; Mon, 4 Apr 2022 06:27:23 -0400 (EDT) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id 74D154B19F for ; Mon, 4 Apr 2022 06:27:23 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649068043; x=1680604043; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=AtKxAXUZHiWwbb0MhPmdg1yiT8qf54v4DOCCjtj4WFU=; b=c6IyuQ/Q/pOHW0QvdrYHnffqzdURJdi1++alqposu5ZDQ1+n+upJsO8R m552ea5mkFDUoeW4qqpGhDZpfNriPvsTZE80VtEahE2yNtQMMkmi2sIAV 5d7jVSFEAdGgS3xF3NmwzwrTLxRIPwIp6HlDiig3VxlrNVXUXUH1J/nFc sHu5FytxRjKCsVD4bnAqFirCAacd7r3j0w2mzPsylvQibYjMnMdx2STLI +WJZh6y+0oe/5egqTTvtgHSib7x1W2zH7nSE7RU+cgda7iKopUJbvh73G lggT3aMv6++tiF6+kjchRQVbPMw8/S+2dvVvmt/+mXonThZebnZpKMMzd w==; X-IronPort-AV: E=McAfee;i="6200,9189,10306"; a="247995940" X-IronPort-AV: E=Sophos;i="5.90,234,1643702400"; d="scan'208";a="247995940" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2022 03:27:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,234,1643702400"; d="scan'208";a="657447998" Received: from lkp-server02.sh.intel.com (HELO a44fdfb70b94) ([10.239.97.151]) by orsmga004.jf.intel.com with ESMTP; 04 Apr 2022 03:27:11 -0700 Received: from kbuild by a44fdfb70b94 with local (Exim 4.95) (envelope-from ) id 1nbJvS-0001y0-I9; Mon, 04 Apr 2022 10:27:10 +0000 Date: Mon, 4 Apr 2022 18:26:50 +0800 From: kernel test robot To: Gavin Shan , kvmarm@lists.cs.columbia.edu Subject: [PATCH] KVM: arm64: fix returnvar.cocci warnings Message-ID: References: <20220403153911.12332-11-gshan@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220403153911.12332-11-gshan@redhat.com> X-Patchwork-Hint: ignore Cc: kbuild-all@lists.01.org, maz@kernel.org, linux-kernel@vger.kernel.org, eauger@redhat.com, shan.gavin@gmail.com, Jonathan.Cameron@huawei.com, pbonzini@redhat.com, vkuznets@redhat.com, will@kernel.org X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu From: kernel test robot arch/arm64/kvm/sdei.c:346:15-18: Unneeded variable: "ret". Return "SDEI_SUCCESS" on line 352 Remove unneeded variable used to store return value. Generated by: scripts/coccinelle/misc/returnvar.cocci CC: Gavin Shan Reported-by: kernel test robot Signed-off-by: kernel test robot --- url: https://github.com/intel-lab-lkp/linux/commits/Gavin-Shan/Support-SDEI-Virtualization/20220403-234350 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git be2d3ecedd9911fbfd7e55cc9ceac5f8b79ae4cf :::::: branch date: 19 hours ago :::::: commit date: 19 hours ago arch/arm64/kvm/sdei.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/arch/arm64/kvm/sdei.c +++ b/arch/arm64/kvm/sdei.c @@ -343,13 +343,12 @@ out: static unsigned long hypercall_mask(struct kvm_vcpu *vcpu, bool mask) { struct kvm_sdei_vcpu *vsdei = vcpu->arch.sdei; - unsigned long ret = SDEI_SUCCESS; spin_lock(&vsdei->lock); vsdei->masked = mask ? 1 : 0; spin_unlock(&vsdei->lock); - return ret; + return SDEI_SUCCESS; } int kvm_sdei_call(struct kvm_vcpu *vcpu) _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CBF73C433EF for ; Mon, 4 Apr 2022 10:27:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357678AbiDDK3N (ORCPT ); Mon, 4 Apr 2022 06:29:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352249AbiDDK3K (ORCPT ); Mon, 4 Apr 2022 06:29:10 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3288027B2F for ; Mon, 4 Apr 2022 03:27:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649068035; x=1680604035; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=AtKxAXUZHiWwbb0MhPmdg1yiT8qf54v4DOCCjtj4WFU=; b=eW4J6MrnN1IhrgQnJcQn04XqINqgETGlVaFevcTvZlTswNncJ9YPoJGy 1WC1xnCVhs7WvcbcOteWdqPikPT4dwX0iCWXA70AMi0wia0Ym4OrwiwJy FJS1qRvA44u4gsnfCeDWagGzefNg3acplI6Yj+wFTB2jgSW43vQ/cvxzM Ri+xFjXf0VIPlU8cRM9CLsdasTeSVldQYnQ9RSwKs9hu9ALOjT1FHMxB/ NSA02fLj9egIIPheEmVkDeJnhAMJ3pnl0pMqq/jgdoNnTwjSYEZHzP4vs //vKgw8r6C/H0WrE1R9DPF8V2x9WCDbP50OnFwZatMatTw6jEO8fv60A7 g==; X-IronPort-AV: E=McAfee;i="6200,9189,10306"; a="260662049" X-IronPort-AV: E=Sophos;i="5.90,234,1643702400"; d="scan'208";a="260662049" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2022 03:27:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,234,1643702400"; d="scan'208";a="657447998" Received: from lkp-server02.sh.intel.com (HELO a44fdfb70b94) ([10.239.97.151]) by orsmga004.jf.intel.com with ESMTP; 04 Apr 2022 03:27:11 -0700 Received: from kbuild by a44fdfb70b94 with local (Exim 4.95) (envelope-from ) id 1nbJvS-0001y0-I9; Mon, 04 Apr 2022 10:27:10 +0000 Date: Mon, 4 Apr 2022 18:26:50 +0800 From: kernel test robot To: Gavin Shan , kvmarm@lists.cs.columbia.edu Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, eauger@redhat.com, oupton@google.com, Jonathan.Cameron@huawei.com, vkuznets@redhat.com, will@kernel.org, shannon.zhaosl@gmail.com, james.morse@arm.com, mark.rutland@arm.com, maz@kernel.org, pbonzini@redhat.com, shan.gavin@gmail.com Subject: [PATCH] KVM: arm64: fix returnvar.cocci warnings Message-ID: References: <20220403153911.12332-11-gshan@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220403153911.12332-11-gshan@redhat.com> X-Patchwork-Hint: ignore Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: kernel test robot arch/arm64/kvm/sdei.c:346:15-18: Unneeded variable: "ret". Return "SDEI_SUCCESS" on line 352 Remove unneeded variable used to store return value. Generated by: scripts/coccinelle/misc/returnvar.cocci CC: Gavin Shan Reported-by: kernel test robot Signed-off-by: kernel test robot --- url: https://github.com/intel-lab-lkp/linux/commits/Gavin-Shan/Support-SDEI-Virtualization/20220403-234350 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git be2d3ecedd9911fbfd7e55cc9ceac5f8b79ae4cf :::::: branch date: 19 hours ago :::::: commit date: 19 hours ago arch/arm64/kvm/sdei.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/arch/arm64/kvm/sdei.c +++ b/arch/arm64/kvm/sdei.c @@ -343,13 +343,12 @@ out: static unsigned long hypercall_mask(struct kvm_vcpu *vcpu, bool mask) { struct kvm_sdei_vcpu *vsdei = vcpu->arch.sdei; - unsigned long ret = SDEI_SUCCESS; spin_lock(&vsdei->lock); vsdei->masked = mask ? 1 : 0; spin_unlock(&vsdei->lock); - return ret; + return SDEI_SUCCESS; } int kvm_sdei_call(struct kvm_vcpu *vcpu)