Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751467AbdHPGSv (ORCPT ); Wed, 16 Aug 2017 02:18:51 -0400 Received: from esa5.microchip.iphmx.com ([216.71.150.166]:28263 "EHLO esa5.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751082AbdHPGSu (ORCPT ); Wed, 16 Aug 2017 02:18:50 -0400 X-IronPort-AV: E=Sophos;i="5.41,381,1498546800"; d="scan'208";a="3885638" Date: Wed, 16 Aug 2017 08:17:42 +0200 From: Ludovic Desroches To: Arvind Yadav CC: , , , , , Subject: Re: [PATCH 1/2] dmaengine: at_xdmac: Fix compilation warning. Message-ID: <20170816061742.g6a4chvlx3qlbdm6@rfolt0960.corp.atmel.com> Mail-Followup-To: Arvind Yadav , dan.j.williams@intel.com, vinod.koul@intel.com, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <878f9486ee507c227cb8835417c520b489c768c8.1502091778.git.arvind.yadav.cs@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <878f9486ee507c227cb8835417c520b489c768c8.1502091778.git.arvind.yadav.cs@gmail.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2554 Lines: 60 On Mon, Aug 07, 2017 at 01:15:18PM +0530, Arvind Yadav wrote: > Replace '%d' by '%zu' to fix the compilation warning:- > "format ‘%d’ expects argument of type ‘int’,but argument has type ‘size_t’ [-Wformat=]" > > Signed-off-by: Arvind Yadav Acked-by: Ludovic Desroches Thanks > --- > drivers/dma/at_xdmac.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c > index 7d4e0bc..6a3cf97 100644 > --- a/drivers/dma/at_xdmac.c > +++ b/drivers/dma/at_xdmac.c > @@ -875,7 +875,7 @@ static inline u32 at_xdmac_align_width(struct dma_chan *chan, dma_addr_t addr) > dwidth = at_xdmac_align_width(chan, src | dst | chunk->size); > if (chunk->size >= (AT_XDMAC_MBR_UBC_UBLEN_MAX << dwidth)) { > dev_dbg(chan2dev(chan), > - "%s: chunk too big (%d, max size %lu)...\n", > + "%s: chunk too big (%zu, max size %lu)...\n", > __func__, chunk->size, > AT_XDMAC_MBR_UBC_UBLEN_MAX << dwidth); > return NULL; > @@ -956,7 +956,7 @@ static inline u32 at_xdmac_align_width(struct dma_chan *chan, dma_addr_t addr) > if ((xt->numf > 1) && (xt->frame_size > 1)) > return NULL; > > - dev_dbg(chan2dev(chan), "%s: src=%pad, dest=%pad, numf=%d, frame_size=%d, flags=0x%lx\n", > + dev_dbg(chan2dev(chan), "%s: src=%pad, dest=%pad, numf=%zu, frame_size=%zu, flags=0x%lx\n", > __func__, &xt->src_start, &xt->dst_start, xt->numf, > xt->frame_size, flags); > > @@ -990,7 +990,7 @@ static inline u32 at_xdmac_align_width(struct dma_chan *chan, dma_addr_t addr) > dst_skip = chunk->size + dst_icg; > > dev_dbg(chan2dev(chan), > - "%s: chunk size=%d, src icg=%d, dst icg=%d\n", > + "%s: chunk size=%zu, src icg=%zu, dst icg=%zu\n", > __func__, chunk->size, src_icg, dst_icg); > > desc = at_xdmac_interleaved_queue_desc(chan, atchan, > @@ -1207,7 +1207,7 @@ static struct at_xdmac_desc *at_xdmac_memset_create_desc(struct dma_chan *chan, > struct at_xdmac_chan *atchan = to_at_xdmac_chan(chan); > struct at_xdmac_desc *desc; > > - dev_dbg(chan2dev(chan), "%s: dest=%pad, len=%d, pattern=0x%x, flags=0x%lx\n", > + dev_dbg(chan2dev(chan), "%s: dest=%pad, len=%zu, pattern=0x%x, flags=0x%lx\n", > __func__, &dest, len, value, flags); > > if (unlikely(!len)) > -- > 1.9.1 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel