From patchwork Thu Sep 3 12:37:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 514039 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id DDCE51401CD for ; Thu, 3 Sep 2015 22:36:27 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=dEXuXq6m; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C83F34B829; Thu, 3 Sep 2015 14:36:05 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id un8F08LtTBpE; Thu, 3 Sep 2015 14:36:05 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 083084B7CD; Thu, 3 Sep 2015 14:35:38 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 45EE84B76B for ; Thu, 3 Sep 2015 14:35:23 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1Y1zYld4yZSy for ; Thu, 3 Sep 2015 14:35:23 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by theia.denx.de (Postfix) with ESMTPS id 067D44B716 for ; Thu, 3 Sep 2015 14:35:19 +0200 (CEST) Received: by padfa1 with SMTP id fa1so3495928pad.1 for ; Thu, 03 Sep 2015 05:35:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=EIfjpgCnM1XNhEoXt6T20TqwJLiARxRCZo+3nEpSiKQ=; b=dEXuXq6mrHINxlrzla5hVhR0/sN9g1lekxv+BSlQQTcyOks5IZTO8yYEVItIBnZw7a YkqIoAZ4ips+7LNEWKn9DdgD6RS9YzV94IONjO6mTz8z4agim4ClGl9U+4dwlQdFCzJI HdH8k0lnKlLjGXDzJvjU/7Shl4gZYzt2pYj6fJaO/KVoIYIb3wp5U3x/8khzGV3PFaJY Y33XujPiDbnJCCsMTkbMeYF7WOXDnAyL1qvG+W99dOu0NrS9LvqPPPh+q/XwiKKVegL0 qafRQ7G/4ENz35NvnOjTH5NdcRi2T9SmU8tSvEQLyfg9CulK6ODG3cbMxB4rZ0BuTkDj bsyw== X-Received: by 10.66.232.102 with SMTP id tn6mr68471576pac.47.1441283718008; Thu, 03 Sep 2015 05:35:18 -0700 (PDT) Received: from ala-d2121-lx1.wrs.com (unknown-157-139.windriver.com. [147.11.157.139]) by smtp.gmail.com with ESMTPSA id ev2sm25165500pbb.37.2015.09.03.05.35.17 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Sep 2015 05:35:17 -0700 (PDT) From: Bin Meng To: Simon Glass , U-Boot Mailing List Date: Thu, 3 Sep 2015 05:37:29 -0700 Message-Id: <1441283853-30868-8-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1441283853-30868-1-git-send-email-bmeng.cn@gmail.com> References: <1441283853-30868-1-git-send-email-bmeng.cn@gmail.com> Cc: Joe Hershberger Subject: [U-Boot] [PATCH v4 07/11] net: designware: Fix build warnings X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" When building dm version of designware eth driver on a platform with 64-bit phys_addr_t, it reports the following warnings: drivers/net/designware.c: In function 'designware_eth_probe': drivers/net/designware.c:599:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'phys_addr_t' [-Wformat] drivers/net/designware.c:600:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] drivers/net/designware.c:601:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] This commit fixes the build warnings. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/net/designware.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/designware.c b/drivers/net/designware.c index d9cb507..ae78d21 100644 --- a/drivers/net/designware.c +++ b/drivers/net/designware.c @@ -562,12 +562,12 @@ static int designware_eth_probe(struct udevice *dev) { struct eth_pdata *pdata = dev_get_platdata(dev); struct dw_eth_dev *priv = dev_get_priv(dev); + u32 iobase = pdata->iobase; int ret; - debug("%s, iobase=%lx, priv=%p\n", __func__, pdata->iobase, priv); - priv->mac_regs_p = (struct eth_mac_regs *)pdata->iobase; - priv->dma_regs_p = (struct eth_dma_regs *)(pdata->iobase + - DW_DMA_BASE_OFFSET); + debug("%s, iobase=%x, priv=%p\n", __func__, iobase, priv); + priv->mac_regs_p = (struct eth_mac_regs *)iobase; + priv->dma_regs_p = (struct eth_dma_regs *)(iobase + DW_DMA_BASE_OFFSET); priv->interface = pdata->phy_interface; dw_mdio_init(dev->name, priv->mac_regs_p);