Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

riscv: cpu_ops_sbi: smp_processor_id() returns int, not unsigned int

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>
Link: https://patch.msgid.link/20260102145839.657864-1-ben.dooks@codethink.co.uk
Signed-off-by: Paul Walmsley <pjw@kernel.org>

authored by

Ben Dooks and committed by
Paul Walmsley
2ca5bb54 003c03a4

+1 -1
+1 -1
arch/riscv/kernel/cpu_ops_sbi.c
··· 85 85 int ret; 86 86 87 87 ret = sbi_hsm_hart_stop(); 88 - pr_crit("Unable to stop the cpu %u (%d)\n", smp_processor_id(), ret); 88 + pr_crit("Unable to stop the cpu %d (%d)\n", smp_processor_id(), ret); 89 89 } 90 90 91 91 static int sbi_cpu_is_stopped(unsigned int cpuid)