public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RESEND. PATCH v2] riscv: Use '%u' to format the output of 'cpu'
@ 2024-09-19  3:41 WangYuli
  0 siblings, 0 replies; 4+ messages in thread
From: WangYuli @ 2024-09-19  3:41 UTC (permalink / raw)
  To: paul.walmsley, palmer, aou, samuel.holland, conor.dooley, charlie,
	macro
  Cc: linux-riscv, linux-kernel, atish.patra, anup, guanwentao, zhanjun,
	tglx, peterz, palmer, mikelley, oleksandr, deller, gpiccoli,
	WangYuli

'cpu' is an unsigned integer, so its conversion specifier should
be %u, not %d.

Suggested-by: Wentao Guan <guanwentao@uniontech.com>
Suggested-by: Maciej W. Rozycki <macro@orcam.me.uk>
Link: https://lore.kernel.org/all/alpine.DEB.2.21.2409122309090.40372@angie.orcam.me.uk/
Signed-off-by: WangYuli <wangyuli@uniontech.com>
Reviewed-by: Charlie Jenkins <charlie@rivosinc.com>
Tested-by: Charlie Jenkins <charlie@rivosinc.com>
---
 arch/riscv/kernel/cpu-hotplug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/riscv/kernel/cpu-hotplug.c b/arch/riscv/kernel/cpu-hotplug.c
index 28b58fc5ad19..a1e38ecfc8be 100644
--- a/arch/riscv/kernel/cpu-hotplug.c
+++ b/arch/riscv/kernel/cpu-hotplug.c
@@ -58,7 +58,7 @@ void arch_cpuhp_cleanup_dead_cpu(unsigned int cpu)
 	if (cpu_ops->cpu_is_stopped)
 		ret = cpu_ops->cpu_is_stopped(cpu);
 	if (ret)
