Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3185911pxb; Sat, 26 Mar 2022 12:59:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9DcbDhseuhYF2+8wIcWn1erGxOgFycvwP8Dd4KNv362rTXsnijVWRVlwtjpBnn51lbDKM X-Received: by 2002:a63:2ad0:0:b0:398:31d7:9955 with SMTP id q199-20020a632ad0000000b0039831d79955mr1042436pgq.198.1648324775443; Sat, 26 Mar 2022 12:59:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648324775; cv=none; d=google.com; s=arc-20160816; b=HT6RSkhJcZKgFRX4rFqH2YEiZ5M21pFZBCARGAlAVDMReZhTB78cJMOaiJx96hyBiW IsHHTzHza2H/LieR3uwvR7JQoQVNajThnY4sI/G4KwLKd/3NpzI6zjK61n+Z2Ow7y1xU XBTEQyq6hRknRH68kvEe+I2iSW0+KJ0L9OnAgqq5gGy+C1Z/sfkrn191t5xNN9Lap8u8 qrvqKUtuBBJsQ5DO6Th7pem0a5ja8u0rcAsanfT2H0qTkVw3fWZ8ckAcNiwZnnE4HtH4 NkDAECeICGnRSV3BBBS9jjYUFqgfQW0cPFGBqI7D5gmQzTSqaN85o1BlIt5kyhzMu0qa RtIQ== 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=qzifves1t78CRoRj9bd439jUSDVZj6NCwQtAKlBetxs=; b=V/p21gTKJiKsOYrxBSr8EIY6YPdgr0w2CL7KfrsfDEHrvwbrgjXMg1kcT6jZrOhfcJ LNaSZX6ysCRICas6gTzQjcTTPccUfaHmTn07QrJ4sDW84E0XfKnmecy2IvRA/MS3LIT0 zIU4+P6lqO7hMLjL+TWtWGD3Kpoap50MrOGL7I9nQcG2CB9cVTp/nMEizIOX7NJfIuei 3ocf8yTrcFFeNNgr/HznPs0rx9JZep5jciZl+HqyAVXif5SphiNAAB6oLkJqBnW5Klyj onEiEQyCPpDdD+UUUnjF3AkP/vvNQwAbnvvEvBj2Z8IXCXgZBjpCGLUDYANS3GjdOaeY NQ/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oYE2WOtn; 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 t10-20020a6549ca000000b003816043f0f3si6714296pgs.744.2022.03.26.12.59.14; Sat, 26 Mar 2022 12:59:35 -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=oYE2WOtn; 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 S232553AbiCZK3Q (ORCPT + 99 others); Sat, 26 Mar 2022 06:29:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232523AbiCZK3E (ORCPT ); Sat, 26 Mar 2022 06:29:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5CED1C931; Sat, 26 Mar 2022 03:27:28 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 3464160B70; Sat, 26 Mar 2022 10:27:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F31DC36AE3; 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=D/w5PLTmwlSeMty7ZislHjJrVsonNmYqlWvibM6bjos=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oYE2WOtnWTlVl7RwQCOnNMIUwmKumKCvdrp23AY5azoXD44AJl73c+MNsPxviPKnP NXJTUizOR7BdDDgdFzVfUy29edVPStAypwloISfzgXHwbo9Z2kHurdbG7YuAtHhCqp mR5xijjlU+ohvBQ33K7z77ole7qNg9a++eL2Fl9b/h/KOXvqIRPRZLnHRfePuKND+w qczp0H7hmeWqOQvgCXfZ4acwXAB70MgOxVJhuxOuI9ii3bj4wW3EFGNkxaHyyQ8M7V KsLvYhdx+xA2VpAJqr9h4+59SlK0ESXPROcfXLiHmT3sQoWgLK87anBw5KJ0r59gfF MCIUFRXHmJ50A== Received: from mchehab by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1nY3dl-00Co0o-9b; 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" , linux-kernel@vger.kernel.org Subject: [PATCH v3 6/6] scripts/kernel-doc: change the line number meta info Date: Sat, 26 Mar 2022 11:27:24 +0100 Message-Id: <40725032b5a4a33db740bf1de397523af958ff8a.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/kerneldoc.py | 2 +- scripts/kernel-doc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/sphinx/kerneldoc.py b/Documentation/sphinx/kerneldoc.py index 8189c33b9dda..9395892c7ba3 100644 --- a/Documentation/sphinx/kerneldoc.py +++ b/Documentation/sphinx/kerneldoc.py @@ -130,7 +130,7 @@ class KernelDocDirective(Directive): result = ViewList() lineoffset = 0; - line_regex = re.compile("^#define LINENO ([0-9]+)$") + line_regex = re.compile("^\.\. LINENO ([0-9]+)$") for line in lines: match = line_regex.search(line) if match: diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 9c084a2ba3b0..7516949bb049 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -424,7 +424,7 @@ sub get_kernel_version() { sub print_lineno { my $lineno = shift; if ($enable_lineno && defined($lineno)) { - print "#define LINENO " . $lineno . "\n"; + print ".. LINENO " . $lineno . "\n"; } } ## @@ -2478,7 +2478,7 @@ May be specified multiple times. =item -enable-lineno -Enable output of #define LINENO lines. +Enable output of .. LINENO lines. =back -- 2.35.1