[U-Boot] [PATCH] fdt: Change OF_BAD_ADDR to FDT_ADDR_T_NONE

Bin Meng bmeng.cn at gmail.com
Wed Dec 9 02:57:13 CET 2015


On Wed, Dec 9, 2015 at 3:34 AM, Simon Glass <sjg at chromium.org> wrote:
> On 7 December 2015 at 02:39, Bin Meng <bmeng.cn at gmail.com> wrote:
>> Currently OF_BAD_ADDR is always -1ULL. When using OF_BAD_ADDR as the
>> return value of dev_get_addr(), it creates potential size mismatch
>> as dev_get_addr() uses FDT_ADDR_T_NONE as the return value which can
>> be either -1U or -1ULL depending on CONFIG_PHYS_64BIT. Now we change
>> OF_BAD_ADDR to FDT_ADDR_T_NONE to avoid such case.
>>
>> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
>> ---
>>
>>  common/fdt_support.c | 3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> Acked-by: Simon Glass <sjg at chromium.org>

applied to u-boot-x86/master, thanks!


More information about the U-Boot mailing list