Skip to content

Commit 938eae9

Browse files
nehebvinodkoul
authored andcommitted
dmaengine: at_hdmac: fix formats under 64-bit
size_t formats under 32-bit evaluate to the same thing and GCC does not warn against it. Not the case with 64-bit. Signed-off-by: Rosen Penev <rosenp@gmail.com> Reviewed-by: Eugen Hristev <eugen.hristev@linaro.org> Link: https://patch.msgid.link/20251106022405.85604-2-rosenp@gmail.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 3980351 commit 938eae9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/dma/at_hdmac.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ atc_prep_dma_interleaved(struct dma_chan *chan,
887887
first = xt->sgl;
888888

889889
dev_info(chan2dev(chan),
890-
"%s: src=%pad, dest=%pad, numf=%d, frame_size=%d, flags=0x%lx\n",
890+
"%s: src=%pad, dest=%pad, numf=%zu, frame_size=%zu, flags=0x%lx\n",
891891
__func__, &xt->src_start, &xt->dst_start, xt->numf,
892892
xt->frame_size, flags);
893893

@@ -1174,7 +1174,7 @@ atc_prep_dma_memset_sg(struct dma_chan *chan,
11741174
int i;
11751175
int ret;
11761176

1177-
dev_vdbg(chan2dev(chan), "%s: v0x%x l0x%zx f0x%lx\n", __func__,
1177+
dev_vdbg(chan2dev(chan), "%s: v0x%x l0x%x f0x%lx\n", __func__,
11781178
value, sg_len, flags);
11791179

11801180
if (unlikely(!sgl || !sg_len)) {
@@ -1503,7 +1503,7 @@ atc_prep_dma_cyclic(struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len,
15031503
unsigned int periods = buf_len / period_len;
15041504
unsigned int i;
15051505

1506-
dev_vdbg(chan2dev(chan), "prep_dma_cyclic: %s buf@%pad - %d (%d/%d)\n",
1506+
dev_vdbg(chan2dev(chan), "prep_dma_cyclic: %s buf@%pad - %d (%zu/%zu)\n",
15071507
direction == DMA_MEM_TO_DEV ? "TO DEVICE" : "FROM DEVICE",
15081508
&buf_addr,
15091509
periods, buf_len, period_len);

0 commit comments

Comments
 (0)