Skip to content

Commit 2ca5bb5

Browse files
bjdooks-ctPaul Walmsley
authored andcommitted
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>
1 parent 003c03a commit 2ca5bb5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/riscv/kernel/cpu_ops_sbi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ static void sbi_cpu_stop(void)
8585
int ret;
8686

8787
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);
8989
}
9090

9191
static int sbi_cpu_is_stopped(unsigned int cpuid)

0 commit comments

Comments
 (0)