From nobody Sun Feb 8 04:18:10 2026 Received: from imap4.hz.codethink.co.uk (imap4.hz.codethink.co.uk [188.40.203.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EAF83219A8D for ; Fri, 2 Jan 2026 14:58:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.203.114 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767365929; cv=none; b=p5xqmPW+B4FRYig2745QWrjcy8ehnENlHf36dtAeparfmsXpFLL1bho8eY0qqkR3k0n8lDhi42Po3SRktPEADJitv4qG4t5Tt9uneou22qYV3MA0CQHNOWJoAVY3dWvURUPEccF/N+Kxb7ELye3qg9ssELpZCxdgTq+vu0LrKKI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767365929; c=relaxed/simple; bh=3CFcFBj94FOKt9pXq9/AWbh7O+beMI/DBGgqUrteW4A=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=eWKK6oN1/SMJg6fAOUWUqkpEZ6OagVHCuZ+mcIdwvVRttfQ+1FUhNRVJiOGRMKnEIPcVmStVpc5l4MB0On1ykE7EHB7ILvBu/j6U8EFP+eJGhUODZfoaJXz2PjecS7mbEt7w9KUrPnitiK7CKyJpZAC3ChY0j/EAy1ydCgKQzfM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=codethink.co.uk; spf=pass smtp.mailfrom=codethink.com; dkim=pass (2048-bit key) header.d=codethink.co.uk header.i=@codethink.co.uk header.b=HalY41Iy; arc=none smtp.client-ip=188.40.203.114 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=codethink.co.uk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=codethink.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=codethink.co.uk header.i=@codethink.co.uk header.b="HalY41Iy" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codethink.co.uk; s=imap4-20230908; h=Sender:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:In-Reply-To: References; bh=OV01wve0EB7hlDog0UIx2pJcygkePvLbSTiy31DcX3E=; b=HalY41Iyeu8XAd NMxj40TaqAxNP/uksiGYrMPM3nSS3NzHe+qchHEUNU1BGc4vxmaU+L8OI9ulZGLTJywHGaNRphBxd JnpZJVOTrgLySJkmwrgRo1v5fdLHWN5uee7WuGTP4zBXBDzX5FALpkXUhDGyPRxm3bf8oRYdeFe96 cHtM2ruksW298C1V64Rn67F1JWLm2zbjIpi82Bk3Dl4KOHVpXEkp7R4AuEj4LjRfECRUN85XGTEJf tsjCtOH2zT+qjhCX+1kByvTerImzWmcPR9ehJC5WYMvDDMsM/1KfK/5T+LG8zS3QXQTAbL6mdsuBn oXNqCuZadVZfn0pZceqQ==; Received: from [167.98.27.226] (helo=rainbowdash) by imap4.hz.codethink.co.uk with esmtpsa (Exim 4.94.2 #2 (Debian)) id 1vbgbx-003odt-A4; Fri, 02 Jan 2026 14:58:41 +0000 Received: from ben by rainbowdash with local (Exim 4.99.1) (envelope-from ) id 1vbgbx-00000002l8v-0EvY; Fri, 02 Jan 2026 14:58:41 +0000 From: Ben Dooks To: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: palmer@dabbelt.com, pjw@kernel.org, Ben Dooks Subject: [PATCH] riscv: cpu_ops_sbi: smp_processor_id() returns int, not unsigned int Date: Fri, 2 Jan 2026 14:58:39 +0000 Message-Id: <20260102145839.657864-1-ben.dooks@codethink.co.uk> X-Mailer: git-send-email 2.37.2.352.g3c44437643 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: srv_ts003@codethink.com Content-Type: text/plain; charset="utf-8" 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 --- 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_sb= i.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; =20 ret =3D 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); } =20 static int sbi_cpu_is_stopped(unsigned int cpuid) --=20 2.37.2.352.g3c44437643