-		pr_warn("CPU%d may not have stopped: %d\n", cpu, ret);
+		pr_warn("CPU%u may not have stopped: %d\n", cpu, ret);
 }
 
 /*
-- 
2.45.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [RESEND. PATCH v2] riscv: Use '%u' to format the output of 'cpu'
@ 2024-09-26  2:17 WangYuli
  0 siblings, 0 replies; 4+ messages in thread
From: WangYuli @ 2024-09-26  2:17 UTC (permalink / raw)
  To: paul.walmsley, palmer, aou, samuel.holland, conor.dooley, charlie,
	macro, palmer
  Cc: linux-riscv, linux-kernel, atish.patra, anup, guanwentao, zhanjun,
	tglx, peterz, mikelley, oleksandr, deller, gpiccoli, apatel, maz,
	kernelfans, jszhang, daniel.lezcano, Alistair.Francis, atishp,
	dwmw2, mark.rutland, sabrapan, ross.philipson, WangYuli

'cpu' is an unsigned integer, so its conversion specifier should
be %u, not %d.

Suggested-by: Wentao Guan <guanwentao@uniontech.com>
Suggested-by: Maciej W. Rozycki <macro@orcam.me.uk>
Link: https://lore.kernel.org/all/alpine.DEB.2.21.2409122309090.40372@angie.orcam.me.uk/
Signed-off-by: WangYuli <wangyuli@uniontech.com>
Reviewed-by: Charlie Jenkins <charlie@rivosinc.com>
Tested-by: Charlie Jenkins <charlie@rivosinc.com>
---
 arch/riscv/kernel/cpu-hotplug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/riscv/kernel/cpu-hotplug.c b/arch/riscv/kernel/cpu-hotplug.c
index 28b58fc5ad19..a1e38ecfc8be 100644
--- a/arch/riscv/kernel/cpu-hotplug.c
+++ b/arch/riscv/kernel/cpu-hotplug.c
@@ -58,7 +58,7 @@ void arch_cpuhp_cleanup_dead_cpu(unsigned int cpu)
 	if (cpu_ops->cpu_is_stopped)
 		ret = cpu_ops->cpu_is_stopped(cpu);
 	if (ret)
-		pr_warn("CPU%d may not have stopped: %d\n", cpu, ret);
+		pr_warn("CPU%u may not have stopped: %d\n", cpu, ret);
 }
 
 /*
-- 
2.45.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [RESEND. PATCH v2] riscv: Use '%u' to format the output of 'cpu'
@ 2024-10-17  3:20 WangYuli
  2024-10-17 21:50 ` patchwork-bot+linux-riscv
  0 siblings, 1 reply; 4+ messages in thread
From: WangYuli @ 2024-10-17  3:20 UTC (permalink / raw)
  To: paul.walmsley, palmer, aou, samuel.holland, conor.dooley, charlie,
	macro, palmer
  Cc: linux-riscv, linux-kernel, atish.patra, anup, guanwentao, zhanjun,
	tglx, peterz, mikelley, oleksandr, deller, gpiccoli, apatel, maz,
	kernelfans, jszhang, daniel.lezcano, Alistair.Francis, atishp,
	dwmw2, mark.rutland, sabrapan, ross.philipson, WangYuli

'cpu' is an unsigned integer, so its conversion specifier should
be %u, not %d.

Suggested-by: Wentao Guan <guanwentao@uniontech.com>
Suggested-by: Maciej W. Rozycki <macro@orcam.me.uk>
Link: https://lore.kernel.org/all/alpine.DEB.2.21.2409122309090.40372@angie.orcam.me.uk/
Signed-off-by: WangYuli <wangyuli@uniontech.com>
Reviewed-by: Charlie Jenkins <charlie@rivosinc.com>
Tested-by: Charlie Jenkins <charlie@rivosinc.com>
---
 arch/riscv/kernel/cpu-hotplug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/riscv/kernel/cpu-hotplug.c b/arch/riscv/kernel/cpu-hotplug.c
index 28b58fc5ad19..a1e38ecfc8be 100644
--- a/arch/riscv/kernel/cpu-hotplug.c
+++ b/arch/riscv/kernel/cpu-hotplug.c
@@ -58,7 +58,7 @@ void arch_cpuhp_cleanup_dead_cpu(unsigned int cpu)
 	if (cpu_ops->cpu_is_stopped)
 		ret = cpu_ops->cpu_is_stopped(cpu);
 	if (ret)
-		pr_warn("CPU%d may not have stopped: %d\n", cpu, ret);
+		pr_warn("CPU%u may not have stopped: %d\n", cpu, ret);
 }
 
 /*
-- 
2.45.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [RESEND. PATCH v2] riscv: Use '%u' to format the output of 'cpu'
  2024-10-17  3:20 [RESEND. PATCH v2] riscv: Use '%u' to format the output of 'cpu' WangYuli
@ 2024-10-17 21:50 ` patchwork-bot+linux-riscv
  0 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+linux-riscv @ 2024-10-17 21:50 UTC (permalink / raw)
  To: WangYuli
  Cc: linux-riscv, paul.walmsley, palmer, aou, samuel.holland,
	conor.dooley, charlie, macro, palmer, linux-kernel, atish.patra,
	anup, guanwentao, zhanjun, tglx, peterz, mikelley, oleksandr,
	deller, gpiccoli, apatel, maz, kernelfans, jszhang,
	daniel.lezcano, Alistair.Francis, atishp, dwmw2, mark.rutland,
	sabrapan, ross.philipson

Hello:

This patch was applied to riscv/linux.git (fixes)
by Palmer Dabbelt <palmer@rivosinc.com>:

On Thu, 17 Oct 2024 11:20:10 +0800 you wrote:
> 'cpu' is an unsigned integer, so its conversion specifier should
> be %u, not %d.
> 
> Suggested-by: Wentao Guan <guanwentao@uniontech.com>
> Suggested-by: Maciej W. Rozycki <macro@orcam.me.uk>
> Link: https://lore.kernel.org/all/alpine.DEB.2.21.2409122309090.40372@angie.orcam.me.uk/
> Signed-off-by: WangYuli <wangyuli@uniontech.com>
> Reviewed-by: Charlie Jenkins <charlie@rivosinc.com>
> Tested-by: Charlie Jenkins <charlie@rivosinc.com>
> 
> [...]

Here is the summary with links:
  - [RESEND.,v2] riscv: Use '%u' to format the output of 'cpu'
    https://git.kernel.org/riscv/c/c05ad457ce8c

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] 4+ messages in thread

end of thread, other threads:[~2024-10-17 21:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-17  3:20 [RESEND. PATCH v2] riscv: Use '%u' to format the output of 'cpu' WangYuli
2024-10-17 21:50 ` patchwork-bot+linux-riscv
  -- strict thread matches above, loose matches on Subject: below --
2024-09-26  2:17 WangYuli
2024-09-19  3:41 WangYuli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox