[PATCH 1/1] powerpc: fix fdt_fixup_liodn_tbl_fman()

Tom Rini trini at konsulko.com
Wed Dec 7 15:11:27 CET 2022


On Wed, 12 Oct 2022 19:13:11 +0200, Heinrich Schuchardt wrote:

> Builiding with GCC 12.2 fails:
> 
>     arch/powerpc/cpu/mpc85xx/liodn.c: In function 'fdt_fixup_liodn_tbl_fman':
>     arch/powerpc/cpu/mpc85xx/liodn.c:340:35: error: the comparison will
>     always evaluate as 'false' for the address of 'compat'
>     will never be NULL [-Werror=address]
>       340 |                 if (tbl[i].compat == NULL)
>           |
> 
> [...]

I know there was some discussion of a more optimal or useful set of checks here
but since that hasn't been posted and I want to mvoe to gcc-12.2 now, this is
applied to u-boot/next.

-- 
Tom



More information about the U-Boot mailing list