lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20241219173235.6600d08a@canb.auug.org.au>
Date: Thu, 19 Dec 2024 17:32:35 +1100
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: Christian Brauner <brauner@...nel.org>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>, Linux Next
 Mailing List <linux-next@...r.kernel.org>
Subject: Re: linux-next: build warnings after merge of the vfs-brauner tree

Hi all,

On Fri, 13 Dec 2024 15:27:24 +1100 Stephen Rothwell <sfr@...b.auug.org.au> 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

Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