From patchwork Wed Aug 14 12:52:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 19112 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gh0-f199.google.com (mail-gh0-f199.google.com [209.85.160.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2DACE25A57 for ; Wed, 14 Aug 2013 12:53:25 +0000 (UTC) Received: by mail-gh0-f199.google.com with SMTP id g14sf1177695ghb.2 for ; Wed, 14 Aug 2013 05:53:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=xqIcNPJVAE/xDhYQ1R2Wu7TqJFyqwoafEwgj7m20Exo=; b=pwT/kaQFzxz4N0N8hWHRF9qIehaxP/zcyG8G/CfLu+y1pQIzGZJxUEtT66aYpyn7WD EeWh5CVwBRxSVrvm0wS8DSMHF1YV8u9dZuq3tdwecDuLFGiXF4YJrohk9DtPKU4DfEkI jzFL/85qE4CaXyiAOCdWwlf7aIfdyKjNxbqHt7t7bjKH8Ap/9nQOob9WqupgaC3uGJQH UVMdJZn3xs/K0h7P2JroMi8WXcKZIXGs4P3dHn7W0BWLggJfhNYDVfAXwVbg5Gg+leP5 pGNpB0vzp4eQtKIYqscamBzeuL3Veo2SK5ldyA8cJ035CngttwLxW6Yp2j1yeoTONP3D PCvA== X-Received: by 10.52.166.67 with SMTP id ze3mr2107224vdb.4.1376484804868; Wed, 14 Aug 2013 05:53:24 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.75.228 with SMTP id f4ls1269022qew.12.gmail; Wed, 14 Aug 2013 05:53:24 -0700 (PDT) X-Received: by 10.52.249.102 with SMTP id yt6mr944168vdc.21.1376484804780; Wed, 14 Aug 2013 05:53:24 -0700 (PDT) Received: from mail-vb0-f46.google.com (mail-vb0-f46.google.com [209.85.212.46]) by mx.google.com with ESMTPS id sy7si10977287vdc.1.2013.08.14.05.53.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 05:53:24 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.46 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.46; Received: by mail-vb0-f46.google.com with SMTP id p13so7551339vbe.19 for ; Wed, 14 Aug 2013 05:53:24 -0700 (PDT) X-Gm-Message-State: ALoCoQnC/8ikuSS160l5qXwNHMtqeVn3M4aQttegaXL4V5TZZf6WKf0m3niYMHnQddH6v0OlDspN X-Received: by 10.58.19.162 with SMTP id g2mr9580284vee.12.1376484804692; Wed, 14 Aug 2013 05:53:24 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp211090vcz; Wed, 14 Aug 2013 05:53:24 -0700 (PDT) X-Received: by 10.204.62.132 with SMTP id x4mr2836208bkh.22.1376484803745; Wed, 14 Aug 2013 05:53:23 -0700 (PDT) Received: from mail-bk0-f45.google.com (mail-bk0-f45.google.com [209.85.214.45]) by mx.google.com with ESMTPS id nm6si5757312bkb.10.2013.08.14.05.53.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 05:53:23 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.214.45 is neither permitted nor denied by best guess record for domain of andre.przywara@linaro.org) client-ip=209.85.214.45; Received: by mail-bk0-f45.google.com with SMTP id mx11so2699363bkb.4 for ; Wed, 14 Aug 2013 05:53:23 -0700 (PDT) X-Received: by 10.205.22.71 with SMTP id qv7mr6881378bkb.20.1376484802966; Wed, 14 Aug 2013 05:53:22 -0700 (PDT) Received: from slackpad.drs.calxeda.com (f053087239.adsl.alicedsl.de. [78.53.87.239]) by mx.google.com with ESMTPSA id kk2sm3437371bkb.10.2013.08.14.05.53.21 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 05:53:22 -0700 (PDT) From: Andre Przywara To: peter.pearse@arm.com, linus.walleij@linaro.org, linux@arm.linux.org.uk Cc: linux-arm-kernel@lists.infradead.org, rob.herring@calxeda.com, patches@linaro.org, vinod.koul@intel.com, Andre Przywara Subject: [PATCH 2/2] DMA: fix printk warning in AMBA PL08x DMA driver Date: Wed, 14 Aug 2013 14:52:09 +0200 Message-Id: <1376484729-11826-3-git-send-email-andre.przywara@linaro.org> X-Mailer: git-send-email 1.7.12.1 In-Reply-To: <1376484729-11826-1-git-send-email-andre.przywara@linaro.org> References: <1376484729-11826-1-git-send-email-andre.przywara@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: andre.przywara@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.46 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , In Rob's recent pull request the patch ARM: highbank: select ARCH_DMA_ADDR_T_64BIT for LPAE promotes dma_addr_t to 64bit, so printk generates a warning about an incorrect type. Fix this by casting it to u64 and using %llx. Fixing long lines on the way. Signed-off-by: Andre Przywara --- drivers/dma/amba-pl08x.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c index 29e1cf9..ae19618 100644 --- a/drivers/dma/amba-pl08x.c +++ b/drivers/dma/amba-pl08x.c @@ -850,10 +850,13 @@ static int pl08x_fill_llis_for_desc(struct pl08x_driver_data *pl08x, pl08x_choose_master_bus(&bd, &mbus, &sbus, cctl); - dev_vdbg(&pl08x->adev->dev, "src=0x%08x%s/%u dst=0x%08x%s/%u len=%zu\n", - bd.srcbus.addr, cctl & PL080_CONTROL_SRC_INCR ? "+" : "", + dev_vdbg(&pl08x->adev->dev, + "src=0x%08llx%s/%u dst=0x%08llx%s/%u len=%zu\n", + (u64)bd.srcbus.addr, + cctl & PL080_CONTROL_SRC_INCR ? "+" : "", bd.srcbus.buswidth, - bd.dstbus.addr, cctl & PL080_CONTROL_DST_INCR ? "+" : "", + (u64)bd.dstbus.addr, + cctl & PL080_CONTROL_DST_INCR ? "+" : "", bd.dstbus.buswidth, bd.remainder); dev_vdbg(&pl08x->adev->dev, "mbus=%s sbus=%s\n",