https://github.com/torvalds/linux
Revision 61eb495c83bf6ebde490992bf888ca15b9babc39 authored by Geert Uytterhoeven on 18 November 2021, 18:26:21 UTC, committed by Linus Torvalds on 21 November 2021, 17:44:19 UTC
On 32-bit:

    fs/pstore/blk.c: In function ‘__best_effort_init’:
    include/linux/kern_levels.h:5:18: warning: format ‘%zu’ expects argument of type ‘size_t’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
	5 | #define KERN_SOH "\001"  /* ASCII Start Of Header */
	  |                  ^~~~~~
    include/linux/kern_levels.h:14:19: note: in expansion of macro ‘KERN_SOH’
       14 | #define KERN_INFO KERN_SOH "6" /* informational */
	  |                   ^~~~~~~~
    include/linux/printk.h:373:9: note: in expansion of macro ‘KERN_INFO’
      373 |  printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
	  |         ^~~~~~~~~
    fs/pstore/blk.c:314:3: note: in expansion of macro ‘pr_info’
      314 |   pr_info("attached %s (%zu) (no dedicated panic_write!)\n",
	  |   ^~~~~~~

Cc: stable@vger.kernel.org
Fixes: 7bb9557b48fcabaa ("pstore/blk: Use the normal block device I/O path")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210629103700.1935012-1-geert@linux-m68k.org
Cc: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 923dcc5
History
Tip revision: 61eb495c83bf6ebde490992bf888ca15b9babc39 authored by Geert Uytterhoeven on 18 November 2021, 18:26:21 UTC
pstore/blk: Use "%lu" to format unsigned long
Tip revision: 61eb495
File Mode Size
hvc
ipwireless
serdev
serial
vt
Kconfig -rw-r--r-- 13.5 KB
Makefile -rw-r--r-- 1.0 KB
amiserial.c -rw-r--r-- 40.3 KB
ehv_bytechan.c -rw-r--r-- 21.8 KB
goldfish.c -rw-r--r-- 12.0 KB
mips_ejtag_fdc.c -rw-r--r-- 35.3 KB
moxa.c -rw-r--r-- 60.5 KB
mxser.c -rw-r--r-- 51.3 KB
n_gsm.c -rw-r--r-- 80.8 KB
n_hdlc.c -rw-r--r-- 22.2 KB
n_null.c -rw-r--r-- 1.3 KB
n_tty.c -rw-r--r-- 60.9 KB
nozomi.c -rw-r--r-- 45.9 KB
pty.c -rw-r--r-- 24.2 KB
rpmsg_tty.c -rw-r--r-- 6.7 KB
synclink_gt.c -rw-r--r-- 128.0 KB
sysrq.c -rw-r--r-- 27.5 KB
tty.h -rw-r--r-- 4.0 KB
tty_audit.c -rw-r--r-- 5.6 KB
tty_baudrate.c -rw-r--r-- 6.6 KB
tty_buffer.c -rw-r--r-- 16.3 KB
tty_io.c -rw-r--r-- 87.9 KB
tty_ioctl.c -rw-r--r-- 22.7 KB
tty_jobctrl.c -rw-r--r-- 14.5 KB
tty_ldisc.c -rw-r--r-- 20.7 KB
tty_ldsem.c -rw-r--r-- 10.5 KB
tty_mutex.c -rw-r--r-- 1.2 KB
tty_port.c -rw-r--r-- 18.2 KB
ttynull.c -rw-r--r-- 2.3 KB
vcc.c -rw-r--r-- 22.1 KB

back to top