Re: linux-next: build warnings after merge of the vfs-brauner tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

On Thu, 19 Dec 2024 17:32:35 +1100 Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote:
>
> 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.

Still there ...
-- 
Cheers,
Stephen Rothwell

Attachment: pgp2UuK93zm0Y.pgp
Description: OpenPGP digital signature


[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux