From: Joe Hershberger Date: Wed, 21 Mar 2012 22:04:23 +0000 (-0500) Subject: Xilinx: ARM: Fix build warnings in mmc.c X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=189035b0fdbfd241074b6b6efaf3412fc4bcbf02;p=thirdparty%2Fu-boot.git Xilinx: ARM: Fix build warnings in mmc.c Signed-off-by: Joe Hershberger --- diff --git a/board/xilinx/dfe/mmc.c b/board/xilinx/dfe/mmc.c index 91d444f75ab..33dfe289768 100755 --- a/board/xilinx/dfe/mmc.c +++ b/board/xilinx/dfe/mmc.c @@ -1,5 +1,6 @@ #include #include +#include #include #include "sd_hardware.h" @@ -212,7 +213,7 @@ static int pele_sdh_request(struct mmc *mmc, struct mmc_cmd *cmd, * buffer because the controller can't DMA into the first 512K * of DDR. */ - sd_out32(SD_DMA_ADDR_R, sd_dma_buffer); + sd_out32(SD_DMA_ADDR_R, (u32)sd_dma_buffer); /* 512 bytes * This is only relevant for data commands. @@ -248,7 +249,7 @@ static int pele_sdh_request(struct mmc *mmc, struct mmc_cmd *cmd, #else if (cmd->cmdidx == CMD17) { printf("MMC: Error reading sector %d (0x%08x)\n", - cmd->cmdarg); + cmd->cmdarg, cmd->cmdarg); } #endif sd_out8(SD_SOFT_RST_R,