Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2226474pxb; Fri, 25 Mar 2022 13:25:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSgyZ22yk+AdHBiM3VPqXC1VoFc7I55alLxaAti/U1bAsgFl3DvE3p2X8n3KcaSQYiQzzi X-Received: by 2002:a63:1457:0:b0:382:3e2d:83fa with SMTP id 23-20020a631457000000b003823e2d83famr1003714pgu.201.1648239924841; Fri, 25 Mar 2022 13:25:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648239924; cv=none; d=google.com; s=arc-20160816; b=ghjbtuSxEISA560NSNRAsjPXrp9VLQ7kxHCMYj+6e1Tl3CnmCQACrIqrMsdN0byGsB SGliQCkccmoyJYftuMlLHwVgGZ35tctCvmKwDM5SvKPKImC1kgbmTG+d99q9B+n5cmls 6YaTq26PfpFelGjgRn0A/WfFqtZ50sWog/2qUo9EBQWffBqxCImpYmFqQJpLHRhsM1n9 cohq6bpd4vQ7wqufvwCN0v0TlC+/dQFv60rLrIo0kxqbafRm8NUkVbvj0AXZNf/zeyrP VdsBOPQdwy0ZaN1Bsm7OtgaZWzOGvfyrrCdl996NfsMayDZJ9zUgBk5wrkna7nN27rXE cmzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature:dkim-filter; bh=rLID/xNAEJ7ec3akw3YJ2DoeesZts3MivbTechASTOI=; b=03wK2q7bKrj2SKkLbDXKnVbB75OIc+WDwqcIMAVdS/pjLvQdRgFAs8CTYdF7KkNYTG p4dcJp7kL/AwPyXztQAq9Jko1m3nwxi20ZkMCHzxqL11xdA7IJGF7wLUBCcjjXTUXpgm uL2zscx8NKNn5yG/JzfxkAUf2j6XOpNCmyXYcgFX8S1rU+X7v0QEc02qvEyHiA5qhm3U s29cqnYMmkkSuwxpUYWB1EVZ7GuirsCyjzncnG2/vKjZcF4ZmyaKFgcKnslVo+EadamG DfU27JUEnvTFXKzolyPc5fQy8kyap2FCdgyBj+oYIygzc7t8CIaZ1XaJbvaJswZbMpIO zsZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=BykFmEVv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n6-20020a170902f60600b00153b2d16436si3407638plg.62.2022.03.25.13.25.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 13:25:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=BykFmEVv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 125C727DEB8; Fri, 25 Mar 2022 12:40:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231341AbiCYTlJ (ORCPT + 99 others); Fri, 25 Mar 2022 15:41:09 -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 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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