From nobody Sat Oct 4 15:57:18 2025 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 717633019DA; Thu, 14 Aug 2025 10:14:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755166499; cv=none; b=Q/cptU6aPc56pxMi/GB7RZjThauaP2ufvyas6f8wbf39GJ/OoZCU+eQWrwGorvrd3emVbeng01qqJzVu1BQZeS4bPoRmqrvNGKEuCVEcPiONpmGuCHerPyJYQv4W0WNS0Tbw5hPSXTODgObIsWFoaUkmi8lzP5AdQEFFg7/2SIY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755166499; c=relaxed/simple; bh=ZuvIADmUUGtpchbKBOPgW/rNXtkxB2I3BNnT9Y+9wVA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EdczG/Wfm9nQq6sawfH/wojk7p+HVYU+esg9nJRlgCDslvhZOXVXEn/WxEplX93rqtwMiv+4pvdodQu+QEo751WxN2UvcjuMVEaR+oFqeutJBGOZVe6K6m08zcZSgUCGaaZVoSEsAragLT8Dtlp4lxTQGGHU/5LwdECiNxWuv6o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=GjEX0AD/; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=KXbLC4Mj; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="GjEX0AD/"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="KXbLC4Mj" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1755166496; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Cvsevthinn7F8DSgD8Man+edmmcMgA+QVpWsJlXj67s=; b=GjEX0AD/Wg/15/rLq8vNxADmR9+93K4bEo11Bhp6aFTQbNqHVrla3RvBTgqL25iICU7k14 hZ7SIu1ccQTVWUAYqubjC61ZQnXpZngxISf3wFMvkOOkA83QodrPt0kb5LYJVMYG+asuuK pD2mrwmgBdDYV4pnBi6fSrDV/dOoasozhPqqU5CNr0JBGuOEtKDcgbR2Z7URwG/3dbMsg7 Gkqeml/+Xk+jlO/iJrKbIKzfVSDyI+iftRs6RTQu4kQ4lRDGg260rEtt0v/223ZA80uOtT uFjHeW8Q84LrWkAFhRSYq8ouTP8E31DiUb69VXSZbyRQcDBxLB8bbpQsumClXw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1755166496; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Cvsevthinn7F8DSgD8Man+edmmcMgA+QVpWsJlXj67s=; b=KXbLC4MjleoSXjOoHfYqkIdd7d+YtblH6c9P8CvqVQfvijhJFBS451wtMTCIy8PrgR+GPK dz7GVEOk6mdDZeAg== Date: Thu, 14 Aug 2025 12:14:41 +0200 Subject: [PATCH v2 1/6] kbuild: align W=e with CONFIG_WERROR Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250814-kbuild-werror-v2-1-c01e596309d2@linutronix.de> References: <20250814-kbuild-werror-v2-0-c01e596309d2@linutronix.de> In-Reply-To: <20250814-kbuild-werror-v2-0-c01e596309d2@linutronix.de> To: Nathan Chancellor , Nicolas Schier , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1755166493; l=819; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=ZuvIADmUUGtpchbKBOPgW/rNXtkxB2I3BNnT9Y+9wVA=; b=yRMx73nOt0ndank2Cw5E4iHCsgOs5x+7rKmBDY0TYa9q0XixZgcjqgKtZVShobg1Aazza/ges 900cnZBQgo1CCSNs9JD8j7q98LrmXmUL977RY2VK7PfCGn97KP4+Wmq X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= CONFIG_WERROR sets KBUILD_CPPFLAGS while W=3De would only set KBUILD_CFLAGS. As a preparation to unify the two mechanism, align their effects. While at it, add some alignment whitespace to prepare for later additions to the list of changed variables. Signed-off-by: Thomas Wei=C3=9Fschuh --- scripts/Makefile.extrawarn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index dca175fffcabeb2d942814f0a096a7efbf8bc819..4b4e8e136ce6b45f43dc7658eda= 78ae2b37bd792 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -218,6 +218,6 @@ endif # ifneq ($(findstring e, $(KBUILD_EXTRA_WARN)),) =20 -KBUILD_CFLAGS +=3D -Werror +KBUILD_CPPFLAGS +=3D -Werror =20 endif --=20 2.50.1 From nobody Sat Oct 4 15:57:18 2025 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B01702FD7CE; Thu, 14 Aug 2025 10:14:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755166500; cv=none; b=REPrQah2awRWVeRbImP0L+Gkdti/0LmaD22i7uf2QvU/hAj+v1KJh3W4ApqaopTEeHAHCLiP9IwwZrGkaIjEZJTCIi8k2BScKlJeW5oes5lESG+FOEG8KmTaVhww0NpQip0nPKvKXF4FXLT8NGjAZvmc8Ep6A7lp8F0t46zwokw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755166500; c=relaxed/simple; bh=qc6s/o/LyYp06RKUIld/LehlwrmJT/8PCAa5xj674fU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qK6lOwv8lb3q3t1LGJ6Xg1AYcDn7qF/AD3v+g3RPoZrsZThO795HRvQUt1HsbyfOyvTd7dPQ4E7TxdvCat5FPzq9buOi03pfnpGyMrWN4/2rGfHV1p/wY52ALFhEVY0tdosmDy10ycaToA+NGlx4NCAhEXxbiw8aMim+yclmmfc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=reLH1ZTm; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=HEoV2FG8; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="reLH1ZTm"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="HEoV2FG8" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1755166497; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JGXNHovK0Rv6hJZnkYAoodDdRUtyycKbdiEHDzpvrj8=; b=reLH1ZTmOhIveTpqqLUUeK6+jtJgljbayWp/xMzc1TzwdzrrvEp5aH93seAz2E0geYs1Uc E7NLxoregfP8Hx6J/O+flF6Ubtk5JCGdW8OsycY52IGr8JuWAtIyNXmfp8SV94tHYUZS7b 8wroHXql9rSzWxKroz5AQpuonPXqQlABnYf2+7d9K7u60lg0YcLBdRLFPPBVp0owQW6v6F FHGbLALBNwkB3fuAXeI23+7r7YRNeJcSFwImu48kGTa69k+yXwvEJwkyzgbIVxdEcZjxtu JpaWG/Yjbyn/7qarrZXKDF16tsKUbiKZ/LIpy10QiSdg7xGiC+5ySLlUMOFeVQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1755166497; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JGXNHovK0Rv6hJZnkYAoodDdRUtyycKbdiEHDzpvrj8=; b=HEoV2FG8rYYUSXPEBsJjInuYE+hL1jRlx1fVsQ+MqeMMPW97hoMUIeN6PJXpmVxyKLNa0d VWl/sf6h8m3kJtCw== Date: Thu, 14 Aug 2025 12:14:42 +0200 Subject: [PATCH v2 2/6] kbuild: unify W=e and CONFIG_WERROR Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250814-kbuild-werror-v2-2-c01e596309d2@linutronix.de> References: <20250814-kbuild-werror-v2-0-c01e596309d2@linutronix.de> In-Reply-To: <20250814-kbuild-werror-v2-0-c01e596309d2@linutronix.de> To: Nathan Chancellor , Nicolas Schier , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1755166493; l=1167; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=qc6s/o/LyYp06RKUIld/LehlwrmJT/8PCAa5xj674fU=; b=vNFyLfyI/yZ6kHHhLdDv2uacUtjaYvYbU5Huz5Q0CnegkpJiM3Z7Ly4mXi+XrmglcdDjOU/XB wXfUqwOr2mEC3BpRyFnJef279kWhdtwACyO9uGzNTOw2kWFtgiYVsqR X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= The two mechanisms have the same effect, unify their implementation. Also avoid spurious rebuilds when switching between the two. Signed-off-by: Thomas Wei=C3=9Fschuh --- scripts/Makefile.extrawarn | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index 4b4e8e136ce6b45f43dc7658eda78ae2b37bd792..1ffc7beca43bc9e373064194dc8= 975182815a872 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -25,8 +25,6 @@ ifneq ($(CONFIG_FRAME_WARN),0) KBUILD_CFLAGS +=3D -Wframe-larger-than=3D$(CONFIG_FRAME_WARN) endif =20 -KBUILD_CPPFLAGS-$(CONFIG_WERROR) +=3D -Werror -KBUILD_CPPFLAGS +=3D $(KBUILD_CPPFLAGS-y) KBUILD_CFLAGS-$(CONFIG_CC_NO_ARRAY_BOUNDS) +=3D -Wno-array-bounds =20 ifdef CONFIG_CC_IS_CLANG @@ -214,9 +212,9 @@ KBUILD_CFLAGS +=3D -Wno-unused-parameter endif =20 # -# W=3De - error out on warnings +# W=3De and CONFIG_WERROR - error out on warnings # -ifneq ($(findstring e, $(KBUILD_EXTRA_WARN)),) +ifneq ($(findstring e, $(KBUILD_EXTRA_WARN))$(CONFIG_WERROR),) =20 KBUILD_CPPFLAGS +=3D -Werror =20 --=20 2.50.1 From nobody Sat Oct 4 15:57:18 2025 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 589B430BF45; Thu, 14 Aug 2025 10:14:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755166501; cv=none; b=dZ9W6skRJEly/5rGm3SBHnvFRqlo/MZObweAnrJqlA9IxyJFw2jZjgXCAAJNeDA/TahaV+3t1ydVVkgNWnfq/wDdke60n4HSWH73gpJV1nyXJeUZlGN29sWcKbqGomxutRfVjLT1At3YKsp2bCFgUbbyekhUcPtmcoJAoNlkXwY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755166501; c=relaxed/simple; bh=2F7nxcTe7hXryFkci/KCe/kGxSHE1bkTeg5FE3ZVLd4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OjE0TYjFgHQYIkxcvKlhCT3w3ILFG4TWOFI0P5+2SmJT5Z5SvBvtoWXv8YPkbWUMeKxkALmkPyk94WDqmAe5hFYqgVFs8J+izlQMAZmS30V5xXIXIM/G/fJfVO/07NuN9dCX6Up3BV3ziz1KTxryhJew7IP9ZoCoFU4Cepf0bcg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=vALB1DMe; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=dtAFNzlZ; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="vALB1DMe"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="dtAFNzlZ" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1755166497; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TKEeX77iwhdlQ8dac1b+w5iNdxbmLR5Puf3vvfvbj58=; b=vALB1DMeIxX7n0WQ/CJEoKMQuXC8xlh4nbR7zWQbVLgYTU22WLCrkf+s/C/NTT7Anku2Pc s7b8sSYwX6H9fPFlcv/0TY9OyS1TrjhPMI698teGmSTjsNgpQ93lo37ls4IpyY9ES/Kx7n bchypCyMN4EvSjFiu65QbIciwbEwwb47f0KM799vvnESchPFkny7JIVStyHEEwJUfuLszN E5wyLZJxP/GjXckZ/Vyq5upas01eflaZzGioX3RY3Zj+MU1pumKVdh2BYJcxi3jyemDYlK K3DOKcNoSpbLx6EQO6as1r8eAeleqKECeT4m5dh9a4LQjs5HoIB+3aKYI9kwDQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1755166497; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TKEeX77iwhdlQ8dac1b+w5iNdxbmLR5Puf3vvfvbj58=; b=dtAFNzlZNi0x+f89/xVUw/2pFUzToACOk4fyeWzIOfRBzj/uSOwmC+cFR1O7Afkd2PiinB dTWLc/c4d0lMwTCQ== Date: Thu, 14 Aug 2025 12:14:43 +0200 Subject: [PATCH v2 3/6] kbuild: rust: move `-Dwarnings` handling to `Makefile.extrawarn` Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250814-kbuild-werror-v2-3-c01e596309d2@linutronix.de> References: <20250814-kbuild-werror-v2-0-c01e596309d2@linutronix.de> In-Reply-To: <20250814-kbuild-werror-v2-0-c01e596309d2@linutronix.de> To: Nathan Chancellor , Nicolas Schier , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1755166493; l=1356; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=ii4ARBWmvlOmKgONh0VQaqjjFhoXOCbpDHXbIE5Bd0k=; b=WSOhmy0Y9cQaBX0ourPWdygl4ATiiF6LsDYIeHSfIjScIA6wauBhlbye5C9jQA7eoT0CuTorU G7/2QW/McfwCGMuZPWncj7lGddlaBFAwSGrFI1SxEDkveAPV7RgmSYA X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= From: Miguel Ojeda 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. Signed-off-by: Miguel Ojeda --- Makefile | 3 --- scripts/Makefile.extrawarn | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 6bfe776bf3c5ff0cf187dc6719dd5817cd4af2ca..6630a66659c6d1ca7e72448b04d= 16c3fdd1fbe24 100644 --- a/Makefile +++ b/Makefile @@ -901,9 +901,6 @@ stackp-flags-$(CONFIG_STACKPROTECTOR_STRONG) :=3D = -fstack-protector-strong =20 KBUILD_CFLAGS +=3D $(stackp-flags-y) =20 -KBUILD_RUSTFLAGS-$(CONFIG_WERROR) +=3D -Dwarnings -KBUILD_RUSTFLAGS +=3D $(KBUILD_RUSTFLAGS-y) - ifdef CONFIG_FRAME_POINTER KBUILD_CFLAGS +=3D -fno-omit-frame-pointer -fno-optimize-sibling-calls KBUILD_RUSTFLAGS +=3D -Cforce-frame-pointers=3Dy diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index 1ffc7beca43bc9e373064194dc8975182815a872..b04b3062e0e49c3ae7471973251= 017e8738cd244 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -217,5 +217,6 @@ endif ifneq ($(findstring e, $(KBUILD_EXTRA_WARN))$(CONFIG_WERROR),) =20 KBUILD_CPPFLAGS +=3D -Werror +KBUILD_RUSTFLAGS +=3D -Dwarnings =20 endif --=20 2.50.1 From nobody Sat Oct 4 15:57:18 2025 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0A5B530BF53; Thu, 14 Aug 2025 10:14:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755166502; cv=none; b=eqwZibDhfA3h2fOZsNkeBgMlSwNCk9GDfA+x5Xz/AuBP/UJSOcFnkJ+r9cASmw0JQf7CCr1uHzxnL/JBivSOtinQomoBRPoIg3YMKkmo0FCAmQ/PYDJRTQHqTQg9lFP+CwH4+NPPNsdNynwnR92a7NZfWMb89qfuZCtozS2RW/A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755166502; c=relaxed/simple; bh=NBqee1aVMn/SXi53H4inWlePlYoLzUuVMoqYmUyZV6o=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=iKerc318iKowZ42bixQG5jIC3XWgLI6BxJRTDM0nS/WrZ4OFLpHF6TSfhlNrHy38osog7FemdczTHx/fipiDnG8DDpZWVwQjuBqCh6ENlRIKdeQbZKA/7ZQFFgF14oSKGssrwitK4AspikNakEh2mo0ZAvhnts1ZVt/RoZYjSYc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=j31T6Enj; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=JtJJ7qfs; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="j31T6Enj"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="JtJJ7qfs" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1755166498; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KfWWYTST21w8k61TdCEXDzlrxASLLCtleuIz5f50OrI=; b=j31T6EnjDjhfkoHhB3o0SfdFt5Pqsy8PfDlhLLe7vcFwhOIzN3aU8R0AVE9ioDBlm0eY0P pcO4tgtYSjzwG/NT9p6h4NYwDQLcZ/wUMap7FKqYOfla2uLtCsQvl7LmYQZXyucLtkUGpM pIpuPCYhwJrXrrI6t2X0zUMCaSWWeEMNqjvPtOrcaQZXcX/hAXOpO+xpw/RLAMHlexlewu QKgOz+QNskKvtpIx9Mtvyx2i5EUs2PgGciGYSsE4GYTJDcpE+rQh6spaD+fYHjJXjToSnm 3Ycwhm+dMFDob0Va18K7Nxkl4CkMN4X3y81j/PtX0TE2i9F6TLIHX+8omm2nLw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1755166498; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KfWWYTST21w8k61TdCEXDzlrxASLLCtleuIz5f50OrI=; b=JtJJ7qfsI7JHZ5UgjP08qT1l0lKCZu3HXAhDmeaV1MPACaAeETE8LiY1MgnONuzeG1FHHU MRBegGXAh/LNFsDQ== Date: Thu, 14 Aug 2025 12:14:44 +0200 Subject: [PATCH v2 4/6] kbuild: respect CONFIG_WERROR for linker and assembler Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250814-kbuild-werror-v2-4-c01e596309d2@linutronix.de> References: <20250814-kbuild-werror-v2-0-c01e596309d2@linutronix.de> In-Reply-To: <20250814-kbuild-werror-v2-0-c01e596309d2@linutronix.de> To: Nathan Chancellor , Nicolas Schier , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1755166493; l=772; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=NBqee1aVMn/SXi53H4inWlePlYoLzUuVMoqYmUyZV6o=; b=S53WlTiHeQyJS88eX7u1LfaIPxvWJzz/+ERrmebB1URYUsBvjJ89GdvWkxkSTIY3PU6DCHyWU h8uzEkdPmQ3CcefcmoZjwLzFHEhPnWrhhedwRC83rXlhFNHQntvabcz X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= The linker and assembler do not share the compiler flags. Make sure they also fail on warnings with CONFIG_WERROR and W=3De. Signed-off-by: Thomas Wei=C3=9Fschuh --- scripts/Makefile.extrawarn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index b04b3062e0e49c3ae7471973251017e8738cd244..6efb9e5eeeed0696a061a17e029= a92caba50826f 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -217,6 +217,8 @@ endif ifneq ($(findstring e, $(KBUILD_EXTRA_WARN))$(CONFIG_WERROR),) =20 KBUILD_CPPFLAGS +=3D -Werror +KBUILD_AFLAGS +=3D -Wa,--fatal-warnings +KBUILD_LDFLAGS +=3D --fatal-warnings KBUILD_RUSTFLAGS +=3D -Dwarnings =20 endif --=20 2.50.1 From nobody Sat Oct 4 15:57:18 2025 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD7AA30C90D; Thu, 14 Aug 2025 10:15:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755166503; cv=none; b=DuTsFQ3DynANgxNrvPTph7KQamn/gLjLx3iGsK/W170FklZlygQ/NXepoTQjwKaUlZxibwi/JiHBGvzNXFgRyXj8zhtBS07kDuui5E9S8GdRe0I3CkYwCI44eIEZ8aWDh+VSUDohtYCGP8YocS588/r5VQFBenCu4xm012Vu4MI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755166503; c=relaxed/simple; bh=p3sbqLdX8LT8DFirSBwzRa/TCL6qe+PJUwAWYSbA0ho=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lstcf9xwCu4C4RjWgNvNM1U42ZBlEjWiLbV/fKNK1Su1xiaNaHCoPnc6WpC43R+99oul0ryVSvkekhl2uumiofCEzHeyBY3MTGw/g9x0SyLamA/RQ1ftdaEvURlgZ0h25QSBD5vU+JDjmvZzMeY19+1c6Tu/KOrOlx/6h3W0u8w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=nJqykU0N; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=bMlnfvLf; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="nJqykU0N"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="bMlnfvLf" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1755166498; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lCEDx2mv0kXmPcReBsWibYDiujq1S+i3BlZP/SBf9yY=; b=nJqykU0NKwKtaw4aAiigeiBiooDTM8r4OSQWW7+UDlQQgCB+qrieEzrObdtWcnAxOWOnzm 1dmltkLvY464qqmotnkKYsFX/epn9nJtzbTcxQssf3dmqF1lSX5/ASOO3/fuPSF7Vg5x4A pEVFryUK0FUagAzzCju4Pyj24RQ+Iq0132cxvxSplfTkPB8T2mOy3bY2eVkHUUFfdn61AQ sBYLmeWjtCKkTWIYQFUthKxWvVOJyaamFCPquQ8iZRYu6dT+9Vs3aFHcEawSRKYn7OWDp3 I3E4Rt5eff/tCCSn+fkLLjiQWU97aySVIQ9xcfpsxmVVW7MYiHmE/wN1Z1JF0g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1755166498; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lCEDx2mv0kXmPcReBsWibYDiujq1S+i3BlZP/SBf9yY=; b=bMlnfvLf2knfO7lJepTPtsLqCX5ToeN4qMVZu3D2mIwCpf3dMB9XJCsGS8IyvM9+ZJcd56 RPfH3uMK6OHzuzCQ== Date: Thu, 14 Aug 2025 12:14:45 +0200 Subject: [PATCH v2 5/6] kbuild: respect CONFIG_WERROR for userprogs Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250814-kbuild-werror-v2-5-c01e596309d2@linutronix.de> References: <20250814-kbuild-werror-v2-0-c01e596309d2@linutronix.de> In-Reply-To: <20250814-kbuild-werror-v2-0-c01e596309d2@linutronix.de> To: Nathan Chancellor , Nicolas Schier , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1755166493; l=854; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=p3sbqLdX8LT8DFirSBwzRa/TCL6qe+PJUwAWYSbA0ho=; b=FvGHxXjdXHnR/eOlc7JFvvKM0LrvW1vPyxl7GCynxlDgnbKS8FgoCNPb+xgJMurTBwW7qdydg aDST0WpYj7sDEK/NWvX5RzMEHmkvNY3qxxNDMkefoxPF5OpZMzQ6OCu X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= The userprogs compiler and linker do not share the regular compiler flags. Make sure they also fail on warnings with CONFIG_WERROR and W=3De. Signed-off-by: Thomas Wei=C3=9Fschuh --- scripts/Makefile.extrawarn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index 6efb9e5eeeed0696a061a17e029a92caba50826f..96ff3f5582d651f0016c8ccd49d= 46022cc6fe070 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -219,6 +219,8 @@ ifneq ($(findstring e, $(KBUILD_EXTRA_WARN))$(CONFIG_WE= RROR),) KBUILD_CPPFLAGS +=3D -Werror KBUILD_AFLAGS +=3D -Wa,--fatal-warnings KBUILD_LDFLAGS +=3D --fatal-warnings +KBUILD_USERCFLAGS +=3D -Werror +KBUILD_USERLDFLAGS +=3D -Wl,--fatal-warnings KBUILD_RUSTFLAGS +=3D -Dwarnings =20 endif --=20 2.50.1 From nobody Sat Oct 4 15:57:18 2025 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD78430C90C; Thu, 14 Aug 2025 10:15:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755166504; cv=none; b=qFdaF9tzea9+3snAtQ3NnStgZlLjuWDruoYB+Vpe3uxupywKCUMaYZpjVVrfLrVJdNJWDpAqgfY/R3UGM87k0I/r2mKcf85NZqi4sfJ5b5R72M/DM0xzHKuib29PoP0s5MI8FIMB0E7B+6iFAfEYRJ9tJayU4Zbqh7k0dN/MHJE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755166504; c=relaxed/simple; bh=f1CS2VIWQbY8mqOlPEfsez31acj0r6vOn5h2GAEgQx8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qEOhaSHKQ93BRbpCj0Sd5I9OlkGPeM1ZX1K2sX9ivBH/ZXqh34liPQidu6cDCSGakbkMJesSwdKJKAIzA1HrMEgB3VwtxTSaZ5r+wFZYhnE//yD0HDLQYr6jeA2aO/H/V81FGoncsLRxaei8x6P7yZ3mxMMwNB5PT2JZY0utrJE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=QJ9KW2NF; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=NNaslw3r; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="QJ9KW2NF"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="NNaslw3r" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1755166499; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=to+JGxG1GuQ3pUanrHLU8cpAbRux/zwfu75r2skKHHA=; b=QJ9KW2NFL4djCo69Tkh6cENzgWu5nCipeYttVR5H70uTbVwx8BQlBPSoHvEvjpHw9i/nFp hrwv4luzZCN1ZG7aiC5KIoMz6eE+BSjptj1TeJ6ht5bnY9vviYLdGo2G58MeXwCsWxMLPo dALgv4hKChgjtoZogULpaz+Xjx61upjPt+MhsmoB43xNb9EWoXsZAO0acieRwuWmwbzcG3 WvascBzJrIPR33iMVDHXFHrsztjLD9j0dJyHC+/13KKnn+qonHS/sTjXHthSgFMzygI4ZO xgjQnBuM+7h1HVx/c5dWyUsfnZACY0a3gQ5ICU/5a+powHkY2TE23HquxQ+2kg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1755166499; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=to+JGxG1GuQ3pUanrHLU8cpAbRux/zwfu75r2skKHHA=; b=NNaslw3rFrWQfsd+4ek8lyLoRIO1PGaiz6GNwom16RGpZJvrp03dXISEX0h9HLvVVyktpF 2xfhZn3VqswBMcCA== Date: Thu, 14 Aug 2025 12:14:46 +0200 Subject: [PATCH v2 6/6] kbuild: enable -Werror for hostprogs Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250814-kbuild-werror-v2-6-c01e596309d2@linutronix.de> References: <20250814-kbuild-werror-v2-0-c01e596309d2@linutronix.de> In-Reply-To: <20250814-kbuild-werror-v2-0-c01e596309d2@linutronix.de> To: Nathan Chancellor , Nicolas Schier , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1755166493; l=1107; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=f1CS2VIWQbY8mqOlPEfsez31acj0r6vOn5h2GAEgQx8=; b=Ychs4ju/XrBO8iisbBKsFf5dGG0tMUlTh1L86wu4YL/VhEjedBC4es09EBmpqR3EPAt6SkfOO 2K1Y4ahYIqID6BZRYF9WIZmtR5eQuEaNQ7AoK5CfBT11ktKRu6arLwU X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= The hostprog compilers and linkers do not share the regular compiler flags, so they are not affected by CONFIG_WERROR or W=3De. As hostprogs are used during the bootstrap of the build, they can't depend on kconfig options. Enable -Werror unconditionally. Signed-off-by: Thomas Wei=C3=9Fschuh Reviewed-by: Nicolas Schier --- For testing in -next, as discussed in https://lore.kernel.org/lkml/20250812-kbuild-werror-v1-2-36c9ff653700@linut= ronix.de/ --- scripts/Makefile.extrawarn | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index 96ff3f5582d651f0016c8ccd49d46022cc6fe070..1434cb6208cb82f20aeb29cc8c0= 59220d1a1f6d2 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -224,3 +224,8 @@ KBUILD_USERLDFLAGS +=3D -Wl,--fatal-warnings KBUILD_RUSTFLAGS +=3D -Dwarnings =20 endif + +# Hostprog flags are used during build bootstrapping and can not rely on C= ONFIG_ symbols. +KBUILD_HOSTCFLAGS +=3D -Werror +KBUILD_HOSTLDFLAGS +=3D -Wl,--fatal-warnings +KBUILD_HOSTRUSTFLAGS +=3D -Dwarnings --=20 2.50.1