Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp491415pxb; Thu, 21 Oct 2021 03:48:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9F/1JHHW/OgIBj6kkYPmP/b7NNWwCF3LGzAx5rDA3DGRL+Zba+LcQiIj1YW5YqpnGagH1 X-Received: by 2002:aa7:9e9e:0:b0:44c:c821:c132 with SMTP id p30-20020aa79e9e000000b0044cc821c132mr4592743pfq.61.1634813287440; Thu, 21 Oct 2021 03:48:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634813287; cv=none; d=google.com; s=arc-20160816; b=Qy94gEl76AFgQ50ubk7K8DLCgm6fVC05dThzxRrOKkZatqLS9E54wz+ATDF8YmsBtz 8zATGpsE7rAh/DkRwKnfum4YnW/gXxT4t0PwCuiCZE23vPT6/eqYW/aXZvJPszgPKTGz vDU/GKSFv788ngtQ/0LTN83taNNoLTyB/jPwQZCCaIobSaawrbWOHfTCHtO63Y0Zec/H AF2aCyBrIygl4ZgTrILc0Us9R5Yat7qevALrWt8ISktctbJQOO8genEqleV2VmuXrJ91 miWAbLpDZcTG2iz9M6e/H/VfRfBMxvZ1mIC+6rNg2xFFSVb4+zdtYJc82UMBOOGZ4BVv 8n3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=AD2dgM0zOn+M+g2RGuvovb9BPcvRHY33KeWc/UhpNGw=; b=sCDK2uJEJFI4+OvAMng8WjPR52/bN66jbpNVvi3LNTenBZrZrqupzoGewNpUz4ReJZ 9d/5OGUCnBijvGSHqQzznNCsgVG/g2q0nWm4MQooM60s6NCXeysbTbV2QPef3zN6eVzt isS1JG45UC5rddcQhMm4sN1uXarL8Po4A7NsCvWOMpZ63wHAZKOE5meiwOptwLl+ENY0 NoipvNuARrab7se1rL1QlnYBAstdhwGuLUUzyj2VunBY5p18U0hC871n1CKiJCagENNv 5SCkmtqZjakRDVF8V3rKwaYnKjpJabsH79PAr5gJOBmAGuwz3OiVmo5roz6DYmedA7k0 QvDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Snj3fnFk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w22si6765353pgl.489.2021.10.21.03.47.53; Thu, 21 Oct 2021 03:48:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Snj3fnFk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231162AbhJUKsd (ORCPT + 99 others); Thu, 21 Oct 2021 06:48:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231280AbhJUKsD (ORCPT ); Thu, 21 Oct 2021 06:48:03 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81C68C061749; Thu, 21 Oct 2021 03:45:47 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id t11so92663plq.11; Thu, 21 Oct 2021 03:45:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AD2dgM0zOn+M+g2RGuvovb9BPcvRHY33KeWc/UhpNGw=; b=Snj3fnFkDCt/kE5qCbarCVOnGdbw8px3rbLWF5GhXJ+Cjza+RNMQKVP5qdVC9BkfKM BzgD3ew1SREru87oLgmeH7xzYSfg0CaPSDX1820dqKMSGJaz38ZDHJVoYT0Awwnckn23 EbfNdYChCd1lp1TELLyMLfkPl+T+gOKGpwfo+al9SFE9hmNdawJZPkf+/jCEpitKQtut R9V9xPkzxkkdP4fDfZpA6yUlbtDeJ75wV4gf1rqMIrssVI0lnsBM/oPtVyHwG1nh0AsB gP/u+hNuf+FzmxS4KSfOeR6nbBdHq7zNlu91Xx34+Qbe2w1qssUw+xG85ZAcYiNwLFEB 1BsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AD2dgM0zOn+M+g2RGuvovb9BPcvRHY33KeWc/UhpNGw=; b=Q3UvCvpqbLm1GwEJe2BQydBU3qw9tvXSpl5SV4ulZxO4stVKfiowGCMCQvtHvk8hMd CK2z5LPCOnOE2lzp0RurjyAa9oN/wisraPhDhXQaQ8pES9+fRAjBk1xj4s4XC9LwfnrZ 3fyOxEnkLdk9ia9ZztoxTBdnk4CCZuiR8iyTo2LpVbd4n5J1FseNkOiU1MB8zy7ZwP4T uVevXdpWa/nxB3WiWjc/CpdMCci7V5p3unvja45/q3pMyIwX366Qa50PawP2ndCXpGnG FTncT87U9zaoz7afhF+mffWmCuOC4Z6u+4nKY24XMTV3QX5cBdcU1A/N0+fWejwlhTq/ YU2g== X-Gm-Message-State: AOAM530XiUmN1c2GTTFExetdYTEKWEizWNNa0NY/E//DMiWNwVDHQJbT 4wO+447K8BVzusEHP57ZODc= X-Received: by 2002:a17:90a:ac14:: with SMTP id o20mr5702524pjq.219.1634813147081; Thu, 21 Oct 2021 03:45:47 -0700 (PDT) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id x20sm5355438pjp.48.2021.10.21.03.45.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Oct 2021 03:45:46 -0700 (PDT) From: cgel.zte@gmail.com X-Google-Original-From: ran.jianping@zte.com.cn To: anup.patel@wdc.com Cc: atish.patra@wdc.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, ran jianping , Zeal Robot Subject: [PATCH] RISC-V:KVM: remove unneeded semicolon Elimate the following coccinelle check warning: ./arch/riscv/kvm/vcpu_sbi.c:169:2-3: Unneeded semicolon ./arch/riscv/kvm/vcpu_exit.c:397:2-3: Unneeded semicolon ./arch/riscv/kvm/vcpu_exit.c:687:2-3: Unneeded semicolon ./arch/riscv/kvm/vcpu_exit.c:645:2-3: Unneeded semicolon ./arch/riscv/kvm/vcpu.c:247:2-3: Unneeded semicolon ./arch/riscv/kvm/vcpu.c:284:2-3: Unneeded semicolon ./arch/riscv/kvm/vcpu_timer.c:123:2-3: Unneeded semicolon ./arch/riscv/kvm/vcpu_timer.c:170:2-3: Unneeded semicolon Date: Thu, 21 Oct 2021 10:45:36 +0000 Message-Id: <20211021104536.1060107-1-ran.jianping@zte.com.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: ran jianping Reported-by: Zeal Robot Signed-off-by: ran jianping --- arch/riscv/kvm/vcpu.c | 4 ++-- arch/riscv/kvm/vcpu_exit.c | 6 +++--- arch/riscv/kvm/vcpu_sbi.c | 2 +- arch/riscv/kvm/vcpu_timer.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/riscv/kvm/vcpu.c b/arch/riscv/kvm/vcpu.c index c44cabce7dd8..912928586df9 100644 --- a/arch/riscv/kvm/vcpu.c +++ b/arch/riscv/kvm/vcpu.c @@ -244,7 +244,7 @@ static int kvm_riscv_vcpu_get_reg_config(struct kvm_vcpu *vcpu, break; default: return -EINVAL; - }; + } if (copy_to_user(uaddr, ®_val, KVM_REG_SIZE(reg->id))) return -EFAULT; @@ -281,7 +281,7 @@ static int kvm_riscv_vcpu_set_reg_config(struct kvm_vcpu *vcpu, break; default: return -EINVAL; - }; + } return 0; } diff --git a/arch/riscv/kvm/vcpu_exit.c b/arch/riscv/kvm/vcpu_exit.c index 13bbc3f73713..7f2d742ae4c6 100644 --- a/arch/riscv/kvm/vcpu_exit.c +++ b/arch/riscv/kvm/vcpu_exit.c @@ -394,7 +394,7 @@ static int emulate_store(struct kvm_vcpu *vcpu, struct kvm_run *run, break; default: return -EOPNOTSUPP; - }; + } /* Update MMIO details in kvm_run struct */ run->mmio.is_write = true; @@ -642,7 +642,7 @@ int kvm_riscv_vcpu_mmio_return(struct kvm_vcpu *vcpu, struct kvm_run *run) break; default: return -EOPNOTSUPP; - }; + } done: /* Move to next instruction */ @@ -684,7 +684,7 @@ int kvm_riscv_vcpu_exit(struct kvm_vcpu *vcpu, struct kvm_run *run, break; default: break; - }; + } /* Print details in-case of error */ if (ret < 0) { diff --git a/arch/riscv/kvm/vcpu_sbi.c b/arch/riscv/kvm/vcpu_sbi.c index ebdcdbade9c6..eb3c045edf11 100644 --- a/arch/riscv/kvm/vcpu_sbi.c +++ b/arch/riscv/kvm/vcpu_sbi.c @@ -166,7 +166,7 @@ int kvm_riscv_vcpu_sbi_ecall(struct kvm_vcpu *vcpu, struct kvm_run *run) /* Return error for unsupported SBI calls */ cp->a0 = SBI_ERR_NOT_SUPPORTED; break; - }; + } if (next_sepc) cp->sepc += 4; diff --git a/arch/riscv/kvm/vcpu_timer.c b/arch/riscv/kvm/vcpu_timer.c index ddd0ce727b83..5c4c37ff2d48 100644 --- a/arch/riscv/kvm/vcpu_timer.c +++ b/arch/riscv/kvm/vcpu_timer.c @@ -120,7 +120,7 @@ int kvm_riscv_vcpu_get_reg_timer(struct kvm_vcpu *vcpu, break; default: return -EINVAL; - }; + } if (copy_to_user(uaddr, ®_val, KVM_REG_SIZE(reg->id))) return -EFAULT; @@ -167,7 +167,7 @@ int kvm_riscv_vcpu_set_reg_timer(struct kvm_vcpu *vcpu, default: ret = -EINVAL; break; - }; + } return ret; } -- 2.25.1