Re: linux-next: build warnings after merge of the vfs-brauner tree
From: Stephen Rothwell
Date: Thu Dec 19 2024 - 01:34:20 EST
Hi all,
On Fri, 13 Dec 2024 15:27:24 +1100 Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote:
>
> After merging the vfs-brauner tree, today's linux-next build (powerpc
> allyesconfig) produced these warnings:
>
> samples/vfs/test-list-all-mounts.c: In function 'main':
> samples/vfs/test-list-all-mounts.c:175:58: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type '__u64' {aka 'long unsigned int'} [-Wformat=]
> 175 | printf("Listing %u mounts for mount namespace %llu\n",
> | ~~~^
> | |
> | long long unsigned int
> | %lu
> 176 | info.nr_mounts, info.mnt_ns_id);
> | ~~~~~~~~~~~~~~
> | |
> | __u64 {aka long unsigned int}
> samples/vfs/test-list-all-mounts.c:186:83: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type '__u64' {aka 'long unsigned int'} [-Wformat=]
> 186 | printf("Finished listing %u mounts for mount namespace %llu\n\n",
> | ~~~^
> | |
> | long long unsigned int
> | %lu
> 187 | info.nr_mounts, info.mnt_ns_id);
> | ~~~~~~~~~~~~~~
> | |
> | __u64 {aka long unsigned int}
> samples/vfs/test-list-all-mounts.c:199:74: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type '__u64' {aka 'long unsigned int'} [-Wformat=]
> 199 | printf("Listing %u mounts for mount namespace %llu\n",
> | ~~~^
> | |
> | long long unsigned int
> | %lu
> 200 | info.nr_mounts, info.mnt_ns_id);
> | ~~~~~~~~~~~~~~
> | |
> | __u64 {aka long unsigned int}
> samples/vfs/test-list-all-mounts.c:218:64: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type '__u64' {aka 'long unsigned int'} [-Wformat=]
> 218 | printf("Failed to statmount(%llu) in mount namespace(%llu)\n",
> | ~~~^
> | |
> | long long unsigned int
> | %lu
> 219 | last_mnt_id, info.mnt_ns_id);
> | ~~~~~~~~~~~
> | |
> | __u64 {aka long unsigned int}
> samples/vfs/test-list-all-mounts.c:218:89: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type '__u64' {aka 'long unsigned int'} [-Wformat=]
> 218 | printf("Failed to statmount(%llu) in mount namespace(%llu)\n",
> | ~~~^
> | |
> | long long unsigned int
> | %lu
> 219 | last_mnt_id, info.mnt_ns_id);
> | ~~~~~~~~~~~~~~
> | |
> | __u64 {aka long unsigned int}
> samples/vfs/test-list-all-mounts.c:223:47: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type '__u64' {aka 'long unsigned int'} [-Wformat=]
> 223 | printf("mnt_id:\t\t%llu\nmnt_parent_id:\t%llu\nfs_type:\t%s\nmnt_root:\t%s\nmnt_point:\t%s\nmnt_opts:\t%s\n\n",
> | ~~~^
> | |
> | long long unsigned int
> | %lu
> 224 | stmnt->mnt_id,
> | ~~~~~~~~~~~~~
> | |
> | __u64 {aka long unsigned int}
> samples/vfs/test-list-all-mounts.c:223:69: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type '__u64' {aka 'long unsigned int'} [-Wformat=]
> 223 | printf("mnt_id:\t\t%llu\nmnt_parent_id:\t%llu\nfs_type:\t%s\nmnt_root:\t%s\nmnt_point:\t%s\nmnt_opts:\t%s\n\n",
> | ~~~^
> | |
> | long long unsigned int
> | %lu
> 224 | stmnt->mnt_id,
> 225 | stmnt->mnt_parent_id,
> | ~~~~~~~~~~~~~~~~~~~~
> | |
> | __u64 {aka long unsigned int}
>
> Introduced by commit
>
> 7b1da09dc088 ("samples: add test-list-all-mounts")
I am still seeing these warnings.
--
Cheers,
Stephen Rothwell
Attachment:
pgpQjISRZr5Se.pgp
Description: OpenPGP digital signature