Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1004909pxb; Tue, 26 Oct 2021 00:42:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxC9NrciSfRUb9ios/VNPtt55nEBuL/JmeQczNaH2HqL5nzo9x6Tho9LvufCeGAhUkNmB9q X-Received: by 2002:a17:906:c102:: with SMTP id do2mr18399789ejc.111.1635234143407; Tue, 26 Oct 2021 00:42:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635234143; cv=none; d=google.com; s=arc-20160816; b=nKhQ9SFOiCZffE0y+5BfcGMWTc0+PzJSpRsHNQL6neIx7fTPoCPzdrT59cGo9AqrG2 Wo0CpKD/bAvxGMuQW0Uyk+Jyp+uzDXlyVT8PAUFOcH2BNd0IL2lo9rY9QWipq8bE9cHi Yq953cRVh3WgbZXlE6ckXoReTw3WWcRkFEezpPfaAn7Mh5WYJSb+i/+D5S0ZL6dy3Oxf 1rGHwK4c5zb5yttlwPu+0lNM9/J2Jh3OetG99l0yUUAOX5L9W5KjwO+SAMvf73B9Eya4 93PDUZfLzHN/vRtSMtbpRe4KW8YMOcdJcS4ceufqjkKWEK1Xwq6PN9fCW+rrIMl0jGkU NwDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=uK4FEnHzYo2iEEhaGJnf6I9ZRkM8/MsJyen6l90ZGKI=; b=vL+h+FVWdlzW291s4c4SFAMDkQq4+ZwaQ08kvOLudAacswGb41G+250riY8Akg1Esf QRf1YSjg778ge1CMfILcPEiUWxmwqDShyHh/IfBZXNxSmFcFGqU5qjo6ZvvRpGZm64sn 9ZqcbiWY1HW3p3qgKoNcO61GhCTWQXJwIp04feMucEj45mZTa1ECXdMPGQkn4pFrGkGO /87Fu85GjinD2bFcYpSnWMnVjD5j7/cZLNQs3QiD8np0FT6FvCv9cWUaULbsXAUUQ547 R/RrNRcGZP73D2SnRQsJpMMuqglqw0tm3NZ34dnLrUvGj4sK4HQ6u+7D6rYeKNaO9Kl1 k1eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=L40b46cv; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p11si24341381eju.15.2021.10.26.00.41.58; Tue, 26 Oct 2021 00:42:23 -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=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=L40b46cv; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234618AbhJZHXk (ORCPT + 99 others); Tue, 26 Oct 2021 03:23:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234463AbhJZHXQ (ORCPT ); Tue, 26 Oct 2021 03:23:16 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB4CAC061243 for ; Tue, 26 Oct 2021 00:20:52 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 136-20020a1c008e000000b0032ccae3b331so524197wma.0 for ; Tue, 26 Oct 2021 00:20:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uK4FEnHzYo2iEEhaGJnf6I9ZRkM8/MsJyen6l90ZGKI=; b=L40b46cvNdnoFhEJgc4ozV6AU+8HP3JD9axeHoM1+le7lYvCvQzY34TfMZqx/L2q/0 ug63G0r7I68BS/CtcWqpLnCMbmJlNSbkxElIbYZioptOg0yw/s7ST4dpS/4FZzX5UwvD WGhWgKCcYfbjp9NgyazdiWncis/Brnk5cRx+PCDZD9oD0dsh5vwG7KEcNgkjg4LmuQik oEhOQS1B6biVGXQ32ihYHZDvnABGdCt0kIFIRZsrkFR72BUCbu6vU4nFu5p8/TIxsHtl NKbMydmy1tBt8K6jZQ/zBUrGyDVx2hdxcc+nb97ZKG+6QhNZ4pmUhurmX7kRgjjUO+0o WFMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uK4FEnHzYo2iEEhaGJnf6I9ZRkM8/MsJyen6l90ZGKI=; b=u3pbWRz9KcrW0FwnbYi3+KTTSECHyHwQUIsj55drnfPvmz57Kl08eLrN2velMs52hz itmzLfY1JF5rexlm0vL+uSacnPI0FFo4JVEWQJ5Hb3bD7XnhOX8DX0Bf6VPzrDzMoPFS ksPeZQhBj0ITHSqsAGJvH1M23jz3/YQ+2+aBGQqEdy9qPIrzIn77wuBm7H2J9fsaa0cT 9ww54tTlGxrZH/YKWkr0NDXKa9xeBSqoQbm758DNUHZw9wsg3sEF5pbBlw2Oj/uEtl2R unkHvWAQl3zFTe7XMJkD7yLtcXNtdS0idgrcOEO8D/cpzI1iSNMtHF9qh8c45utTeT1B NM3A== X-Gm-Message-State: AOAM533CEYHx4p+DiNNkrXzOnz5y/X27Ry80e6O2AfV57lYvEvG3gUg0 ftd5kHdDl8/oj+8QH8SK8ePwEvwVuioWQauuu3pGMA== X-Received: by 2002:a05:600c:354c:: with SMTP id i12mr26131590wmq.59.1635232851263; Tue, 26 Oct 2021 00:20:51 -0700 (PDT) MIME-Version: 1.0 References: <20211021115706.1060778-1-ran.jianping@zte.com.cn> In-Reply-To: <20211021115706.1060778-1-ran.jianping@zte.com.cn> From: Anup Patel Date: Tue, 26 Oct 2021 12:50:40 +0530 Message-ID: Subject: Re: [PATCH] RISC-V:KVM: remove unneeded semicolon To: cgel.zte@gmail.com Cc: Anup Patel , Albert Ou , Atish Patra , kvm-riscv@lists.infradead.org, KVM General , "linux-kernel@vger.kernel.org List" , linux-riscv , Palmer Dabbelt , Paul Walmsley , ran jianping , Zeal Robot Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 21, 2021 at 5:27 PM wrote: > > From: ran jianping > > 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 > > Reported-by: Zeal Robot > Signed-off-by: ran jianping Applied to riscv_kvm_next, Thanks! Regards, Anup > --- > 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 >