From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D19CC433EF for ; Fri, 25 Mar 2022 19:39:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231351AbiCYTlL (ORCPT ); Fri, 25 Mar 2022 15:41:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232339AbiCYTit (ORCPT ); Fri, 25 Mar 2022 15:38:49 -0400 Received: from ms.lwn.net (ms.lwn.net [45.79.88.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39D8F201685; Fri, 25 Mar 2022 12:19:30 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:281:8300:35::5f6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 87BCD2C3; Fri, 25 Mar 2022 19:19:29 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 87BCD2C3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1648235969; bh=rLID/xNAEJ7ec3akw3YJ2DoeesZts3MivbTechASTOI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=BykFmEVv2MW90pAu9Yhi7BCRMlYGxp8zxUabPv0KmxuJUSLErsWzhSGinMgR9rSgp CtqBtvbCI6Wrs4QKyZwrXNCZ2t6Y/2VKMsXCeLS1KmNhKdHEEWQClGmh+UXNb2Tl19 DMUTygQWJgAjS2TUBg+Cv0GeE4E0b3tK8PdbANsE+hJ0YYygOOuaNyUSgFEur2X3UT jpd52D6MIJvpQJ2aTbwHE4YeaApLNzEBsw8zvShw9GI5aH3lHPkCfiaVbu3Oag9+qi zEPV453ybpe9Jue6Qt+kToWS2FkXeuv/H93pILKOnX7xl4V7zs+UmtTO6PygzoVNJG jTGn2sQ/NYejg== From: Jonathan Corbet To: Mauro Carvalho Chehab , Linux Doc Mailing List Cc: Mauro Carvalho Chehab , Hans de Goede , Stephen Rothwell , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/4] scripts/get_feat.pl: allow output the parsed file names In-Reply-To: References: Date: Fri, 25 Mar 2022 13:19:28 -0600 Message-ID: <874k3lg7r3.fsf@meer.lwn.net> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mauro Carvalho Chehab writes: > Such output could be helpful while debugging it, but its main > goal is to tell kernel_feat.py about what files were used > by the script. Thie way, kernel_feat.py can add those as > documentation dependencies. > > Signed-off-by: Mauro Carvalho Chehab So I think these are worth getting into 5.18, but I do have one question: > @@ -95,6 +97,10 @@ sub parse_feat { > return if ($file =~ m,($prefix)/arch-support.txt,); > return if (!($file =~ m,arch-support.txt$,)); > > + if ($enable_fname) { > + printf "#define FILE %s\n", abs_path($file); > + } > + Why do you output the file names in this format? This isn't input to the C preprocessor, so the #define just seems strange. What am I missing here? Thanks, jon