]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pstore/blk: Use "%lu" to format unsigned long
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 29 Jun 2021 10:37:00 +0000 (12:37 +0200)
committerKees Cook <keescook@chromium.org>
Tue, 29 Jun 2021 21:11:09 +0000 (14:11 -0700)
commitc5d4fb2539cad2e62c5a3f0d8237613c394f297e
tree9cfe7fd84ac37669230885bd128b276cb327a65b
parent1d1f6cc5818c750ac69473e4951e7165913fbf16
pstore/blk: Use "%lu" to format unsigned long

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",
  |   ^~~~~~~

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
fs/pstore/blk.c