Hi Quentin, On 2026-05-04T13:20:27, Quentin Schulz <[email protected]> wrote: > scripts/Makefile.extrawarn: migrate -Wvla to a U-Boot-specific file > > In the next commits, we'll be synchronizing scripts/Makefile.extrawarn > with the Linux kernel's at version 6.1 which is what we've been claiming > we've synced to for a while but that isn't true. > > In kernel commit 0bb95f80a38f ("Makefile: Globally enable VLA warning"), > available in v4.20, -Wvla is now enabled tree-wide and not present in > scripts/Makefile.extrawarn anymore. When we'll be syncing to v6.1, we'll > therefore be losing this flag (since it's not in our root Makefile). We > could backport the changes to the root Makefile to our root Makefile but > U-Boot is not VLA-free unlike the kernel. > > We have two options: > - backport the changes to the root Makefile and disable it in > scripts/Makefile.extrawarn.u-boot, > - only enable it in scripts/Makefile.extrawarn.u-boot, with the same > warn level as currently: 3, > > For now, do the second option. We should probably go for the first > [...] > > Makefile | 1 + > scripts/Makefile.extrawarn | 1 - > scripts/Makefile.extrawarn.u-boot | 9 +++++++++ > 3 files changed, 10 insertions(+), 1 deletion(-)
Reviewed-by: Simon Glass <[email protected]>

