[PATCH v3] mach-k3: common_fdt: Move carveout struct
Bryan Brattlof
bb at ti.com
Wed Apr 16 16:45:25 CEST 2025
On April 15, 2025 thus sayeth Daniel Schultz:
> Labels are not allowed before declarations. Move the carveout struct
> at the beginning and only update 'end' at this point.
>
> This will fix following error:
>
> arch/arm/mach-k3/common_fdt.c: In function 'fdt_fixup_reserved':
> arch/arm/mach-k3/common_fdt.c:156:2: error: a label can only be part of a statement and a declaration is not a statement
> 156 | struct fdt_memory carveout = {
> | ^~~~~~
> make[1]: *** [scripts/Makefile.build:256: arch/arm/mach-k3/common_fdt.o] Error 1
> make: *** [Makefile:1919: arch/arm/mach-k3] Error 2
>
> Fixes: 096aa229a9e ("mach-k3: common_fdt: create a reserved memory node")
>
> Signed-off-by: Daniel Schultz <d.schultz at phytec.de>
> Reviewed-by: Udit Kumar <u-kumar1 at ti.com>
> ---
> Changes in v2:
> * Moved carveout struct at the beginning instead of adding an dummy statement.
>
> Changes in v3:
> * Removed .end assignment from carveout definition.
>
Thanks again for fixing this up
Reviewed-by: Bryan Brattlof <bb at ti.com>
~Bryan
More information about the U-Boot
mailing list