[U-Boot] [PATCH] spi: cadence_qspi: Change to use devfdt_get_addr_index()

Ley Foon Tan lftan.linux at gmail.com
Thu May 17 02:23:08 UTC 2018


On Wed, May 16, 2018 at 9:33 PM, Jagan Teki <jagannadh.teki at gmail.com> wrote:
> On Mon, May 7, 2018 at 3:12 PM, Ley Foon Tan <ley.foon.tan at intel.com> wrote:
>> Change to use devfdt_get_addr_index() function to get fdt address.
>>
>> Original code has compilation warning below:
>>
>> drivers/spi/cadence_qspi.c: In function ‘cadence_spi_ofdata_to_platdata’:
>> drivers/spi/cadence_qspi.c:297:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
>>   plat->regbase = (void *)data[0];
>>                   ^
>> drivers/spi/cadence_qspi.c:298:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
>>   plat->ahbbase = (void *)data[2];
>
> was this a coverage-tool check, I didn't see any warning with arm
> compiler? make socfpga_arria5_defconfig && make

This error came up if compile with ARM 64bit (aarch64-linux-gnu-).

Regards
Ley Foon


More information about the U-Boot mailing list