From patchwork Wed Nov 13 06:30:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olof Johansson X-Patchwork-Id: 3177031 X-Patchwork-Delegate: vinod.koul@intel.com Return-Path: X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 959E8C045B for ; Wed, 13 Nov 2013 06:30:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A68572017C for ; Wed, 13 Nov 2013 06:30:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 89F34205B2 for ; Wed, 13 Nov 2013 06:30:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751649Ab3KMGaJ (ORCPT ); Wed, 13 Nov 2013 01:30:09 -0500 Received: from mail-pb0-f54.google.com ([209.85.160.54]:36542 "EHLO mail-pb0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758185Ab3KMGaH (ORCPT ); Wed, 13 Nov 2013 01:30:07 -0500 Received: by mail-pb0-f54.google.com with SMTP id ro12so4980099pbb.41 for ; Tue, 12 Nov 2013 22:30:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=YeYm4N0O2SeNY1doCHGQJETDEfLqEzKxmweukYjBKe4=; b=irbfAZ1Zg2X5By/BW2gnpAzd10O/H386TKVtSfZ80lXU/C0PU5woUIFhl08lMtfgk0 wXv1+WAczSvgTS77TsEYropusaYhCcUTsVYnGv4g/aFAoOmWFX1dZGZK7v/S2bVr6pun ofL9U8qYNLR8R5WHdld+8JbMLO0aUkBJ3yNgFQs9Vblq5+znBV62QNRVCidGXZVKqDKH +hxM4ZBj2cFQAVQobo1Bflu/Qmag3bMG8Db0Riqvj5mDdMTdg9ZlRBUDR1qMa7mrXjxt 0bcU9EqdICl/H28O03/BkjtvQKF+494HZXEVU28cvdYLk93JnZAD+pBx2d9BlKXg7hjc Jnkg== X-Gm-Message-State: ALoCoQmrk4GfnH1wTZJfIwY+gzA8U6JmnljFwZXjIKDXQZkUzqDolq+G37AZnH+/PBSgj2/pC51r X-Received: by 10.66.65.134 with SMTP id x6mr15363140pas.142.1384324205621; Tue, 12 Nov 2013 22:30:05 -0800 (PST) Received: from brutus.lixom.net (173-13-129-225-sfba.hfc.comcastbusiness.net. [173.13.129.225]) by mx.google.com with ESMTPSA id iu7sm41965998pbc.45.2013.11.12.22.30.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Nov 2013 22:30:04 -0800 (PST) From: Olof Johansson To: Vinod Koul Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Olof Johansson Subject: [PATCH 1/2] dmaengine: ipu: fix warnings from 64-bit dma_addr_t printouts Date: Tue, 12 Nov 2013 22:30:43 -0800 Message-Id: <1384324244-11330-1-git-send-email-olof@lixom.net> X-Mailer: git-send-email 1.7.10.4 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This resolves a number of warnings such as the below when building with 64-bit dma_addr_t on arm: drivers/dma/ipu/ipu_idmac.c:1235:2: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'dma_addr_t' [-Wformat=] ..by upcasting to u64 and using %llx. Signed-off-by: Olof Johansson --- drivers/dma/ipu/ipu_idmac.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/dma/ipu/ipu_idmac.c b/drivers/dma/ipu/ipu_idmac.c index cb9c0bc..128ca14 100644 --- a/drivers/dma/ipu/ipu_idmac.c +++ b/drivers/dma/ipu/ipu_idmac.c @@ -1232,8 +1232,10 @@ static irqreturn_t idmac_interrupt(int irq, void *dev_id) desc = list_entry(ichan->queue.next, struct idmac_tx_desc, list); descnew = desc; - dev_dbg(dev, "IDMAC irq %d, dma 0x%08x, next dma 0x%08x, current %d, curbuf 0x%08x\n", - irq, sg_dma_address(*sg), sgnext ? sg_dma_address(sgnext) : 0, ichan->active_buffer, curbuf); + dev_dbg(dev, "IDMAC irq %d, dma %#llx, next dma %#llx, current %d, curbuf %#x\n", + irq, (u64)sg_dma_address(*sg), + sgnext ? (u64)sg_dma_address(sgnext) : 0, + ichan->active_buffer, curbuf); /* Find the descriptor of sgnext */ sgnew = idmac_sg_next(ichan, &descnew, *sg);