Re: [PATCH -next] samples/vfs/mountinfo: Use __u64 instead of uint64_t

From: Christian Brauner
Date: Fri Jan 10 2025 - 06:08:59 EST


On Mon, 06 Jan 2025 14:48:01 +0100, Geert Uytterhoeven wrote:
> On 32-bit (e.g. arm32, m68k):
>
> samples/vfs/mountinfo.c: In function ‘dump_mountinfo’:
> samples/vfs/mountinfo.c:145:29: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Wformat=]
> 145 | printf("0x%lx 0x%lx 0x%llx ", mnt_ns_id, mnt_id, buf->mnt_parent_id);
> | ~~^ ~~~~~~~~~
> | | |
> | long unsigned int uint64_t {aka long long unsigned int}
> | %llx
> samples/vfs/mountinfo.c:145:35: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Wformat=]
> 145 | printf("0x%lx 0x%lx 0x%llx ", mnt_ns_id, mnt_id, buf->mnt_parent_id);
> | ~~^ ~~~~~~
> | | |
> | long unsigned int uint64_t {aka long long unsigned int}
> | %llx
>
> [...]

Applied to the vfs-6.14.mount branch of the vfs/vfs.git tree.
Patches in the vfs-6.14.mount 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-6.14.mount

[1/1] samples/vfs/mountinfo: Use __u64 instead of uint64_t
https://git.kernel.org/vfs/vfs/c/f79e6eb84d4d