* [PATCH -next] RISC-V: KVM: remove unneeded semicolon
@ 2022-01-11 1:04 Yang Li
2022-01-31 4:17 ` Anup Patel
0 siblings, 1 reply; 3+ messages in thread
From: Yang Li @ 2022-01-11 1:04 UTC (permalink / raw)
To: anup
Cc: atishp, paul.walmsley, palmer, aou, kvm, kvm-riscv, linux-riscv,
linux-kernel, Yang Li, Abaci Robot
Eliminate the following coccicheck warning:
./arch/riscv/kvm/vcpu_sbi_v01.c:117:2-3: Unneeded semicolon
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
arch/riscv/kvm/vcpu_sbi_v01.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/riscv/kvm/vcpu_sbi_v01.c b/arch/riscv/kvm/vcpu_sbi_v01.c
index 4c7e13ec9ccc..9acc8fa21d1f 100644
--- a/arch/riscv/kvm/vcpu_sbi_v01.c
+++ b/arch/riscv/kvm/vcpu_sbi_v01.c
@@ -114,7 +114,7 @@ static int kvm_sbi_ext_v01_handler(struct kvm_vcpu *vcpu, struct kvm_run *run,
default:
ret = -EINVAL;
break;
- };
+ }
return ret;
}
--
2.20.1.7.g153144c
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH -next] RISC-V: KVM: remove unneeded semicolon
2022-01-11 1:04 [PATCH -next] RISC-V: KVM: remove unneeded semicolon Yang Li
@ 2022-01-31 4:17 ` Anup Patel
0 siblings, 0 replies; 3+ messages in thread
From: Anup Patel @ 2022-01-31 4:17 UTC (permalink / raw)
To: Yang Li
Cc: Atish Patra, Paul Walmsley, Palmer Dabbelt, Albert Ou,
KVM General, kvm-riscv, linux-riscv,
linux-kernel@vger.kernel.org List, Abaci Robot
On Tue, Jan 11, 2022 at 6:35 AM Yang Li <yang.lee@linux.alibaba.com> wrote:
>
> Eliminate the following coccicheck warning:
> ./arch/riscv/kvm/vcpu_sbi_v01.c:117:2-3: Unneeded semicolon
>
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Thanks, I have queued this patch for 5.18
Regards,
Anup
> ---
> arch/riscv/kvm/vcpu_sbi_v01.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/riscv/kvm/vcpu_sbi_v01.c b/arch/riscv/kvm/vcpu_sbi_v01.c
> index 4c7e13ec9ccc..9acc8fa21d1f 100644
> --- a/arch/riscv/kvm/vcpu_sbi_v01.c
> +++ b/arch/riscv/kvm/vcpu_sbi_v01.c
> @@ -114,7 +114,7 @@ static int kvm_sbi_ext_v01_handler(struct kvm_vcpu *vcpu, struct kvm_run *run,
> default:
> ret = -EINVAL;
> break;
> - };
> + }
>
> return ret;
> }
> --
> 2.20.1.7.g153144c
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH -next] RISC-V: KVM: Remove unneeded semicolon
@ 2023-06-20 0:40 Yang Li
0 siblings, 0 replies; 3+ messages in thread
From: Yang Li @ 2023-06-20 0:40 UTC (permalink / raw)
To: anup
Cc: atishp, paul.walmsley, palmer, aou, kvm, kvm-riscv, linux-riscv,
linux-kernel, Yang Li, Abaci Robot
./arch/riscv/kvm/aia_imsic.c:94:2-3: Unneeded semicolon
./arch/riscv/kvm/aia_imsic.c:134:2-3: Unneeded semicolon
./arch/riscv/kvm/aia_imsic.c:173:2-3: Unneeded semicolon
./arch/riscv/kvm/aia_imsic.c:210:2-3: Unneeded semicolon
./arch/riscv/kvm/aia_imsic.c:296:2-3: Unneeded semicolon
./arch/riscv/kvm/aia_imsic.c:354:2-3: Unneeded semicolon
./arch/riscv/kvm/aia_device.c:105:4-5: Unneeded semicolon
./arch/riscv/kvm/aia_device.c:166:2-3: Unneeded semicolon
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5569
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
arch/riscv/kvm/aia_device.c | 4 ++--
arch/riscv/kvm/aia_imsic.c | 12 ++++++------
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/arch/riscv/kvm/aia_device.c b/arch/riscv/kvm/aia_device.c
index 84dae351b6d7..0eb689351b7d 100644
--- a/arch/riscv/kvm/aia_device.c
+++ b/arch/riscv/kvm/aia_device.c
@@ -102,7 +102,7 @@ static int aia_config(struct kvm *kvm, unsigned long type,
break;
default:
return -EINVAL;
- };
+ }
aia->mode = *nr;
} else
*nr = aia->mode;
@@ -163,7 +163,7 @@ static int aia_config(struct kvm *kvm, unsigned long type,
break;
default:
return -ENXIO;
- };
+ }
return 0;
}
diff --git a/arch/riscv/kvm/aia_imsic.c b/arch/riscv/kvm/aia_imsic.c
index 8f108cfa80e5..fd4965c6f591 100644
--- a/arch/riscv/kvm/aia_imsic.c
+++ b/arch/riscv/kvm/aia_imsic.c
@@ -91,7 +91,7 @@ static unsigned long imsic_eix_read(int ireg)
switch (ireg) {
imsic_read_switchcase_64(IMSIC_EIP0)
imsic_read_switchcase_64(IMSIC_EIE0)
- };
+ }
return 0;
}
@@ -131,7 +131,7 @@ static unsigned long imsic_eix_swap(int ireg, unsigned long val)
switch (ireg) {
imsic_swap_switchcase_64(IMSIC_EIP0, val)
imsic_swap_switchcase_64(IMSIC_EIE0, val)
- };
+ }
return 0;
}
@@ -170,7 +170,7 @@ static void imsic_eix_write(int ireg, unsigned long val)
switch (ireg) {
imsic_write_switchcase_64(IMSIC_EIP0, val)
imsic_write_switchcase_64(IMSIC_EIE0, val)
- };
+ }
}
#define imsic_vs_csr_set(__c, __v) \
@@ -207,7 +207,7 @@ static void imsic_eix_set(int ireg, unsigned long val)
switch (ireg) {
imsic_set_switchcase_64(IMSIC_EIP0, val)
imsic_set_switchcase_64(IMSIC_EIE0, val)
- };
+ }
}
static unsigned long imsic_mrif_atomic_rmw(struct imsic_mrif *mrif,
@@ -293,7 +293,7 @@ static int imsic_mrif_isel_check(u32 nr_eix, unsigned long isel)
break;
default:
return -ENOENT;
- };
+ }
#ifndef CONFIG_32BIT
if (num & 0x1)
return -EINVAL;
@@ -351,7 +351,7 @@ static int imsic_mrif_rmw(struct imsic_mrif *mrif, u32 nr_eix,
break;
default:
return -ENOENT;
- };
+ }
if (val)
*val = old_val;
--
2.20.1.7.g153144c
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-06-20 0:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-11 1:04 [PATCH -next] RISC-V: KVM: remove unneeded semicolon Yang Li
2022-01-31 4:17 ` Anup Patel
2023-06-20 0:40 [PATCH -next] RISC-V: KVM: Remove " Yang Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).