From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) (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 47DE01F8755; Mon, 6 Oct 2025 12:48:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.18.0.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759754900; cv=none; b=e2Y49cJqMtY1qF7ICCrBNU+IT3aFQK6W1bX6/i4wi3Ym1YyIfDOFTp5xJvpdJcXN5am/N8V0qfvvez/E/XlHqgpil7AQF36GjeN5BfUNcSyPbtfqKC+dzhnrXwcuq1wA50m5hZK/WmpmKyscMdHJhgC/Or/9aXWg23PesMiI5SA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759754900; c=relaxed/simple; bh=yIv+Y6LFJ/1OHcFWks74RoSN8VfD9jS30sS4ckZ/d8Y=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=AgeO8S7CnpRoboHMAIGlsfJJ78pJFG2IRPRamAWpX0IYKR/zm0W/IbDFSsWUy9j0RdV+2lc+acawd2bRkGHa9PWU/o7m1c0y3COd1+aeSl4EIFkg8v2LQCjgk2PZlIleXS7xAqtLPqbFe53moWqbqApiYHeJClQGbLJHRXSi6UE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=212.18.0.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4cgJln5gHVz1sBqm; Mon, 6 Oct 2025 14:40:53 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 4cgJln4ljQz1qqlg; Mon, 6 Oct 2025 14:40:53 +0200 (CEST) X-Virus-Scanned: amavis at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavis, port 10024) with ESMTP id Lo6ufq-sBmXT; Mon, 6 Oct 2025 14:40:44 +0200 (CEST) X-Auth-Info: fjqPRUDZ+D6alIMK+BgANJlB5OxNLA/TAqqPneisA9BfcE8wksM6zHXxzf/cqM2e Received: from hawking (unknown [81.95.8.245]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 6 Oct 2025 14:40:44 +0200 (CEST) From: Andreas Schwab To: Geert Uytterhoeven Cc: Nathan Chancellor , Nicolas Schier , Thomas =?utf-8?Q?Wei=C3=9Fschuh?= , linux-kbuild@vger.kernel.org, linux-m68k@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] kbuild: uapi: Strip comments before size type check In-Reply-To: <949f096337e28d50510e970ae3ba3ec9c1342ec0.1759753998.git.geert@linux-m68k.org> (Geert Uytterhoeven's message of "Mon, 6 Oct 2025 14:33:42 +0200") References: <949f096337e28d50510e970ae3ba3ec9c1342ec0.1759753998.git.geert@linux-m68k.org> Date: Mon, 06 Oct 2025 14:40:43 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Okt 06 2025, Geert Uytterhoeven wrote: > diff --git a/usr/include/headers_check.pl b/usr/include/headers_check.pl > index 21c2fb9520e6af2d..16c238aadfebb061 100755 > --- a/usr/include/headers_check.pl > +++ b/usr/include/headers_check.pl > @@ -155,6 +155,8 @@ sub check_sizetypes > if (my $included = ($line =~ /^\s*#\s*include\s+[<"](\S+)[>"]/)[0]) { > check_include_typesh($included); > } > + # strip comments (single-line only) > + $line =~ s@\/\*.*?\*\/@@; I don't think you need to quote the forward slashes in the regexp. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."