Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3132592pxb; Sat, 26 Mar 2022 11:41:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyybVhCHELqUdnz0w4Z0EmeQUfOS2ea3XhkywRrp8uiA9oMkvFQUYNdD8RSXblwrxZGHkC6 X-Received: by 2002:a17:907:7d91:b0:6d7:a1e:a47a with SMTP id oz17-20020a1709077d9100b006d70a1ea47amr19165249ejc.116.1648320116854; Sat, 26 Mar 2022 11:41:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648320116; cv=none; d=google.com; s=arc-20160816; b=Gjyh1Frgoujt9QZUxp+3v2gAl84o2tw22oXH1j84iMU8z2GgGzfGiqthOJZjXX/3v9 WEjOwo95qN32ZGXwc530kkqYSNU48jh11bRWAM/neuC6I2qB69qFi/nBSfSIxlnThdcp SG1hmPHRSAZQSKhIjLmfqT/JVzF40nyExFjvpSOzu0hzITIJ3hBFw9uZ1vuJFiCkjIP7 DPsiNswXVuFcR9AG2mP/LA2D5SHJVR3Mle4Gyu0xGde5OUKoznyt3yJT6O9epQXoXSsG isMXd/savWAkIcT4yvktuFl+sqn/80pyt8UOOjaS5OQp/yTAxtVaC5x0LSThvPRUorX1 Za7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NO/hYaAtNq5BJRe1jLmabdISWF91VcxSyq/Mw4ewVe4=; b=usJD7ASbEndn46MFWdxeWDKbmVzq0M8pbjZFx9kOGYagcC1NGrZHThjtJlyDuH9DrM Lvipp5RNOxHw5pYt0S23/CGPWxvXdoO6D/nL9tWnW1dDJNmb2r05cNbL5u4iMQ0SZRAi mIbMklqhZNNcoXDNBTm02N9lo9IGZigKy+6YF4hDTYD1eGUwKTfshbN6m4Uz7qkfi4Or KVqbwLXt77V6feTxkEDWDF/6XXZUSMDbQyLCJe2tqGUd7HOhASfRn7RBAXqKgrU22oLR zROrV1gCZlILpB0cU3BeA73L3QYYb3o24f2WcmRfcjst8qN94wysGFIqCACPt+eYW01p ui8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l6UPQkpP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gg17-20020a170906e29100b006dff5e2d277si7156799ejb.211.2022.03.26.11.41.31; Sat, 26 Mar 2022 11:41:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l6UPQkpP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232525AbiCZK3a (ORCPT + 99 others); Sat, 26 Mar 2022 06:29:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232540AbiCZK3G (ORCPT ); Sat, 26 Mar 2022 06:29:06 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B27F55BD; Sat, 26 Mar 2022 03:27:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DEE7EB803F1; Sat, 26 Mar 2022 10:27:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79409C2BBE4; Sat, 26 Mar 2022 10:27:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648290447; bh=o9c+IInErQpOAwntbwHfaT1J5iPpxLk5tRtpR93Le08=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l6UPQkpP18rB1ORZ3Pbg4YA9yl/Tp/GNYjzgOsyPhpBjSLe8EBIrpKC3QLxtQqDqO 7CKGLserdlk2jN3oD5b82gyqYjuR1UTrZ1xKoYyfv6cvdqRH4h+9LmXD1cavbg+/5J 5+//98a4m3gzjmrtgJO1w5yEMlPkRzy8PydbO1Pvv+NrTY2WdLfcHfHQ3wcES4EXu+ Zx+JPedWul3mTD+34SbzNYpHY+6I39DttErwQPQevAWGPNZQNLO2e93VELF1T+2bpy 7eaXNcWRmcUJh8f2GaqggbcFKGIxEqI0pxm9uW6tK+1O+Px0elJgZPzccMKyrWFDEX TXipT+Fgbk/Ow== Received: from mchehab by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1nY3dl-00Co0k-87; Sat, 26 Mar 2022 11:27:25 +0100 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Jonathan Corbet Cc: Mauro Carvalho Chehab , "Hans de Goede" , "Stephen Rothwell" , Greg Kroah-Hartman , Randy Dunlap , linux-kernel@vger.kernel.org Subject: [PATCH v3 5/6] scripts/get_abi: change the file/line number meta info Date: Sat, 26 Mar 2022 11:27:23 +0100 Message-Id: <125ffd31fbc77ad9eee4d6906e1830b8162fa6ca.1648290305.git.mchehab@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 In order to make it more standard and ReST compatible, change the meta-tag used with --enable-lineno from: #define LINENO to .. LINENO In practice, no functional changes. Signed-off-by: Mauro Carvalho Chehab --- To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH v3 0/6] at: https://lore.kernel.org/all/cover.1648290305.git.mchehab@kernel.org/ Documentation/sphinx/kernel_abi.py | 2 +- scripts/get_abi.pl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/sphinx/kernel_abi.py b/Documentation/sphinx/kernel_abi.py index efab9b14a9f5..b5feb5b1d905 100644 --- a/Documentation/sphinx/kernel_abi.py +++ b/Documentation/sphinx/kernel_abi.py @@ -138,7 +138,7 @@ class KernelCmd(Directive): code_block += "\n " + l lines = code_block + "\n\n" - line_regex = re.compile("^#define LINENO (\S+)\#([0-9]+)$") + line_regex = re.compile("^\.\. LINENO (\S+)\#([0-9]+)$") ln = 0 n = 0 f = fname diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl index 7437e19ba3ac..1389db76cff3 100755 --- a/scripts/get_abi.pl +++ b/scripts/get_abi.pl @@ -327,7 +327,7 @@ sub output_rest { my @filepath = split / /, $data{$what}->{filepath}; if ($enable_lineno) { - printf "#define LINENO %s%s#%s\n\n", + printf ".. LINENO %s%s#%s\n\n", $prefix, $file[0], $data{$what}->{line_no}; } @@ -1023,7 +1023,7 @@ logic (B<--no-rst-source>). =item B<--enable-lineno> -Enable output of #define LINENO lines. +Enable output of .. LINENO lines. =item B<--debug> I -- 2.35.1