[PATCH uboot v2016.05-aspeed-openbmc/v2016.05-ast2500] aspeed: fix compile warning in memmove_dma()

Joel Stanley joel at jms.id.au
Mon Jun 27 20:05:01 AEST 2016


On Mon, Jun 27, 2016 at 6:13 PM, Cédric Le Goater <clg at kaod.org> wrote:
> arch/arm/mach-aspeed/flash.c: In function 'memmove_dma':
> arch/arm/mach-aspeed/flash.c:1390:55: warning: assignment makes integer from pointer without a cast [enabled by default]
>   *(ulong *) (AST_FMC_BASE + REG_FLASH_DMA_FLASH_BASE) = (ulong *) (src);
>                                                        ^
> arch/arm/mach-aspeed/flash.c:1391:54: warning: assignment makes integer from pointer without a cast [enabled by default]
>   *(ulong *) (AST_FMC_BASE + REG_FLASH_DMA_DRAM_BASE) = (ulong *) (dest);
>                                                       ^
> There is no need to cast with a pointer type. memmove_dma() is not used
> today but let's keep it as this is a supported feature we could use.
>
> Signed-off-by: Cédric Le Goater <clg at kaod.org>

Thanks! Now we build warning free.

Applied at https://github.com/openbmc/u-boot/commit/69e4384a0973fb7895fdc6176605fa7431fec5bb

Cheers,

Joel


More information about the openbmc mailing list