mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
libnvdimm, btt: fix format string warnings
Fix format warnings (seen on i386) in nvdimm/btt.c:
../drivers/nvdimm/btt.c: In function ‘btt_map_init’:
../drivers/nvdimm/btt.c:430:3: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=]
dev_WARN_ONCE(to_dev(arena), size < 512,
^
../drivers/nvdimm/btt.c: In function ‘btt_log_init’:
../drivers/nvdimm/btt.c:474:3: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=]
dev_WARN_ONCE(to_dev(arena), size < 512,
^
Fixes: 86652d2eb3 ("libnvdimm, btt: clean up warning and error messages")
Reported-by: Arnd Bergmann <[email protected]>
Reported-by: kbuild test robot <[email protected]>
Cc: Vishal Verma <[email protected]>
Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
This commit is contained in:
parent
86652d2eb3
commit
04c3c982fc
1 changed files with 2 additions and 2 deletions
|
|
@ -428,7 +428,7 @@ static int btt_map_init(struct arena_info *arena)
|
|||
size_t size = min(mapsize, chunk_size);
|
||||
|
||||
dev_WARN_ONCE(to_dev(arena), size < 512,
|
||||
"chunk size: %#lx is unaligned\n", size);
|
||||
"chunk size: %#zx is unaligned\n", size);
|
||||
ret = arena_write_bytes(arena, arena->mapoff + offset, zerobuf,
|
||||
size, 0);
|
||||
if (ret)
|
||||
|
|
@ -472,7 +472,7 @@ static int btt_log_init(struct arena_info *arena)
|
|||
size_t size = min(logsize, chunk_size);
|
||||
|
||||
dev_WARN_ONCE(to_dev(arena), size < 512,
|
||||
"chunk size: %#lx is unaligned\n", size);
|
||||
"chunk size: %#zx is unaligned\n", size);
|
||||
ret = arena_write_bytes(arena, arena->logoff + offset, zerobuf,
|
||||
size, 0);
|
||||
if (ret)
|
||||
|
|
|
|||
Loading…
Reference in a new issue