lkml.org 
[lkml]   [2020]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectlinux-next: build warning after merge of the vhost tree
Hi all,

After merging the vhost tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

In file included from include/linux/device.h:15,
from include/linux/virtio.h:9,
from drivers/virtio/virtio_mem.c:10:
drivers/virtio/virtio_mem.c: In function 'virtio_mem_init':
drivers/virtio/virtio_mem.c:1720:27: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=]
1720 | dev_info(&vm->vdev->dev, "subblock size: 0x%x",
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
19 | #define dev_fmt(fmt) fmt
| ^~~
drivers/virtio/virtio_mem.c:1720:2: note: in expansion of macro 'dev_info'
1720 | dev_info(&vm->vdev->dev, "subblock size: 0x%x",
| ^~~~~~~~
drivers/virtio/virtio_mem.c:1720:46: note: format string is defined here
1720 | dev_info(&vm->vdev->dev, "subblock size: 0x%x",
| ~^
| |
| unsigned int
| %llx

Introduced by commit

676fa9ba893e ("virtio_mem: convert device block size into 64bit")

--
Cheers,
Stephen Rothwell
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2020-06-09 05:27    [W:0.916 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site