* [PATCH] Use bool value in set_cpu_online()
@ 2024-03-18 6:54 Zhao Ke
2024-04-16 18:06 ` Charlie Jenkins
2024-05-22 23:51 ` patchwork-bot+linux-riscv
0 siblings, 2 replies; 3+ messages in thread
From: Zhao Ke @ 2024-03-18 6:54 UTC (permalink / raw)
To: paul.walmsley, aou
Cc: linux-riscv, linux-kernel, dawei.li, shenghui.qu, ke.zhao
The declaration of set_cpu_online() takes a bool value. So replace
int here to make it consistent with the declaration.
Signed-off-by: Zhao Ke <ke.zhao@shingroup.cn>
---
arch/riscv/kernel/smpboot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/riscv/kernel/smpboot.c b/arch/riscv/kernel/smpboot.c
index 519b6bd946e5..3f7c274653ab 100644
--- a/arch/riscv/kernel/smpboot.c
+++ b/arch/riscv/kernel/smpboot.c
@@ -229,7 +229,7 @@ asmlinkage __visible void smp_callin(void)
riscv_ipi_enable();
numa_add_cpu(curr_cpuid);
- set_cpu_online(curr_cpuid, 1);
+ set_cpu_online(curr_cpuid, true);
if (has_vector()) {
if (riscv_v_setup_vsize())
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Use bool value in set_cpu_online()
2024-03-18 6:54 [PATCH] Use bool value in set_cpu_online() Zhao Ke
@ 2024-04-16 18:06 ` Charlie Jenkins
2024-05-22 23:51 ` patchwork-bot+linux-riscv
1 sibling, 0 replies; 3+ messages in thread
From: Charlie Jenkins @ 2024-04-16 18:06 UTC (permalink / raw)
To: Zhao Ke
Cc: paul.walmsley, aou, linux-riscv, linux-kernel, dawei.li,
shenghui.qu
On Mon, Mar 18, 2024 at 02:54:04PM +0800, Zhao Ke wrote:
> The declaration of set_cpu_online() takes a bool value. So replace
> int here to make it consistent with the declaration.
>
> Signed-off-by: Zhao Ke <ke.zhao@shingroup.cn>
> ---
> arch/riscv/kernel/smpboot.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/riscv/kernel/smpboot.c b/arch/riscv/kernel/smpboot.c
> index 519b6bd946e5..3f7c274653ab 100644
> --- a/arch/riscv/kernel/smpboot.c
> +++ b/arch/riscv/kernel/smpboot.c
> @@ -229,7 +229,7 @@ asmlinkage __visible void smp_callin(void)
> riscv_ipi_enable();
>
> numa_add_cpu(curr_cpuid);
> - set_cpu_online(curr_cpuid, 1);
> + set_cpu_online(curr_cpuid, true);
>
> if (has_vector()) {
> if (riscv_v_setup_vsize())
> --
> 2.34.1
>
>
> _______________________________________________
> linux-riscv mailing list
> linux-riscv@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv
Thank you!
Reviewed-by: Charlie Jenkins <charlie@rivosinc.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Use bool value in set_cpu_online()
2024-03-18 6:54 [PATCH] Use bool value in set_cpu_online() Zhao Ke
2024-04-16 18:06 ` Charlie Jenkins
@ 2024-05-22 23:51 ` patchwork-bot+linux-riscv
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+linux-riscv @ 2024-05-22 23:51 UTC (permalink / raw)
To: Zhao Ke
Cc: linux-riscv, paul.walmsley, aou, linux-kernel, dawei.li,
shenghui.qu
Hello:
This patch was applied to riscv/linux.git (for-next)
by Palmer Dabbelt <palmer@rivosinc.com>:
On Mon, 18 Mar 2024 14:54:04 +0800 you wrote:
> The declaration of set_cpu_online() takes a bool value. So replace
> int here to make it consistent with the declaration.
>
> Signed-off-by: Zhao Ke <ke.zhao@shingroup.cn>
> ---
> arch/riscv/kernel/smpboot.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- Use bool value in set_cpu_online()
https://git.kernel.org/riscv/c/07f23286451d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-05-22 23:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-18 6:54 [PATCH] Use bool value in set_cpu_online() Zhao Ke
2024-04-16 18:06 ` Charlie Jenkins
2024-05-22 23:51 ` patchwork-bot+linux-riscv
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox