]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/nolibc: use makedev() in fstatat()
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 4 Apr 2026 08:08:23 +0000 (10:08 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Sat, 4 Apr 2026 08:29:07 +0000 (10:29 +0200)
commit867fb336a65ac59260674382168d2d93896ffa8d
tree5e198fff1f7228ada8d35ac0b92b9d44b88c1510
parent572246dcddb5455d62d5d152fe31105542b10ff5
tools/nolibc: use makedev() in fstatat()

fstatat() contains two open-coded copies of makedev() to handle minor
numbers >= 256. Now that the regular makedev() handles both large minor
and major numbers correctly use the common function.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://patch.msgid.link/20260404-nolibc-makedev-v2-6-456a429bf60c@weissschuh.net
tools/include/nolibc/sys/stat.h