Skip to contentSkip to conversation

linux-next: build warning after merge of the fsinfo tree

DISCUSSION Stephen Rothwell 1 participant 1 message May 14, 2020 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the fsinfo tree, today's linux-next build (powerpc allyesconfig) produced this warning:

samples/vfs/test-fsinfo.c: In function 'dump_fsinfo_generic_statfs':
samples/vfs/test-fsinfo.c:135:30: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type '__u64' {aka 'long unsigned int'} [-Wformat=]

  135 |  printf("\tbsize        : %llu\n", f->f_bsize);
      |                           ~~~^     ~~~~~~~~~~
      |                              |      |
      |                              |      __u64 {aka long unsigned int}
      |                              long long unsigned int
      |                           %lu
samples/vfs/test-fsinfo.c:136:30: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type '__u64' {aka 'long unsigned int'} [-Wformat=]
  136 |  printf("\tfrsize       : %llu\n", f->f_frsize);
      |                           ~~~^     ~~~~~~~~~~~
      |                              |      |
      |                              |      __u64 {aka long unsigned int}
      |                              long long unsigned int
      |                           %lu

Introduced by commit

1b3979fc0f0c ("fsinfo: Add fsinfo() syscall to query filesystem information")

Signature · 2 lines
Cheers,
Stephen Rothwell