linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: build warning after merge of the fsinfo tree
@ 2020-05-12 10:22 Stephen Rothwell
  2020-05-12 23:27 ` David Howells
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2020-05-12 10:22 UTC (permalink / raw)
  To: David Howells; +Cc: Linux Next Mailing List, Linux Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 864 bytes --]

Hi all,

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

samples/watch_queue/watch_test.c: In function 'saw_super_change':
samples/watch_queue/watch_test.c:107:21: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type '__u64' {aka 'long unsigned int'} [-Wformat=]
  107 |  printf("SUPER %08llx change=%u[%s]\n",
      |                ~~~~~^
      |                     |
      |                     long long unsigned int
      |                %08lx
  108 |         s->sb_id, n->subtype, super_subtypes[n->subtype]);
      |         ~~~~~~~~     
      |          |
      |          __u64 {aka long unsigned int}

Introduced by commit

  6e1617461ab8 ("watch_queue: sample: Display superblock notifications")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: linux-next: build warning after merge of the fsinfo tree
  2020-05-12 10:22 linux-next: build warning after merge of the fsinfo tree Stephen Rothwell
@ 2020-05-12 23:27 ` David Howells
  0 siblings, 0 replies; 3+ messages in thread
From: David Howells @ 2020-05-12 23:27 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: dhowells, Linux Next Mailing List, Linux Kernel Mailing List

Stephen Rothwell <sfr@canb.auug.org.au> wrote:

> samples/watch_queue/watch_test.c:107:21: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type '__u64' {aka 'long unsigned int'} [-Wformat=]

I wish we'd been consistent on how we'd defined __u64.  It needs a cast.

David


^ permalink raw reply	[flat|nested] 3+ messages in thread

* linux-next: build warning after merge of the fsinfo tree
@ 2020-05-14  9:10 Stephen Rothwell
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Rothwell @ 2020-05-14  9:10 UTC (permalink / raw)
  To: David Howells; +Cc: Linux Next Mailing List, Linux Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 1356 bytes --]

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")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-14  9:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-12 10:22 linux-next: build warning after merge of the fsinfo tree Stephen Rothwell
2020-05-12 23:27 ` David Howells
2020-05-14  9:10 Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).