[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250814-kbuild-werror-v2-0-c01e596309d2@linutronix.de>
Date: Thu, 14 Aug 2025 12:14:40 +0200
From: Thomas Weißschuh <thomas.weissschuh@...utronix.de>
To: Nathan Chancellor <nathan@...nel.org>,
Nicolas Schier <nicolas.schier@...ux.dev>, Miguel Ojeda <ojeda@...nel.org>,
Alex Gaynor <alex.gaynor@...il.com>, Boqun Feng <boqun.feng@...il.com>,
Gary Guo <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Benno Lossin <lossin@...nel.org>, Andreas Hindborg <a.hindborg@...nel.org>,
Alice Ryhl <aliceryhl@...gle.com>, Trevor Gross <tmgross@...ch.edu>,
Danilo Krummrich <dakr@...nel.org>
Cc: linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org,
rust-for-linux@...r.kernel.org,
Thomas Weißschuh <thomas.weissschuh@...utronix.de>
Subject: [PATCH v2 0/6] kbuild: enable CONFIG_WERROR for more build steps
CONFIG_WERROR is useful for all build steps, not only compilation of C and
Rust sources linked into the kernel.
Also enable it for assembler and linker invocations and userprogs.
In addition unify the implementations of CONFIG_WERROR and W=e.
This partially implements features of Miguel's Rust -Werror series [0].
The changes to $(common_rust_flags) are not incorporated as it also modifies
Rust hostprog flags.
[0] https://lore.kernel.org/rust-for-linux/20240519211235.589325-2-ojeda@kernel.org
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@...utronix.de>
---
Changes in v2:
- Unify CONFIG_WERROR with W=e
- Unconditionally enable -Werror for C and Rust hostprogs
- Link to v1: https://lore.kernel.org/r/20250812-kbuild-werror-v1-0-36c9ff653700@linutronix.de
---
Miguel Ojeda (1):
kbuild: rust: move `-Dwarnings` handling to `Makefile.extrawarn`
Thomas Weißschuh (5):
kbuild: align W=e with CONFIG_WERROR
kbuild: unify W=e and CONFIG_WERROR
kbuild: respect CONFIG_WERROR for linker and assembler
kbuild: respect CONFIG_WERROR for userprogs
kbuild: enable -Werror for hostprogs
Makefile | 3 ---
scripts/Makefile.extrawarn | 18 +++++++++++++-----
2 files changed, 13 insertions(+), 8 deletions(-)
---
base-commit: e8ee794a1f7705edd64b9eb9837e7baa4421c084
change-id: 20250801-kbuild-werror-081f72fee1de
Best regards,
--
Thomas Weißschuh <thomas.weissschuh@...utronix.de>
Powered by blists - more mailing lists