Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp264702pxf; Thu, 25 Mar 2021 03:40:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCxSdx9U1n/3S03ledO6l/FsXg01X4bJCOld1jRYY3PPZYTqyvBPhuxjzVd7mUHYYBPKrv X-Received: by 2002:aa7:db51:: with SMTP id n17mr8521372edt.259.1616668838926; Thu, 25 Mar 2021 03:40:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616668838; cv=none; d=google.com; s=arc-20160816; b=jwbHR0QFC8XqIQ4BWM2tVtG8MRGfFYyOAx1i7C/kWepj+m95vR0M3Y0jVjAt6zMjMW eFQQ8lDlgbIWiaOJKP/ZY5+DF78ovHnG02/LBRFo/iM707EkPPavyxsiYBmc63RtgAYJ ywHZzn6dGUhY8aPmDFU1kl/TgpjmZPEEMq79/6P0RqdcaxmUrLE3LHqBKYjYwkaMFmfM 8A5Ou37iXLEz8YZL0Jvt6a6/sP8qEUgUS2ZCR6Cp44luECRfY1YsJxaq6u8m2Tx1wO7a HPssBr+ROobCPDqP4aclyuyqse3PXmg/pkLpRBDGU2mDE5gZLxTThLagizjNRd4XADHp 1OwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=0DfxaI0NexUznMPAm2N78ksvauDEyUqPi1Jng2kRA4Q=; b=phZLxIelzoPte8J9JVTXq9kwPwFqOj0mPKS3Yae7cA42YpQpB1aa31MNQRCv+zrPwg UHgzw0iP0dMZTdAMyGGZ85f7CSu0GorchXXCxWZBxA36p86Z7sOhCocDFrnpwL5Mwh4F YXarXB4ZXigG+TUmrhlC3mqmrEjl+JpXI5ayY+LZSqeWj71nrAecObPmXXcWAoIsfhdV RgQdAT0kOvrvexxdRfUMpvu3xY010eQhn37/wdYq9PVlXb359+Imej1RmUU+n/g5vTnX KCcpjAT2gZUlqBJfmbPn+q6ruRmfnTDXyP7pZPF3Yw7FGew9rgXac8XP1FYFPpnMiFSI MFPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="FYt1/yOj"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m23si3803155ejx.737.2021.03.25.03.40.15; Thu, 25 Mar 2021 03:40:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="FYt1/yOj"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230322AbhCYKjG (ORCPT + 99 others); Thu, 25 Mar 2021 06:39:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:53598 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230174AbhCYKid (ORCPT ); Thu, 25 Mar 2021 06:38:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8FC9561A34; Thu, 25 Mar 2021 10:38:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616668712; bh=X0vm2TLnRzBGMIydCGUugGZKPvObtv5gLOJmeJk0Qlw=; h=From:To:Cc:Subject:Date:From; b=FYt1/yOjJOvCsxXXqmK7/tmPgEdUp0R/Ch8/HITm8wFIUaUJsTUZYGmIpuaRYgM16 NwCQQungNwfHor3q1N/5Dg0nZ49V0FDX+nuKyEEB7cNfrA9DvdSvE5wuEIgp6vKjzO R56BMiOox/hfEd/EA3K4U2uZYDavUDbglizWIC0UQ97hPk/0ji+yvRVDzpKRbENvKR y+Z+MHAGxK0W7q6KDUWkayZ5yLbugi6+Uskf7SO6mEMXkxjD93vzSUYy6CVgdydHKO F0DOJvuB6MW1SlKnXT5TJjvn7ILH+mns+Gd9dYtJOKH3bbOYNH+mzh4AjAdfDq8hyP jIKVwfuyhiljw== Received: by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1lPNNl-001AvQ-4U; Thu, 25 Mar 2021 11:38:29 +0100 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Jonathan Corbet , Andrew Morton Cc: Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , John Hubbard , Minchan Kim , Stephen Rothwell Subject: [PATCH v2 0/7] Fix some issues at get_abi.pl script Date: Thu, 25 Mar 2021 11:38:21 +0100 Message-Id: X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series replace this patch: https://lore.kernel.org/linux-doc/20210324191722.08d352e4@coco.lan/T/#t It turns that there were multiple bugs at the get_abi.pl code that create cross-references. Patches 1 to 6 fix those issues, and should apply cleanly on the top of the docs tree (although I tested against next-20210323). Patch 7 is optional, and independent from the other patches. It is meant to be applied against akpm's tree. It makes the description (IMHO) clearer, while producing cross references for the two mentioned symbols. The fix patches are: patch 1: fix some regexes that match the symbols that need to be escaped when parsing "What:". The same regex is also used when generating cross-references; patch 2: makes the check for Documentation/ABI references more robust, as right now, it stops at the first occurrence; patch 3: fix the parser for /sys/foo -> xref conversion. Basically, the logic that seeks for start and end boundaries were broken. The new logic is a way more robust. patch 4: generate cross-references for /config/foo and other less common ABI occurrences; patch 5 and 6: don't generate cross-references inside literal blocks. Right now, there are a couple of places that would otherwise generate references, producing a bad output. Mauro Carvalho Chehab (7): scripts: get_abi.pl: better handle escape chars on what: get_abi.pl: seek for all occurrences for Documentation/ABI get_abi.pl: fix xref boundaries scripts: get_abi.pl: extend xref match to other types scripts: get_abi.pl: parse description line per line scripts: get_abi: ignore code blocks for cross-references ABI: sysfs-kernel-mm-cma: fix two cross-references Documentation/ABI/testing/sysfs-kernel-mm-cma | 8 +- scripts/get_abi.pl | 76 +++++++++++++------ 2 files changed, 57 insertions(+), 27 deletions(-) -- 2.30.2