From nobody Sun Feb 8 14:31:03 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 164641DE885; Mon, 6 Oct 2025 08:49:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759740574; cv=none; b=CnU+gALd2BtPvj7NMnDCme59ANX3YGpT+TCQFg7q7BjH441VcY5NaDsDzWP1QfA5pe0FZwnccha7cR/ZGHy9d2oHrw0AgjJxi9TbZpcvx6Om6Fmlmlx4wrQvIaJs6J8YcRbakZP9Z4f6JNPEnYbXHb1ZsQYVecrI75ZJhSQZgu4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759740574; c=relaxed/simple; bh=aXmz6nZG9iimp8CMRFiQ572c26X2QginbFUwsrzfckI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GnSJmwf9enroV1+vEGpnDGPyAjhGSNpNVsXYyN1a6dfSuLLV0Xyz32EDDZTa1p37RqMKljidIL+DS8Gttb3Yp3uT0tyjHEOwpBXoTZlslszTZWtTzY28MMwl7drU9tI8brMKLsSGKpyndaACh0gJbEL6Aq+vqCooNnc4hvKqD0M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3EFBFC4CEF5; Mon, 6 Oct 2025 08:49:32 +0000 (UTC) From: Geert Uytterhoeven To: Nathan Chancellor , Nicolas Schier , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Cc: linux-kbuild@vger.kernel.org, linux-m68k@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] kbuild: uapi: Strip comments before size type check Date: Mon, 6 Oct 2025 10:49:28 +0200 Message-ID: <6e68ab921a728caea4f3f37bfae9b1896edfa97a.1759740354.git.geert@linux-m68k.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" On m68k, check_sizetypes in headers_check reports: ./usr/include/asm/bootinfo-amiga.h:17: found __[us]{8,16,32,64} type wi= thout #include This header file does not use any of the Linux-specific integer types, but merely refers to them from comments, so this is a false positive. As of commit c3a9d74ee413bdb3 ("kbuild: uapi: upgrade check_sizetypes() warning to error"), this check was promoted to an error, breaking m68k all{mod,yes}config builds. Fix this by stripping simple comments before looking for Linux-specific integer types. Signed-off-by: Geert Uytterhoeven Reviewed-by: Thomas Wei=C3=9Fschuh --- usr/include/headers_check.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usr/include/headers_check.pl b/usr/include/headers_check.pl index 21c2fb9520e6af2d..75dfdce39e7f4610 100755 --- a/usr/include/headers_check.pl +++ b/usr/include/headers_check.pl @@ -155,6 +155,9 @@ sub check_sizetypes if (my $included =3D ($line =3D~ /^\s*#\s*include\s+[<"](\S+)[>"]/)[0]) { check_include_typesh($included); } + # strip comments (single-line and C99 only) + $line =3D~ s@\/\*.*?\*\/@@; + $line =3D~ s@\/\/.*$@@; if ($line =3D~ m/__[us](8|16|32|64)\b/) { printf STDERR "$filename:$lineno: " . "found __[us]{8,16,32,64} type " . --=20 2.43.0