From nobody Sat Jul 25 00:16:38 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 A0A413B8412 for ; Tue, 21 Jul 2026 21:32:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784669556; cv=none; b=oRTf4PUt0tMFQWzlcDxmWy/MGgGKAFuKOYX3pH/oJzbU7WpZr/MR/1rGo+nbyoTPUA8qnXFbqaZmrjhE4yIr3dlxJa2IoztV5a/2XvY2J9ZmlumwXb4NimhNo9uvsTlY37Yw7GHBlFNIJ0MzBsP6d770owzpH6Ldnyrtkh+86nU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784669556; c=relaxed/simple; bh=K1ygOAuKH4eSFbQH73nW8ThitkOM75A5CkSbA9Jv2JQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=ORrmH/GdbW0E/sudy18FR/hR3fv88nw/YkMPJsDy+8XXwgmOQ6BWdjVPoFSdRu92vtM1i5ycBdVCVua+JgnotAweyPFAbN0MVbDANwyu/pt1omqhUeexGD/tFMWzh2gEsqBdxQdxu/Ux/BH0ngsBFu3tHiA53V4SS47HwJOyY90= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JARfk+D3; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JARfk+D3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17A4D1F00A3A; Tue, 21 Jul 2026 21:32:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1784669555; bh=5fq+x6jp7BGwTkLn2vVdmCa2d0DvbUFiJ76h4dVVcgM=; h=From:Date:Subject:To:Cc; b=JARfk+D3YhYXLBl0o0qe31HrxDeWMki6WGX8j1rAvGgFTIXUFkJMEN7pwpZXZ9Ilz Q4m4XSAchJnawc3mJ1w6pmRfAeRLKZxz9uLMNG4M+XiY8GxFJb5gy6ZH+ifrWGFWlk ShtUq7oVLhOwRwkotlD14sykOlyD6npZEKWYfWHHYSiLYI8Z3ttWAoP2DIr7IMadio /y5Rn0I6suJBSjew2ZkayXJs0VfM4u4hhStdukQeEkUNaX9lHtTdLjNQ4aa9UL4a1P rV6tnrYPK9/SzirjgTvw1orvg2qm5DIBdGQQGQyKa8MlMBZ01bNeKiADc96YAeN0Vt jYGWVrh9x9p2w== From: Nathan Chancellor Date: Tue, 21 Jul 2026 14:32:22 -0700 Subject: [PATCH] issei: Fix size_t printk specifier in heci_{write,read}_buf() Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260721-issei-fix-size_t-specifier-v1-1-246155b42d48@kernel.org> X-B4-Tracking: v=1; b=H4sIAAAAAAAC/yXM0QqCQBRF0V+R+9yFcUiH+pWIyPFYpweTuRah+ O9O+rhgs2cxJMLkXMyS8KXx3WeUh0Li894/oGyzxTtfu+BLpRmoHX9qnHAb1QZEdkRSh1iFJpy AYyV5MCTkbptfrrvt07wQx/9RlmUFc4Qa+X4AAAA= X-Change-ID: 20260721-issei-fix-size_t-specifier-0ec57b79ee45 To: Alexander Usyskin , Arnd Bergmann , Greg Kroah-Hartman Cc: Karol Wachowski , Vitaly Lubart , linux-kernel@vger.kernel.org, Nathan Chancellor X-Mailer: b4 0.16-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=3608; i=nathan@kernel.org; h=from:subject:message-id; bh=K1ygOAuKH4eSFbQH73nW8ThitkOM75A5CkSbA9Jv2JQ=; b=owGbwMvMwCUmm602sfCA1DTG02pJDFnxTwt/H3iQHnj6Pp+R87Uyw4kFWhd4BVsv6srOC+FN/ N5Wu+h8RykLgxgXg6yYIkv1Y9XjhoZzzjLeODUJZg4rE8gQBi5OAZiIgAojw2U22a8CV47vrBOV uPHPS0N9x369eSfm5V6c2JEfe676xx5Ghra6FVpn7jK+fRmUvK/xYdRp1v0+/a2Vqf5aAjlXHqj uYgUA X-Developer-Key: i=nathan@kernel.org; a=openpgp; fpr=2437CB76E544CB6AB3D9DFD399739260CB6CB716 When building for 32-bit platforms, for which 'size_t' is 'unsigned int', there are a couple of warnings around incorrect printk specifiers: In file included from drivers/misc/issei/hw_heci.c:7: drivers/misc/issei/hw_heci.c: In function 'heci_write_hbuf': drivers/misc/issei/hw_heci.c:374:37: error: format '%lu' expects argument= of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Werr= or=3Dformat=3D] 374 | dev_err(&idev->dev, "Data size %zu not aligned to= slot size %lu\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~ ... drivers/misc/issei/hw_heci.c:374:79: note: format string is defined here 374 | dev_err(&idev->dev, "Data size %zu not aligned to= slot size %lu\n", | = ~~^ | = | | = long unsigned int | = %u drivers/misc/issei/hw_heci.c: In function 'heci_read_hbuf': drivers/misc/issei/hw_heci.c:404:37: error: format '%lu' expects argument= of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Werr= or=3Dformat=3D] 404 | dev_err(&idev->dev, "Data size %zu not aligned to= slot size %lu\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~ ... drivers/misc/issei/hw_heci.c:404:79: note: format string is defined here 404 | dev_err(&idev->dev, "Data size %zu not aligned to= slot size %lu\n", | = ~~^ | = | | = long unsigned int | = %u cc1: all warnings being treated as errors Use '%zu' for printing these values, the proper printk specifier for 'size_t'. Fixes: 8bf5e84998c3 ("issei: add heci hardware module") Signed-off-by: Nathan Chancellor Acked-by: Alexander Usyskin --- drivers/misc/issei/hw_heci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/issei/hw_heci.c b/drivers/misc/issei/hw_heci.c index 35c55de5c67a..501774aa95ff 100644 --- a/drivers/misc/issei/hw_heci.c +++ b/drivers/misc/issei/hw_heci.c @@ -371,7 +371,7 @@ static int heci_write_hbuf(struct issei_device *idev, c= onst void *data, size_t d struct issei_heci_hw *hw =3D to_heci_hw(idev); =20 if (!IS_ALIGNED(data_len, CB_SLOT_SIZE)) { - dev_err(&idev->dev, "Data size %zu not aligned to slot size %lu\n", + dev_err(&idev->dev, "Data size %zu not aligned to slot size %zu\n", data_len, CB_SLOT_SIZE); return -EINVAL; } @@ -401,7 +401,7 @@ static int heci_read_hbuf(struct issei_device *idev, vo= id *data, size_t data_len u32 *reg_buf =3D data; =20 if (!IS_ALIGNED(data_len, CB_SLOT_SIZE)) { - dev_err(&idev->dev, "Data size %zu not aligned to slot size %lu\n", + dev_err(&idev->dev, "Data size %zu not aligned to slot size %zu\n", data_len, CB_SLOT_SIZE); return -EINVAL; } --- base-commit: 2cedf2272f1bb42471e646868ac572cc5752bd91 change-id: 20260721-issei-fix-size_t-specifier-0ec57b79ee45 Best regards, -- =20 Cheers, Nathan