[PATCH] selftests/landlock: print st_ino as unsigned long long
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Tue Nov 3 16:03:44 UTC 2026
> On 32-bit architectures with a 64-bit ino_t, st_ino is an unsigned long
> long, and printing it with %lu warns:
>
> fs_test.c:10511:57: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type '__ino64_t' {aka 'long long unsigned int'} [-Wformat=]
>
> Cast it to unsigned long long and print it with %llu.
>
> Signed-off-by: Sasha Levin <sashal at kernel.org>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261103155512.535137-1-sashal@kernel.org?part=1
More information about the Linux-security-module-archive
mailing list