Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools/nolibc: use 64-bit ino_t

The kernel uses 64-bit values for inode numbers.
Currently these might be truncated to 32-bit when assigned to
nolibc's ino_t values.

Switch to 64-bit ino_t consistently.

As ino_t is never used directly in kernel ABIs, no systemcall wrappers
need to be adapted.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/lkml/cec27d94-c99d-4c57-9a12-275ea663dda8@app.fastmail.com/
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>

+1 -1
+1 -1
tools/include/nolibc/std.h
··· 20 20 21 21 /* those are commonly provided by sys/types.h */ 22 22 typedef unsigned int dev_t; 23 - typedef unsigned long ino_t; 23 + typedef uint64_t ino_t; 24 24 typedef unsigned int mode_t; 25 25 typedef signed int pid_t; 26 26 typedef unsigned int uid_t;