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

Cédric Le Goater clg at kaod.org
Mon Jun 27 20:17:13 AEST 2016


On 06/27/2016 12:05 PM, Joel Stanley wrote:
> 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.

exactly. at last :)

Thanks,

C. 


> Applied at https://github.com/openbmc/u-boot/commit/69e4384a0973fb7895fdc6176605fa7431fec5bb
> 
> Cheers,
> 
> Joel
> 



More information about the openbmc mailing list