From patchwork Sun Jun 11 15:03:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 9780169 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 80859602DA for ; Sun, 11 Jun 2017 15:03:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E850284B9 for ; Sun, 11 Jun 2017 15:03:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 60BA528531; Sun, 11 Jun 2017 15:03:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D0659284B9 for ; Sun, 11 Jun 2017 15:03:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751636AbdFKPD3 (ORCPT ); Sun, 11 Jun 2017 11:03:29 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:35280 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751764AbdFKPD3 (ORCPT ); Sun, 11 Jun 2017 11:03:29 -0400 Received: by mail-qt0-f196.google.com with SMTP id x58so21719696qtc.2 for ; Sun, 11 Jun 2017 08:03:28 -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; bh=OV//8VEh2IKoHhLA6Ga7wmxJOP9t5gEs6mIpeVsnL0E=; b=S/R35EbuK1P2OeGryXLgHXjDAc0B6+jZujOokNKnAjAQ5/Gv2fc0bOXJf5NPNEJQwq LAbssUBcVnvpFbfxGO/2XcLxI0nMfOxoo4Nz2oFD8QbG94ZP3VpdjTL6fPgutHWXIKLj tUGeJHMRc3ZVh9McoCieJ8nXPK9MtM/apxRdqjrDIfEdNAw6Lz1Mgw8TiJsfmuDbEM7+ 09PX6COdr+Wk3KLe14eW3LGkxMRHiVh7rH0jts3yzzoBWiUqfHlWpXf1GwQpuAPixc9s WMDpAYDxkdfu9SFHxIQPged221OyQDlnBmqKq9t4huxpmlJ/4/kjEZiZrGdGB8hwfHIf +P/A== 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; bh=OV//8VEh2IKoHhLA6Ga7wmxJOP9t5gEs6mIpeVsnL0E=; b=Nj201TPhuPEKaxTg7KxZpmxe+HGskrzgMV3lVUcGHy7WhO8H8ZFS8ZiWqgJPU49Wvx BRvNQkc8YYfWopi206SaHI5kjhg0Hd+5Pg7KH/lzVvXnhaUVcoA765nVte+xwF6ouuzh 0jUI2oq2PUR/tJ1VRDdpiVworYkPMSrJCPvTQDbM7Vk6JIv7AxK2/XgT8JKdux4dj5eK JbAyG6gZlYEkxpj4EDlNaNZKcxeb6KJWDo6UC6+7g0EJmOnP/NrmFbE+7JXNY+KwBQl2 tl+iWn3hOB1pS611goDZIy8kLHjVpIw9GVrQYTiORMVSwq5TFnoOKPcFyVjJhyOS3ekY q18Q== X-Gm-Message-State: AODbwcAtNROdsL7bYu5U1c1JmJk/3vr2XMNIhjHlzIogwkgWVxQNVvV0 Br/PbGwjbYyHbA== X-Received: by 10.237.62.8 with SMTP id l8mr60398166qtf.20.1497193408282; Sun, 11 Jun 2017 08:03:28 -0700 (PDT) Received: from localhost.localdomain ([187.180.183.131]) by smtp.gmail.com with ESMTPSA id t42sm4698502qtg.43.2017.06.11.08.03.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 11 Jun 2017 08:03:27 -0700 (PDT) From: Fabio Estevam To: vinod.koul@intel.com Cc: dmaengine@vger.kernel.org, stefan@agner.ch, shawnguo@kernel.org, kernel@pengutronix.de, Fabio Estevam Subject: [PATCH] dmaengine: mxs: Use %zu for printing a size_t variable Date: Sun, 11 Jun 2017 12:03:11 -0300 Message-Id: <1497193391-4887-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Fabio Estevam Use %zu for printing a size_t variable in order to fix the following build warning: drivers/dma/mxs-dma.c: In function 'mxs_dma_prep_dma_cyclic': drivers/dma/mxs-dma.c:621:5: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat] Reported-by: kbuild test robot Signed-off-by: Fabio Estevam --- This buid warning happened after the patch "dmaengine: Kconfig: Extend the dependency for MXS_DMA" is applied as it adds COMPILE_TEST and allows this driver to be built for other architecture. drivers/dma/mxs-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c index e217268..41d1679 100644 --- a/drivers/dma/mxs-dma.c +++ b/drivers/dma/mxs-dma.c @@ -617,7 +617,7 @@ static struct dma_async_tx_descriptor *mxs_dma_prep_dma_cyclic( if (period_len > MAX_XFER_BYTES) { dev_err(mxs_dma->dma_device.dev, - "maximum period size exceeded: %d > %d\n", + "maximum period size exceeded: %zu > %d\n", period_len, MAX_XFER_BYTES); goto err_out; }