From nobody Wed Apr 1 10:01:27 2026 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (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 D4C5D43D50D for ; Tue, 31 Mar 2026 17:51:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774979507; cv=none; b=EhwbV8nzN3EM+IRn9EVOW+IAwt8qID6Xo1+qs4ZWBSJPLQikQyxZI47LPR21+shMAxW4AR270ZCwuxKXvZFBN/J01KtYGFYlga1JNAEvw1dfNXM8LdltCEgBtV+wJGkdHDHe11230wtCpCmAuqiPu6GSMmI7xqcazQoKOg3qOwc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774979507; c=relaxed/simple; bh=Y7/BQXB4k1KpzXK5c57Hycq9GNT/Wa2GJPMiXPqjf2U=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JC0g7OdrgkVo69jhyNev5WVFCFWwVt20vioVyZMKuVzi35z2tg37WJ4Vg+76lp/963sbcyjML9wVtrnuefH0bqzlJomppt4m2yxBDvF2u4qA2WYIvBSYZiu3HluNLht3ECI7k/TE6nkbL1Mh1+6L20SFoMQHuJjXqEQhd3+dzf0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=frWCMAdD; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="frWCMAdD" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1774979503; bh=Y7/BQXB4k1KpzXK5c57Hycq9GNT/Wa2GJPMiXPqjf2U=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=frWCMAdDu2bR5iJKDgxB2x3qx00FHiEGt1YRDeSZWQqJLCg1L+mxgFaXSGvtLhiTE dyh22hSMpdhUW7t5tompnOYAN1TQ7KLohbrDtCsHSc9RNY0OsJclbLX4psDKOtHnzC 2K4SvjQP3Rk0N4EenLGYtpPi+kDPb2Do+Tpv5m+g= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Tue, 31 Mar 2026 19:51:44 +0200 Subject: [PATCH 4/6] tools/nolibc: make dev_t 64 bits wide 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: <20260331-nolibc-makedev-v1-4-ee79ee31e4d6@weissschuh.net> References: <20260331-nolibc-makedev-v1-0-ee79ee31e4d6@weissschuh.net> In-Reply-To: <20260331-nolibc-makedev-v1-0-ee79ee31e4d6@weissschuh.net> To: Willy Tarreau Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.15.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774979502; l=1033; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=Y7/BQXB4k1KpzXK5c57Hycq9GNT/Wa2GJPMiXPqjf2U=; b=bpiO/2VsGty1jwaWJabAaeeQBxq0XS6W45ADGnXpQ6VaAx10D2D9dVJp4fsMfnQF2jQUFjoFE h4EA6AKZNUOD9rfGn9MM4yuGS2umym5ucL5H/zb3LRIJHjU1JkhSRaQ X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= statx() returns both 32-bit minor and major numbers. For both of them to fit into the 'dev_t' in 'struct stat', that needs to be 64 bits wide. The other uses of 'dev_t' in nolibc are makedev() and friends and mknod(). makedev() and friends are going to be adapted in an upcoming commit and mknod() will silently truncate 'dev_t' to 'unsigned int' in the kernel, similar to other libcs. Signed-off-by: Thomas Wei=C3=9Fschuh --- tools/include/nolibc/std.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/include/nolibc/std.h b/tools/include/nolibc/std.h index b9a116123902..dc2dc46f8ca8 100644 --- a/tools/include/nolibc/std.h +++ b/tools/include/nolibc/std.h @@ -19,7 +19,7 @@ #include =20 /* those are commonly provided by sys/types.h */ -typedef unsigned int dev_t; +typedef uint64_t dev_t; typedef uint64_t ino_t; typedef unsigned int mode_t; typedef signed int pid_t; --=20 2.53.0