From nobody Sat Oct 4 22:33:03 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 F2B9829BD9F; Tue, 12 Aug 2025 05:33:11 +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=1754976793; cv=none; b=dcw978GLM9j4K+9HomrE4iDG6013XeNOKDvO9fIOJQIeDBi/V6pdwnK/BtTFKDzLPVE805qAXE6aplIl2+nMRFnYfYusbA6dvoixCxkbVLJc+E/FR+1B42XJlYNa+fshXFZ8reFNxUFPq+G2SJ2ltQzi63wp/Symt8I3M+hs7hw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754976793; c=relaxed/simple; bh=jpiYXlkarPKLOWnAfKbo1es5FwEuGW1Vj5uf3ESynpE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rdLEwQw6uz7PLkieIjADsyDeWflFtK6D9v2DJEKxSPCICRTvz1vlMQ9R0lpQ/WtBx3aR6mIYBjNg0xooM/U+anj8brp8j0vCwSLc7LNPSrNWr3m4X83XuzHOSqDDlr93Wn+fuQXMNqOK7IBfJcNdTBOXVN202kEIN5c93w4QoGo= 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=pyw3yaLf; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=K1rBEwDU; 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="pyw3yaLf"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="K1rBEwDU" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1754976790; 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=fN8mEinkURCbzhnn4Ak+rUkW62hSiG3SOmyZ4DyaLZU=; b=pyw3yaLfLzCIw7KrcHkYaKJqMRis5U+YvGmBxu8FX584v4BwsfLbOG0CUdBen3d7cxuL5p IxsqyauUuGwauFFYL8J6yES8IbyOeeyDkbnvb3TA4VluzprAfrkK7/oiiK2WCXuYsqEQMC BaGc89LAJx7wpKPV/0u2Xh5tOq/UlYOyqqmLJmUTTham8RuXcPK+cPMemLTH6fvmDfumWd C3IbWzgPPsG6fx2rUhsTnY7U6T//wGi59EGrSs+dGiql5+f3cS7YxpI/RoW4e9rJj1Uq0m M7mo7wm75mYeriJPLLTDD5VOKbmWPl71PglinDMVDu3SKBRkcrXofoqDxs6zFw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1754976790; 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=fN8mEinkURCbzhnn4Ak+rUkW62hSiG3SOmyZ4DyaLZU=; b=K1rBEwDUsAULrKaJtcR45XwSHKtq4ICAHQS2JWRxavgSHa97z6IY/RCQ4gba1J4c7SIr0e E0Qu4DEIB3E/5+BQ== Date: Tue, 12 Aug 2025 07:33:04 +0200 Subject: [PATCH 1/6] kbuild: uapi: rerun header tests when headers_check.pl changes 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: <20250812-kbuild-hdrtest-fixes-v1-1-7ad2af66cd58@linutronix.de> References: <20250812-kbuild-hdrtest-fixes-v1-0-7ad2af66cd58@linutronix.de> In-Reply-To: <20250812-kbuild-hdrtest-fixes-v1-0-7ad2af66cd58@linutronix.de> To: Nathan Chancellor , Nicolas Schier Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1754976787; l=799; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=jpiYXlkarPKLOWnAfKbo1es5FwEuGW1Vj5uf3ESynpE=; b=X5tStPrDkM2p4fHctj6O4rZfMOhYCGmfVjLZOx0o+Ua03O68rXQv1JgmX0bT/DHn62w0zoRvp Z9lcuxTC3iJBv7Mc2mAzsZhjo9byW+qOO8Bv44YART33XrE7CNfY/YL X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= If the checks change they need to be rerun. Add a Makefile dependency so this happens. Signed-off-by: Thomas Wei=C3=9Fschuh Reviewed-by: Nicolas Schier --- usr/include/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/include/Makefile b/usr/include/Makefile index f02f41941b60c88d921da2b955076bbff7884c1c..c7f164952b33acf6c7b8eb7ce91= cd192bfc39ad2 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -85,7 +85,7 @@ quiet_cmd_hdrtest =3D HDRTEST $< $(PERL) $(src)/headers_check.pl $(obj) $<; \ touch $@ =20 -$(obj)/%.hdrtest: $(obj)/%.h FORCE +$(obj)/%.hdrtest: $(obj)/%.h $(src)/headers_check.pl FORCE $(call if_changed_dep,hdrtest) =20 # Since GNU Make 4.3, $(patsubst $(obj)/%/,%,$(wildcard $(obj)/*/)) works. --=20 2.50.1 From nobody Sat Oct 4 22:33:03 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 9F276279DAA; Tue, 12 Aug 2025 05:33:12 +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=1754976794; cv=none; b=fbfG0qLDUle2sZwDc66RhjRpvcb8ZPNS7pogxyphz4jFy+/QHOrDSfdcWi8vO1mgwLlVVQSta2ut+s0ghCzhCKsE2l3fHfCVpaimWU6P8VHhuuiFqCTj4O7oObllOkaSauHxut+X91pC63G5r4Og+82EMbflzPHB8QCMb8RkZsQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754976794; c=relaxed/simple; bh=2dSS2jCFNlVevbx8VAMk9A+PtdF82mI0eqDvvJuusTU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=oz/of5BRwcx/JH8OSQ8lSETsokk7WwIsnbobKhReMST83N3itx0TMTedz+88yIJl3Ih/p5SN7hAP5Pfj8SVQre5jpaWrKV89+2Iib9EVr0+1vJtdTGHTnbdTwt0wc/+HU1G7/AW0ScKKOMXlrLPUGwbLYN2RAa8eOd7RcIMdbFU= 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=XnX17NgP; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=17Ujucg0; 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="XnX17NgP"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="17Ujucg0" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1754976790; 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=jX8mAIJvEPb+65oHPBkYjryEElD2kYJYeMruHsijwF4=; b=XnX17NgPLasefRuv5zXJX77yl9sl169kQndBXumLe976o3GSwHilk4rwis8G4yk+H6TL5X +lvjOKUGXC9H36+BYsHQB65Tr9tz01a7m91/kc3F/xIx7DuqTbe4GpatryiHZnfx82vWNB CeVlMOol7fHXAoRAYy/8Tp+k2mN6SeTAh+vUq2+sPRoP336RI60E+duEOse7QgImWSfTY2 JjiLcX0seDORCfRXP0lpP2a+cEYFy173ilAzRNf4rsI62qu6aU28IXw51Pql7ZG7HZu5yZ /KV5kKJoeY8O3neXsJO2/0LFRzqNBrKK9gRl588wKQCohnHzbwmMQtFijMLb4g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1754976790; 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=jX8mAIJvEPb+65oHPBkYjryEElD2kYJYeMruHsijwF4=; b=17Ujucg0NOjgNVmntdw6SwusTKOltx/YDB9dXKVm3q9Yos4aPnHYWCwojSz0+3cSl4yeTi ux3iyJPLOqDzNPAg== Date: Tue, 12 Aug 2025 07:33:05 +0200 Subject: [PATCH 2/6] kbuild: uapi: only update hdrtest output on success 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: <20250812-kbuild-hdrtest-fixes-v1-2-7ad2af66cd58@linutronix.de> References: <20250812-kbuild-hdrtest-fixes-v1-0-7ad2af66cd58@linutronix.de> In-Reply-To: <20250812-kbuild-hdrtest-fixes-v1-0-7ad2af66cd58@linutronix.de> To: Nathan Chancellor , Nicolas Schier Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1754976787; l=1168; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=2dSS2jCFNlVevbx8VAMk9A+PtdF82mI0eqDvvJuusTU=; b=Q6Xz81+h8YM6lQLt9HTunLiOTLI2Mx0N7Xc5iTaUVlDJ5qZGnFsLTqdg8T70cFj9soT70c630 k4LFjSz1rvJAS3R+P00Fe7EVtQXC9FJ6le1s1h1GtKeRE3T0QwqXSlt X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= If a header test fails, the output should not be updated. Otherwise the next make invocation will not rerun the test. Also headers_check.pl should only run if the syntax check invocation before succeeded. Add explicit sequencening. Signed-off-by: Thomas Wei=C3=9Fschuh Reviewed-by: Nicolas Schier --- usr/include/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/include/Makefile b/usr/include/Makefile index c7f164952b33acf6c7b8eb7ce91cd192bfc39ad2..6868d183f36d532cd3d4023b936= c67b8a58a9ba5 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -81,8 +81,8 @@ always-y :=3D $(patsubst $(obj)/%.h,%.hdrtest, $(shell fi= nd $(obj) -name '*.h' 2>/ quiet_cmd_hdrtest =3D HDRTEST $< cmd_hdrtest =3D \ $(CC) $(c_flags) -fsyntax-only -x c /dev/null \ - $(if $(filter-out $(no-header-test), $*.h), -include $< -include $<); \ - $(PERL) $(src)/headers_check.pl $(obj) $<; \ + $(if $(filter-out $(no-header-test), $*.h), -include $< -include $<) &&= \ + $(PERL) $(src)/headers_check.pl $(obj) $< && \ touch $@ =20 $(obj)/%.hdrtest: $(obj)/%.h $(src)/headers_check.pl FORCE --=20 2.50.1 From nobody Sat Oct 4 22:33:03 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 DC692269811; Tue, 12 Aug 2025 05:33:12 +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=1754976794; cv=none; b=BaQyw6EawMFTK8u/FoIwjAzI4vnvS/OlgoIzRLCIOY/odkMINVGUXCicaHKuQYXvP5g9n6uARpGsJg/kjIU8ips6VmZlhIW7Y5b26T4cKNu/MyO3Lbhfy8Tb3pJELp70mEFZoaeNVhSjsGm8MXWPw6puqtPCfn+4cIrMhtHvrck= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754976794; c=relaxed/simple; bh=vzjltkuEi3N8/Cur3l6NVv0+8uIBQviOCWSpW2z0EXA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=E2eiWAef5dHZCqortIzDto3orZbxhoztUH0iMnILJmCwxEWu3vv9zH4xV7IdZUvi0F9iJW1iMS8uvi2VKGiyXyLyOF3Ig0S0uvNwhjK1MX0PdYWNpqYumyMXUDQIWYhnw9SPgi303yCgPabmY7cUFo8GCgH6tQ8LA0KTbvtYMwk= 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=t5kv6mpe; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=4+ySJyKG; 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="t5kv6mpe"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="4+ySJyKG" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1754976791; 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=eIez5+KJkpfadeWsmV2pVmE0iSYj715MD+J2kPVy/U0=; b=t5kv6mpeFT7cvZ4YYvcslnD4KiyR1ub4/LLA7NWX2VnBMYoY/hSZ3FT++JOUCZoJF92qmw 8drMlUQsP/aGnonh5lbY9dh8FlwVRZVjSTOsiC5MDhoXgae8+o67Feig6Z0fufbtfH0/hF Xw6CD9ikYksg0qz8K6Ms3G+dok+uYv0VILpuKjPGjHAfUN7ZD8Sd++CmvUy5g6axgOS4xl cBR1OAXmt8Gt2zV5GBXcU00mZK/oKb7y5aBnjS04MbvilHCbBBRH4FnBnpKtW0DSH6MkTX kc1YWyo2O6G0AcRLLzsqoJXwz4OAMRq2iKmFgRAerJQTVbB3g0f0CIkIw7+Hyw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1754976791; 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=eIez5+KJkpfadeWsmV2pVmE0iSYj715MD+J2kPVy/U0=; b=4+ySJyKGBX0HEM84XlWxPwUUToxk5Tguk2hb4O0XreaKU+KmSfqryaKmXcS46n+QFSwCuU YxZvd6xYjlDSbdDw== Date: Tue, 12 Aug 2025 07:33:06 +0200 Subject: [PATCH 3/6] kbuild: uapi: fail header test on compiler warnings 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: <20250812-kbuild-hdrtest-fixes-v1-3-7ad2af66cd58@linutronix.de> References: <20250812-kbuild-hdrtest-fixes-v1-0-7ad2af66cd58@linutronix.de> In-Reply-To: <20250812-kbuild-hdrtest-fixes-v1-0-7ad2af66cd58@linutronix.de> To: Nathan Chancellor , Nicolas Schier Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1754976787; l=951; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=vzjltkuEi3N8/Cur3l6NVv0+8uIBQviOCWSpW2z0EXA=; b=t9pEE/WUii1++6DSntwO/85Dh5c2pAu1Hm9Qw3zCtKBOxjmM7W9QlswPi/CJFC+rNOZ6MNN1D vfnR/Gp0L4uAwnuQBSri3cy/RvdLkFa2awLR8IxOfyIcc2k4WV+KtzV X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Compiler warnings also indicate issues with the headers. Make sure they don't go unnoticed. Signed-off-by: Thomas Wei=C3=9Fschuh Reviewed-by: Nicolas Schier --- usr/include/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/include/Makefile b/usr/include/Makefile index 6868d183f36d532cd3d4023b936c67b8a58a9ba5..2846fe216ee4f2054effbfbb577= 8b4e5b24649ae 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -80,7 +80,7 @@ always-y :=3D $(patsubst $(obj)/%.h,%.hdrtest, $(shell fi= nd $(obj) -name '*.h' 2>/ # Include the header twice to detect missing include guard. quiet_cmd_hdrtest =3D HDRTEST $< cmd_hdrtest =3D \ - $(CC) $(c_flags) -fsyntax-only -x c /dev/null \ + $(CC) $(c_flags) -fsyntax-only -Werror -x c /dev/null \ $(if $(filter-out $(no-header-test), $*.h), -include $< -include $<) &&= \ $(PERL) $(src)/headers_check.pl $(obj) $< && \ touch $@ --=20 2.50.1 From nobody Sat Oct 4 22:33:03 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 ADA6A273D6B; Tue, 12 Aug 2025 05:33:13 +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=1754976795; cv=none; b=bKWP/cc4/rMwyW6BkGICM1HPllCW/r0KezKSAnSONUtwQcVmoA0DPvPIlfhSLXEGwvDIpV4Izwu+XZUHpPaReJqpZoKFAC1IEFZLpNx758ge4F63rn0Uu4Dm1izTtYrm5OasuO4w7RmvoKRvCEvs2+DytQAjIucQrWczseXnwIU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754976795; c=relaxed/simple; bh=PyeDTO0WRvjQ2H0nGQ3V9Ec1EE1YAZNeO5y3b07V+00=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nzT4o6jPTcPkLnqevpQQ9iGwsVRnw41AbeKTon0jIo9fZtxFK1+3lJbCmmexbwmXqfOoPPq0adSTbfo2O4ubk6pfNpMnAW7B67xjQDVDjPIAUWJHlzMdjxrElDkSc1c7QTwZnVGskNPKsmZzvrB8hnA+ocjTI1gtZ7MVnCdRZKg= 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=M/ThQWH/; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=X37J7zkr; 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="M/ThQWH/"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="X37J7zkr" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1754976792; 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=jvkf1zbH1yXIJhJUPSKZokDxDIyBL5E7H40ReZ/gyp8=; b=M/ThQWH/rO+vkoK38c8SuuZkMI9h8zHkkUCXjhXA257e5DU2PCGW9DGAyvOtbYNXnLvWlD cg11DUgoyqa087zUYDwjkCgTUvluWzWoLwuBDixA50YsGuzLjjvSj+MwSOKFj2+bKQp01+ uasAu3weauji2CUduSUNf1rXHMsxPtRhbKUm29E+LrWdyECdWor1ewJoKcaNizFEe6H4yO uB53/iDhmoewTBAkT54aT6+6WzZHcAZBe0jw6OdC3xfHfnJaxTXrJw8kIzyzsZDMk/pw1b N/lmZunTnUffZEmHocDHJiITB1gwy0FJxTGcy1oDxAk/Lu0OPD1YPoIDx0z5DQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1754976792; 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=jvkf1zbH1yXIJhJUPSKZokDxDIyBL5E7H40ReZ/gyp8=; b=X37J7zkrLjDPox6a6s907rW8YuBixV7mUkcnogv1GQEYbwO4YAPOefa/9uu2KbMXYWDinT 0gbg1WFHUPfnTaDg== Date: Tue, 12 Aug 2025 07:33:07 +0200 Subject: [PATCH 4/6] kbuild: uapi: upgrade warning on asm/types.h inclusion to error 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: <20250812-kbuild-hdrtest-fixes-v1-4-7ad2af66cd58@linutronix.de> References: <20250812-kbuild-hdrtest-fixes-v1-0-7ad2af66cd58@linutronix.de> In-Reply-To: <20250812-kbuild-hdrtest-fixes-v1-0-7ad2af66cd58@linutronix.de> To: Nathan Chancellor , Nicolas Schier Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1754976787; l=993; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=PyeDTO0WRvjQ2H0nGQ3V9Ec1EE1YAZNeO5y3b07V+00=; b=tuwgQzi6zOhu0waC6mZFZyafr9Ev74n3VCkqdcgXz8KCsWtbyRinL4//gnS/gjx6vnpEHGXpf mI87rb2DqyMDpusJ6V+D+igb+I4LUXfao2ibhghjfAB7woEFsfA+L2b X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= No usages of '#include in the UAPI headers exist anymore. Make sure it stays this way. Add a semicolon to the end of the previous printf call to keep the syntax valid. Signed-off-by: Thomas Wei=C3=9Fschuh Reviewed-by: Nicolas Schier --- usr/include/headers_check.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr/include/headers_check.pl b/usr/include/headers_check.pl index 2b70bfa5558e64518808a22f2f926291da6e47a9..36307a137cc1e109e3e1c253f66= f3e5935499fc8 100755 --- a/usr/include/headers_check.pl +++ b/usr/include/headers_check.pl @@ -98,9 +98,8 @@ sub check_asm_types if ($line =3D~ m/^\s*#\s*include\s+/) { $linux_asm_types =3D 1; printf STDERR "$filename:$lineno: " . - "include of is preferred over \n" - # Warn until headers are all fixed - #$ret =3D 1; + "include of is preferred over \n"; + $ret =3D 1; } } =20 --=20 2.50.1 From nobody Sat Oct 4 22:33:03 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 129752DCC01; Tue, 12 Aug 2025 05:33:14 +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=1754976796; cv=none; b=CCaABbQ2A8KQrzfYfdkVTwxgOZKHrd1TS7luScI6qAc4AmcyUJDbca1WQlgyil2VeKaIK1XYXiqpfsWiffRDrrAvsLYnt9lrGpyuZn5omRtljjt9jI3LzlQxAkRGpcIKRkht47zQ96db/gU/u2+u8rVeQjXlUMN65GP+LZ/AmDs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754976796; c=relaxed/simple; bh=jGDTmnsnZdUjQh5FtBO1M6vpfIP4BrjJnoo9MTY7UcA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZqoKx1Np1wU0dfUlZpGdidLOZuJ3XB/vOp8nQWkeLK+PQsR44p5nOkTLPVKTqb7rY8gjICxbscst3TxxS21DW+I6wOG6Vw3L0CzrUsxqTNO4ZWacfcLdY7dwQKENdu+jXGXUFbVMA1Y1mgBYvrRTYbHJr9vbE+CAdJE8gQ/2dFE= 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=lI8Pjm6p; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=p1mABPk5; 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="lI8Pjm6p"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="p1mABPk5" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1754976792; 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=GWes/uuQ/kR/IDZ3EOYRCyIfF7xZIM/CW794pfrdoK0=; b=lI8Pjm6p5/09LWjb2Fn1jRutFc7+LyII5I8t23FJRvlk0YIJWBAOj1yHiTAjlRY1RYAvWX VivQ2bDHRg/J0QFsBhbjhm7KYObe/V0siRhUwsGJ5m24Gm8zJGwRDZ6l4ZsIQTXNC7T9w0 ianBD/8Ur7RA1IuYGfrr/6jFKklqTyzgOiZlULrs9xyK55FIG+AeK9KoNzhL/pSRitrE2q WmX6p3oRkrxc0J87+sVnVjiBFJh548xH57w7OCoSGVFNd093N0hTEFk6knw11VU7386rlj dpcM6FwvKLcKucLTNyxt3x21zPdyjDL7FzS4NMKwv0H5XkD08D3vTp6LtzxYuQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1754976792; 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=GWes/uuQ/kR/IDZ3EOYRCyIfF7xZIM/CW794pfrdoK0=; b=p1mABPk5EoXi+Ob/ak8tHXLFdMGFx/3/8uEPYtPK+bpgEvCqr4apcgkN2r91zOHhVE/2wz 5CbPBoImRaf2GBCA== Date: Tue, 12 Aug 2025 07:33:08 +0200 Subject: [PATCH 5/6] kbuild: uapi: upgrade check_sizetypes() warning to error 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: <20250812-kbuild-hdrtest-fixes-v1-5-7ad2af66cd58@linutronix.de> References: <20250812-kbuild-hdrtest-fixes-v1-0-7ad2af66cd58@linutronix.de> In-Reply-To: <20250812-kbuild-hdrtest-fixes-v1-0-7ad2af66cd58@linutronix.de> To: Nathan Chancellor , Nicolas Schier Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1754976787; l=747; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=jGDTmnsnZdUjQh5FtBO1M6vpfIP4BrjJnoo9MTY7UcA=; b=iR6RFO/MELFWlqKwO7lT/mVZMIeuyWQThrX2gB3ydIoiiBGvsiZQzvJ98Fi5waJ1UQpVKzUwR nOlcUXsjQ5uA6KvUbfxDU4midaJ4nxlba1mSe/+YXUVfrmyza9Z93+d X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= No problematic type usages exist anymore. Make sure it stays this way. Signed-off-by: Thomas Wei=C3=9Fschuh Reviewed-by: Nicolas Schier --- usr/include/headers_check.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr/include/headers_check.pl b/usr/include/headers_check.pl index 36307a137cc1e109e3e1c253f66f3e5935499fc8..36349b21cef5d55241b68ca24da= be6a321b7ce27 100755 --- a/usr/include/headers_check.pl +++ b/usr/include/headers_check.pl @@ -159,7 +159,6 @@ sub check_sizetypes "found __[us]{8,16,32,64} type " . "without #include \n"; $linux_types =3D 2; - # Warn until headers are all fixed - #$ret =3D 1; + $ret =3D 1; } } --=20 2.50.1 From nobody Sat Oct 4 22:33:03 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 129E32DE709; Tue, 12 Aug 2025 05:33:14 +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=1754976796; cv=none; b=r1ja4boYOKAPqnymj4oXnUegBSxtcHjbOWtcUxOArQeWgnBJAJaTWkCoq+iXqNeQ/K+fiRZ1MBCotMUvVg9+6sCRDCIEeZCRa+GRlXCL8SfTL2oHFh0v+DjHaRem6tzDEN8iwVYEPpmINeILuPojjKoTUfbEPA9snIJlPz0XR3E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754976796; c=relaxed/simple; bh=zSThn3P1sQhXq1hONEmer/JmBxr3pbjn2fRx5MtiEeA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JvotPwIbu76/NBwj3T7vZUx5ogAFCl5H2fo7wAXQWrjr9CnWI3Xp1LGs281bNpai9Hd5lbsN4dQm66amftsiq5Xs+PKrizl88DsBPYlr4ltWrAbgV2ENiiLqXkeQEVbDxW5Si/OpQXnGrPD97u4+LYFr1KmmzIBn9S1oV4x7ufY= 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=OMg2ht9C; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=qMyWg5+s; 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="OMg2ht9C"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="qMyWg5+s" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1754976793; 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=ZcH6XyM5OcYaSc0KW4AUOOA2KBFUgeJjyxIXjGh+HT0=; b=OMg2ht9CpHNWEsZOyVemHaok3NhVldZfOPseFYp5wo9bvNy9FNNfMrHTTZi0a/n8lRtNux 4enOqOdhkVr8cqxxy+8zJn0AmPXPLnLezRnizI5ZgMebbwy1k3sphn26tndquEn3ZpFDmM yxFxfUXt1KWv2n0YVwqTAUMMcLq5potLU57yqcDVqmntmSFXuvU0CThRZDQ9j2CcI+5EeS na1Ab/Q3mWfwuyVPge7TB5ejuHIf3WY87ZzRPYspAvdbmG02fvM66bTTvBwUwg7sFao2TT ox/lvCDiKIIstsqF/ksNnSZEC2ReaRHuYco4yMsK5UvwFxYdN0wUcIJBVuas6w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1754976793; 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=ZcH6XyM5OcYaSc0KW4AUOOA2KBFUgeJjyxIXjGh+HT0=; b=qMyWg5+scVXCQBnV946X9xvtjlvSRXuhbdACfpEardbJTe8YBzUZLucIf1cTAI7fccbbGt 3ZCjnjP/tuLl1+Dg== Date: Tue, 12 Aug 2025 07:33:09 +0200 Subject: [PATCH 6/6] kbuild: uapi: upgrade check_declarations() warning to error 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: <20250812-kbuild-hdrtest-fixes-v1-6-7ad2af66cd58@linutronix.de> References: <20250812-kbuild-hdrtest-fixes-v1-0-7ad2af66cd58@linutronix.de> In-Reply-To: <20250812-kbuild-hdrtest-fixes-v1-0-7ad2af66cd58@linutronix.de> To: Nathan Chancellor , Nicolas Schier Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1754976787; l=693; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=zSThn3P1sQhXq1hONEmer/JmBxr3pbjn2fRx5MtiEeA=; b=JM4Vnq14WsuzK413TdYns69UWnS7Hg9UMSY5BKbqabrhJVSgKkjxv1nxg3yqXQBGwCtPRpRsg KI/w7L4XQgRAoZP98qjogXWbdmtrFvwOqTLjb8Y4mbLjvTFpl6H5CwN X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= No problematic declarations exist anymore. Make sure it stays this way. Signed-off-by: Thomas Wei=C3=9Fschuh Reviewed-by: Nicolas Schier --- usr/include/headers_check.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/usr/include/headers_check.pl b/usr/include/headers_check.pl index 36349b21cef5d55241b68ca24dabe6a321b7ce27..21c2fb9520e6af2d6ebf2decce6= 9f6eea64efd88 100755 --- a/usr/include/headers_check.pl +++ b/usr/include/headers_check.pl @@ -74,6 +74,7 @@ sub check_declarations printf STDERR "$filename:$lineno: " . "userspace cannot reference function or " . "variable defined in the kernel\n"; + $ret =3D 1; } } =20 --=20 2.50.1