mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] riscv: cpu_ops_sbi: smp_processor_id() returns int, not unsigned int
@ 2026-01-02 14:58 Ben Dooks
  2026-01-07 20:05 ` Paul Walmsley
  0 siblings, 1 reply; 2+ messages in thread
From: Ben Dooks @ 2026-01-02 14:58 UTC (permalink / raw)
  To: linux-riscv, linux-kernel; +Cc: palmer, pjw, Ben Dooks

The print in sbi_cpu_stop() assumes smp_processor_id() returns an
unsigned int, when it is actually an int. Fix the format string to
avoid mismatch type warnings in rht pr_crit().

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
 arch/riscv/kernel/cpu_ops_sbi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/riscv/kernel/cpu_ops_sbi.c b/arch/riscv/kernel/cpu_ops_sbi.c
index 87d655944803..00aff669f5f2 100644
--- a/arch/riscv/kernel/cpu_ops_sbi.c
+++ b/arch/riscv/kernel/cpu_ops_sbi.c
@@ -85,7 +85,7 @@ static void sbi_cpu_stop(void)
 	int ret;
 
 	ret = sbi_hsm_hart_stop();
-	pr_crit("Unable to stop the cpu %u (%d)\n", smp_processor_id(), ret);
+	pr_crit("Unable to stop the cpu %d (%d)\n", smp_processor_id(), ret);
 }
 
 static int sbi_cpu_is_stopped(unsigned int cpuid)
-- 
2.37.2.352.g3c44437643


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

* Re: [PATCH] riscv: cpu_ops_sbi: smp_processor_id() returns int, not unsigned int
  2026-01-02 14:58 [PATCH] riscv: cpu_ops_sbi: smp_processor_id() returns int, not unsigned int Ben Dooks
@ 2026-01-07 20:05 ` Paul Walmsley
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Walmsley @ 2026-01-07 20:05 UTC (permalink / raw)
  To: Ben Dooks; +Cc: linux-riscv, linux-kernel, palmer, pjw

On Fri, 2 Jan 2026, Ben Dooks wrote:

> The print in sbi_cpu_stop() assumes smp_processor_id() returns an
> unsigned int, when it is actually an int. Fix the format string to
> avoid mismatch type warnings in rht pr_crit().
> 
> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>

Thanks, queued for v6.19-rc.


- Paul

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

end of thread, other threads:[~2026-01-07 20:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-02 14:58 [PATCH] riscv: cpu_ops_sbi: smp_processor_id() returns int, not unsigned int Ben Dooks
2026-01-07 20:05 ` Paul Walmsley

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

all inboxes | Powered by JetHome®