Files
kernel_google_wahoo/drivers
Arnd Bergmann 89052e7066 dmaengine: iop-adma: use correct printk format strings
[ Upstream commit 00c9755524fbaa28117be774d7c92fddb5ca02f3 ]

When compile-testing on other architectures, we get lots of warnings
about incorrect format strings, like:

   drivers/dma/iop-adma.c: In function 'iop_adma_alloc_slots':
   drivers/dma/iop-adma.c:307:6: warning: format '%x' expects argument of type 'unsigned int', but argument 6 has type 'dma_addr_t {aka long long unsigned int}' [-Wformat=]

   drivers/dma/iop-adma.c: In function 'iop_adma_prep_dma_memcpy':
>> drivers/dma/iop-adma.c:518:40: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'size_t {aka long unsigned int}' [-Wformat=]

Use %zu for printing size_t as required, and cast the dma_addr_t
arguments to 'u64' for printing with %llx. Ideally this should use
the %pad format string, but that requires an lvalue argument that
doesn't work here.

Link: https://lore.kernel.org/r/20190809163334.489360-3-arnd@arndb.de
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-10-05 12:27:48 +02:00
..
2019-09-21 07:12:53 +02:00
2019-10-05 12:27:40 +02:00
2018-12-21 14:09:52 +01:00
2018-02-25 11:03:51 +01:00
2019-09-10 10:29:48 +01:00
2019-10-05 12:27:47 +02:00
2019-08-04 09:34:58 +02:00
2018-12-21 14:09:52 +01:00
2018-11-21 09:27:36 +01:00
2018-11-27 16:08:02 +01:00
2018-10-10 08:52:04 +02:00
2019-09-16 08:13:36 +02:00
2019-06-11 12:23:55 +02:00