From patchwork Thu Mar 8 12:35:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dirk Behme X-Patchwork-Id: 145515 X-Patchwork-Delegate: afleming@freescale.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 0B62EB6F98 for ; Thu, 8 Mar 2012 23:35:59 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7482E28120; Thu, 8 Mar 2012 13:35:57 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 6qRADNr6j1UC; Thu, 8 Mar 2012 13:35:57 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B289528121; Thu, 8 Mar 2012 13:35:54 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2CCA328121 for ; Thu, 8 Mar 2012 13:35:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 LInKeKK3SQs1 for ; Thu, 8 Mar 2012 13:35:51 +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 smtp2-v.fe.bosch.de (smtp2-v.fe.bosch.de [139.15.237.6]) by theia.denx.de (Postfix) with ESMTPS id 8856528120 for ; Thu, 8 Mar 2012 13:35:49 +0100 (CET) Received: from vsmta13.fe.internet.bosch.com (unknown [10.4.98.30]) by imta24.fe.bosch.de (Postfix) with ESMTP id 161E5B3B87E6 for ; Thu, 8 Mar 2012 13:35:19 +0100 (CET) Received: from localhost (vsgw3.fe.internet.bosch.com [10.4.98.16]) by vsmta13.fe.internet.bosch.com (Postfix) with SMTP id 5764B3840221 for ; Thu, 8 Mar 2012 13:35:49 +0100 (CET) Received: from SI-HUB1001.de.bosch.com (10.4.103.108) by fe-hub03.de.bosch.com (10.3.153.62) with Microsoft SMTP Server (TLS) id 8.3.213.0; Thu, 8 Mar 2012 13:35:40 +0100 Received: from hi-z5661.hi.de.bosch.com (10.34.217.179) by SI-HUB1001.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 14.1.355.2; Thu, 8 Mar 2012 13:35:38 +0100 Received: from localhost.localdomain (localhost [127.0.0.1]) by hi-z5661.hi.de.bosch.com (Postfix) with ESMTP id 54A1E43003; Thu, 8 Mar 2012 13:35:38 +0100 (CET) From: Dirk Behme To: Date: Thu, 8 Mar 2012 13:35:34 +0100 Message-ID: <1331210134-11682-1-git-send-email-dirk.behme@de.bosch.com> X-Mailer: git-send-email 1.7.0.4 MIME-Version: 1.0 Cc: Dirk Behme , Andy Fleming Subject: [U-Boot] [PATCH] mmc: Fix warning if CONFIG_MMC_TRACE is enabled X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Fix the warning mmc.c: In function 'mmc_send_cmd': mmc.c:87: warning: assignment from incompatible pointer type in case CONFIG_MMC_TRACE is enabled. Signed-off-by: Dirk Behme CC: Andy Fleming Acked-by: Simon Glass Acked-by: Marek Vasut --- drivers/mmc/mmc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 21665ec..881b5c0 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -84,7 +84,7 @@ int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) for (i = 0; i < 4; i++) { int j; printf("\t\t\t\t\t%03d - ", i*4); - ptr = &cmd->response[i]; + ptr = (u8 *)&cmd->response[i]; ptr += 3; for (j = 0; j < 4; j++) printf("%02X ", *ptr--);