mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
riscv: Use '%u' to format the output of 'cpu'
[ Upstream commit e0872ab72630dada3ae055bfa410bf463ff1d1e0 ]
'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>
Fixes: f1e58583b9 ("RISC-V: Support cpu hotplug")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/4C127DEECDA287C8+20241017032010.96772-1-wangyuli@uniontech.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
235eaacf5c
commit
25fe64922f
@@ -65,7 +65,7 @@ void __cpu_die(unsigned int cpu)
|
|||||||
if (cpu_ops[cpu]->cpu_is_stopped)
|
if (cpu_ops[cpu]->cpu_is_stopped)
|
||||||
ret = cpu_ops[cpu]->cpu_is_stopped(cpu);
|
ret = cpu_ops[cpu]->cpu_is_stopped(cpu);
|
||||||
if (ret)
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user