2021-03-04 05:54:30

by Jiapeng Chong

[permalink] [raw]
Subject: [PATCH] riscv: kasan: remove unneeded semicolon

Fix the following coccicheck warnings:

./arch/riscv/mm/kasan_init.c:217:2-3: Unneeded semicolon.

Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Jiapeng Chong <[email protected]>
---
arch/riscv/mm/kasan_init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/riscv/mm/kasan_init.c b/arch/riscv/mm/kasan_init.c
index 3fc18f4..e202cdb 100644
--- a/arch/riscv/mm/kasan_init.c
+++ b/arch/riscv/mm/kasan_init.c
@@ -214,7 +214,7 @@ void __init kasan_init(void)
break;

kasan_populate(kasan_mem_to_shadow(start), kasan_mem_to_shadow(end));
- };
+ }

for (i = 0; i < PTRS_PER_PTE; i++)
set_pte(&kasan_early_shadow_pte[i],
--
1.8.3.1


2021-03-10 03:08:01

by Palmer Dabbelt

[permalink] [raw]
Subject: Re: [PATCH] riscv: kasan: remove unneeded semicolon

On Mon, 01 Mar 2021 22:36:48 PST (-0800), [email protected] wrote:
> Fix the following coccicheck warnings:
>
> ./arch/riscv/mm/kasan_init.c:217:2-3: Unneeded semicolon.
>
> Reported-by: Abaci Robot <[email protected]>
> Signed-off-by: Jiapeng Chong <[email protected]>
> ---
> arch/riscv/mm/kasan_init.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/riscv/mm/kasan_init.c b/arch/riscv/mm/kasan_init.c
> index 3fc18f4..e202cdb 100644
> --- a/arch/riscv/mm/kasan_init.c
> +++ b/arch/riscv/mm/kasan_init.c
> @@ -214,7 +214,7 @@ void __init kasan_init(void)
> break;
>
> kasan_populate(kasan_mem_to_shadow(start), kasan_mem_to_shadow(end));
> - };
> + }
>
> for (i = 0; i < PTRS_PER_PTE; i++)
> set_pte(&kasan_early_shadow_pte[i],

Looks like this one has already been fixed, thanks though!