From patchwork Fri Mar 20 11:41:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 452585 X-Patchwork-Delegate: twarren@nvidia.com 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 32D5A14016B for ; Fri, 20 Mar 2015 22:42:21 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=vIGLauZg; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 193A1A7464; Fri, 20 Mar 2015 12:42:06 +0100 (CET) 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 ntbM97an7yR4; Fri, 20 Mar 2015 12:42:05 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 466D9A7437; Fri, 20 Mar 2015 12:42:04 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 03B7AA7457 for ; Fri, 20 Mar 2015 12:41:59 +0100 (CET) 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 MK7bqrU4CT7G for ; Fri, 20 Mar 2015 12:41:58 +0100 (CET) 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-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) by theia.denx.de (Postfix) with ESMTPS id 3CBBAA7441 for ; Fri, 20 Mar 2015 12:41:51 +0100 (CET) Received: by pdbop1 with SMTP id op1so106611725pdb.2 for ; Fri, 20 Mar 2015 04:41:50 -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=eoBhKLHltzdPVOAG80U9WbWNRvEd81p05gvTMUpKKWY=; b=vIGLauZgaDfF740qXLesUri+huWxJYIQBuBmoZkRrymk5SpE8HTBvJPs2SYxjXkuxG mSESKgUW6u6MlFCyuersRRgMszdwQrsLLT+DR7c9H/tJg+QJK2RKjqR90h3MIq2BBRDG H6/hhqNFgxZk7wpTMY+wb3Lve/eIb9L6tgsfXAFl+ie+dck2ikqXf7PJXA0gZT6VqBB7 R6Z+gikucrp8hiZmzM2zWKneL9nE6BDd704sniW+YUpikAUhKb/CrFRe1mGZIZ0sh0B6 7+OwtL3anuEaIcWi0762PIrXRH8JLTYRSBT8HuIqZ6CI2COuocr0ys45w4J/D5UykO0a 10HQ== X-Received: by 10.66.158.66 with SMTP id ws2mr185357659pab.37.1426851710156; Fri, 20 Mar 2015 04:41:50 -0700 (PDT) Received: from localhost ([216.228.120.20]) by mx.google.com with ESMTPSA id ok8sm7754930pdb.66.2015.03.20.04.41.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Mar 2015 04:41:49 -0700 (PDT) From: Thierry Reding To: u-boot@lists.denx.de Date: Fri, 20 Mar 2015 12:41:20 +0100 Message-Id: <1426851688-6429-5-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 2.3.2 In-Reply-To: <1426851688-6429-1-git-send-email-thierry.reding@gmail.com> References: <1426851688-6429-1-git-send-email-thierry.reding@gmail.com> Cc: Pantelis Antoniou , Tom Warren Subject: [U-Boot] [PATCH 05/13] mmc: tegra: Build warning fixes for 64-bit 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" From: Thierry Reding Fix a couple of pointer to integer size mismatch warnings by casting pointers to unsigned long rather than unsigned int. Cc: Pantelis Antoniou Cc: Tom Warren Signed-off-by: Thierry Reding --- drivers/mmc/tegra_mmc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/tegra_mmc.c b/drivers/mmc/tegra_mmc.c index 2cd8cf10aec5..b6387b357d7a 100644 --- a/drivers/mmc/tegra_mmc.c +++ b/drivers/mmc/tegra_mmc.c @@ -67,7 +67,7 @@ static void mmc_prepare_data(struct mmc_host *host, struct mmc_data *data, bbstate->bounce_buffer, bbstate->user_buffer, data->blocks, data->blocksize); - writel((u32)bbstate->bounce_buffer, &host->reg->sysad); + writel((u32)(unsigned long)bbstate->bounce_buffer, &host->reg->sysad); /* * DMASEL[4:3] * 00 = Selects SDMA @@ -233,8 +233,8 @@ static int mmc_send_cmd_bounced(struct mmc *mmc, struct mmc_cmd *cmd, if (cmd->resp_type & MMC_RSP_136) { /* CRC is stripped so we need to do some shifting. */ for (i = 0; i < 4; i++) { - unsigned int offset = - (unsigned int)(&host->reg->rspreg3 - i); + unsigned long offset = + (unsigned long)(&host->reg->rspreg3 - i); cmd->response[i] = readl(offset) << 8; if (i != 3) {