On Mon, 4 May 2026 at 16:20, Quentin Schulz <[email protected]> wrote: > > From: Quentin Schulz <[email protected]> > > [ Upstream commit 592b571f20c5b905c47a1370210456f9f90ce04f ] > > Original commit log: > > Following commit e88ca24319e4 ("kbuild: consolidate warning flags > in scripts/Makefile.extrawarn"), move `-Dwarnings` handling into > `Makefile.extrawarn` like C's `-Werror`. > > No functional change intended. > > [git conflict trying to remove KBUILD_RUSTFLAGS from Makefile, which we > don't have in U-Boot] > [U-Boot doesn't build anything Rust so this is useless except for the > fact it allows to backport patches from Linux kernel easier] > Signed-off-by: Quentin Schulz <[email protected]> > ---
Reviewed-by: Ilias Apalodimas <[email protected]> > scripts/Makefile.extrawarn | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn > index b5b1a762cdc..2af90af594e 100644 > --- a/scripts/Makefile.extrawarn > +++ b/scripts/Makefile.extrawarn > @@ -104,5 +104,6 @@ endif > ifneq ($(findstring e, $(KBUILD_EXTRA_WARN))$(CONFIG_WERROR),) > > KBUILD_CPPFLAGS += -Werror > +KBUILD_RUSTFLAGS += -Dwarnings > > endif > > -- > 2.54.0 >

