[U-Boot] [PATCH] mmc: Fix warning if CONFIG_MMC_TRACE is enabled

Simon Glass sjg at chromium.org
Sat Mar 31 10:12:15 CEST 2012


On Thu, Mar 8, 2012 at 4:35 AM, Dirk Behme <dirk.behme at de.bosch.com> wrote:
> 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 <dirk.behme at de.bosch.com>
> CC: Andy Fleming <afleming at freescale.com>

Acked-by: Simon Glass <sjg at chromium.org>

> ---
>  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--);
> --
> 1.7.0.4
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot


More information about the U-Boot mailing list