From patchwork Mon Aug 7 07:45:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 798503 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="UtIwXNnR"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Pk+nLyrR"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xQqND2S2bz9sQl for ; Mon, 7 Aug 2017 17:46:20 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=uPkGVaMPjp4NgsfsnDRK+HR90wGv2SSifMBtJxiqbDk=; b=UtIwXNnRRqGt++ mjCjg/nes5L1+sHW669Cpc6S67n1EM3AeU6l+0XhZvyu7firvNOR+E76le9ytiHojqHx89RLdE6O9 +/S3B3GpO38Dn93721C7yYpagIWbJQ8CWE2Eo2E/H5K8+8pOKMbdLVVOTiuLpkREr3GQSabVVNYFN qGRWSEkYAUnDkuf/t/m5tcxNfuPGjZiPJNLcmAS/l7hWXO19O+N+/tuc1+bUYGa0OH2d+o0vrugGB HF60PMEOJ7TF1abBaM3mErRwVToITdCoxapgCkq9u578TB1dXboS+3LTw0qd/9dvYhwQ1CeePIR19 xcGzPGKYhBN01iQODrrQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1decjy-0005ud-Jq; Mon, 07 Aug 2017 07:46:18 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1decjm-0005rM-0F for linux-arm-kernel@lists.infradead.org; Mon, 07 Aug 2017 07:46:16 +0000 Received: by mail-pf0-x243.google.com with SMTP id p13so8306078pfd.4 for ; Mon, 07 Aug 2017 00:45:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pMJfS0MwUrRY40rhOn8dwRrlV2+4iV2jv9Xvz1BZBzg=; b=Pk+nLyrRFTWBlC8BDz6ClvX+awfk23dOevTnvNJ8OG0/tZAUvfHRycteWloBRMQX7w Ncrqs6IPKIIvrTfL5Mp1S8wNB5M8RtrWLUulHtwkca+iKbwIC+I3JZZJ02onbNwo04dg Q7m3DyLhZO/GCJvYWKvYZ7QSG7cAOpBqobcgj3UvFTUPpfl9ObBl0eY3fDt2gwAtczw7 Tt2Enubl78StnCW2ZXBaH+U5IWA3o5Dj+Bi6QWtmCFzO93s4BlgIF+yS3FwOb9FqQD2H naDBCUAbJR39CyHLbGRsy/A+z7HQugsmCXQ6cNEF7GZnQQxUBHYZmOPzF4muYzavANpw acfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pMJfS0MwUrRY40rhOn8dwRrlV2+4iV2jv9Xvz1BZBzg=; b=iaUNNpUzCD2sP28vYal0cMBneDDt5Lm3GTH1Hh9Q0N5KL3iWluakhM0JWFbkNWEDvl ENlAgdQlQMglsFXojPB7NrpQXwpaFcRHMfMVRo14s5TW4dyen2imadW56LdqbSfp/3p9 h+SbcnMwCA2bppiKCrqtWGt2Al/nrlSr0k57BcpPDBPkGB4W0i2htlL3vwCFGIGvDeX/ D6fSU51evr1b3s0UfqP8u9Ih7SmkERG3PItPjbwe67+YcwcysyrUbLEppx58NMCRgpyA L8/wL2ZJeXNFj252cb1EO/n4ZpSmP5KQYI35dYXqYVRh/ZrybvFHtRYLZ7Wa45or7Bg1 WH0Q== X-Gm-Message-State: AIVw110kacAug1iJHDrCldv9+XfBGXEgGeHtsnJPGMex44J8dL8HeP4f zZCgfFYLhl/znYgR X-Received: by 10.99.185.75 with SMTP id v11mr11244903pgo.189.1502091944705; Mon, 07 Aug 2017 00:45:44 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id s3sm11471102pgn.70.2017.08.07.00.45.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Aug 2017 00:45:44 -0700 (PDT) From: Arvind Yadav To: ludovic.desroches@microchip.com, dan.j.williams@intel.com, vinod.koul@intel.com Subject: [PATCH 1/2] dmaengine: at_xdmac: Fix compilation warning. Date: Mon, 7 Aug 2017 13:15:18 +0530 Message-Id: <878f9486ee507c227cb8835417c520b489c768c8.1502091778.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170807_004606_278389_365B9277 X-CRM114-Status: GOOD ( 10.33 ) X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:400e:c00:0:0:0:243 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (arvind.yadav.cs[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org 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 Acked-by: Ludovic Desroches --- 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))