diff options
| author | Geert Uytterhoeven <[email protected]> | 2021-11-18 10:26:21 -0800 | 
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2021-11-21 09:44:19 -0800 | 
| commit | 61eb495c83bf6ebde490992bf888ca15b9babc39 (patch) | |
| tree | ad2d92d6637ee7ed7ea56d2e1427a1a889c974de /drivers/platform/surface/aggregator/ssh_request_layer.h | |
| parent | 923dcc5eb0c111eccd51cc7ce1658537e3c38b25 (diff) | |
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",
	  |   ^~~~~~~
Cc: [email protected]
Fixes: 7bb9557b48fcabaa ("pstore/blk: Use the normal block device I/O path")
Signed-off-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: Jens Axboe <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/platform/surface/aggregator/ssh_request_layer.h')
0 files changed, 0 insertions, 0 deletions