Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: qcom: gpi: Fixes a format mismatch

drivers/dma/qcom/gpi.c:1419:3: warning: format '%lu' expects argument of
type 'long unsigned int', but argument 8 has type 'size_t {aka unsigned
int}' [-Wformat=]
drivers/dma/qcom/gpi.c:1427:31: warning: format '%lu' expects argument of
type 'long unsigned int', but argument 3 has type 'size_t {aka unsigned
int}' [-Wformat=]
drivers/dma/qcom/gpi.c:1447:3: warning: format '%llx' expects argument of
type 'long long unsigned int', but argument 4 has type 'dma_addr_t {aka
unsigned int}' [-Wformat=]
drivers/dma/qcom/gpi.c:1447:3: warning: format '%llx' expects argument of
type 'long long unsigned int', but argument 5 has type 'phys_addr_t {aka
unsigned int}' [-Wformat=]

Signed-off-by: Xiaoming Ni <nixiaoming@huawei.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20201218104137.59200-1-nixiaoming@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Xiaoming Ni and committed by
Vinod Koul
8fb28795 ff58f7dd

+4 -4
+4 -4
drivers/dma/qcom/gpi.c
··· 1416 1416 len = 1 << bit; 1417 1417 ring->alloc_size = (len + (len - 1)); 1418 1418 dev_dbg(gpii->gpi_dev->dev, 1419 - "#el:%u el_size:%u len:%u actual_len:%llu alloc_size:%lu\n", 1419 + "#el:%u el_size:%u len:%u actual_len:%llu alloc_size:%zu\n", 1420 1420 elements, el_size, (elements * el_size), len, 1421 1421 ring->alloc_size); 1422 1422 ··· 1424 1424 ring->alloc_size, 1425 1425 &ring->dma_handle, GFP_KERNEL); 1426 1426 if (!ring->pre_aligned) { 1427 - dev_err(gpii->gpi_dev->dev, "could not alloc size:%lu mem for ring\n", 1427 + dev_err(gpii->gpi_dev->dev, "could not alloc size:%zu mem for ring\n", 1428 1428 ring->alloc_size); 1429 1429 return -ENOMEM; 1430 1430 } ··· 1444 1444 smp_wmb(); 1445 1445 1446 1446 dev_dbg(gpii->gpi_dev->dev, 1447 - "phy_pre:0x%0llx phy_alig:0x%0llx len:%u el_size:%u elements:%u\n", 1448 - ring->dma_handle, ring->phys_addr, ring->len, 1447 + "phy_pre:%pad phy_alig:%pa len:%u el_size:%u elements:%u\n", 1448 + &ring->dma_handle, &ring->phys_addr, ring->len, 1449 1449 ring->el_size, ring->elements); 1450 1450 1451 1451 return 0;