Re: [PATCH] selftests/statmount: fix format warnings on 32-bit and s390

From: Christian Brauner

Date: Thu Nov 05 2026 - 17:00:59 EST


On Tue, 03 Nov 2026 10:55:08 -0500, Sasha Levin wrote:
> The f_type field of struct statfs is an int on i386 and armhf and an
> unsigned int on s390x, and the listmount() results are uint64_t, so
> printing them with %lx and %zi warns:
>
> statmount_test_ns.c:243:56: warning: format '%zi' expects argument of type 'signed size_t', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=]
>
> Cast f_type to unsigned long, and print the listmount() results as
> unsigned long long.
>
> [...]

Applied to the vfs.fixes branch of the vfs/vfs.git tree.
Patches in the vfs.fixes branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.fixes

[1/1] selftests/statmount: fix format warnings on 32-bit and s390
https://git.kernel.org/vfs/vfs/c/de48f2a93e4f