Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp605830pxf; Wed, 24 Mar 2021 11:21:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3hvHPeO2QRNBiufoZgM1vGKJuZ9J6tw71aOBZYJQALVFI0yERx9wFTOzjH/9kSTszcuMc X-Received: by 2002:a17:906:1519:: with SMTP id b25mr5161409ejd.254.1616610104209; Wed, 24 Mar 2021 11:21:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616610104; cv=none; d=google.com; s=arc-20160816; b=FhhVeb8tRvpryXcCqmLkf+D3XQu/JoiRO8t3MCJYbpNkeTfrVSDhaSDA667o6zsfab +gFJK5tS+i2O0UNXeGQ0xm/IBpgg7eNVgZAo93Sazp0wV5c+GCK1BJO6lgYDZ1Qg+9Nv bheTTZlw4Gn/UZ8zOel9uuehyJDmZaLZKM/mfHLnPYXS/au4E+MsSgXpTcwh+xvhs16W cBzN+YJsCumIJ93UnKOScA49Py69FIzMo4GMe4mzxuFpHeEcwUnc5x+T4k+bJsNHd8kf lF+P8KtM/OzJqxhHcNwZfBvG+SwD/74x1zFcITYz82zcWhDe4VDVHiRmysKb9rHsN3P0 9Zew== 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:subject:cc:to:from:date :dkim-signature; bh=b5+7B31+VqQn831LbUsz0LT0+emwgJxQRVFD2+fFIQA=; b=HsKNC5OrxIqt575OwW3OT/NmrT7IBm43BcwGAloD2PiPisdjR+mZSpYrzarmk4b6f0 Vo7wZtEkENMbras87ENAy/rb9E8oh26wD5pZTr5NtELuUGzjF5CXMhgt39xt1hl+1B3Z ups77RwviJWXHZtAlF5C22h1ugPK2fTDKNwkxP2iy4NBohlRueCrNYAS7/VJZ3dsc/7l RKLNDEQTdUDZV/XvHPdll2ZSslbW/zLkHSQG8hJ02Uhicz++8d6XvazihtLaW36aU3Z/ 10vpnDU7AvUfyT+57HmCPdVAojgM+28HgW8b6dPS+KmQTIPK6kgqW4dwPny8AyQ8NKEQ V8sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=m4ZteAYg; 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 c11si2279481ede.102.2021.03.24.11.21.21; Wed, 24 Mar 2021 11:21:44 -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=m4ZteAYg; 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 S237354AbhCXSRr (ORCPT + 99 others); Wed, 24 Mar 2021 14:17:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:42086 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237126AbhCXSR2 (ORCPT ); Wed, 24 Mar 2021 14:17:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BF59D61A1B; Wed, 24 Mar 2021 18:17:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616609847; bh=4pdlq11RIrLWbal0eLSrsoU2qpVHCmm//Uxr7uO5jvY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=m4ZteAYgWR/1D3ZZHoKlmFU8fZ9uGhlBkHWDVijMGwlEwP4cdW4LHOMl5OTYImHsM UxN0lOUM2It6Ru9uOC2U10xE1fdtUcMANlzlQa7ip9xRqltkKQxeAUktdHrJ4OKXeQ 4xfKOAYm44hLmcFofEsoUVv8sKEdtY3kgcEwt6vbhOISILYqt79sUlsz5MvZ44Lzbf 9TwteNfuj6a42CcB7cSUo3oFmf8bmiahbDOId5wsdIiVkDwBk14eFIKd9Q/7f4QdWb NOLSw1zasUbceiBB6GNB5iKkx+5PASQ81MwcaPH8xnnhXEu3aS/bgL22S6BDtXCF1f Y+kBgdtx6uAJA== Date: Wed, 24 Mar 2021 19:17:22 +0100 From: Mauro Carvalho Chehab To: Jonathan Corbet Cc: Linux Doc Mailing List , Cezary Rojewski , Finn Behrens , Greg Kroah-Hartman , Suzuki K Poulose , linux-kernel@vger.kernel.org, Stephen Rothwell Subject: Re: [PATCH] script: get_abi.pl: escape "<" and ">" characters Message-ID: <20210324191722.08d352e4@coco.lan> In-Reply-To: <87sg4kcw6y.fsf@meer.lwn.net> References: <20210317142238.228fb1e8@coco.lan> <87sg4kcw6y.fsf@meer.lwn.net> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, 24 Mar 2021 11:12:37 -0600 Jonathan Corbet escreveu: > Mauro Carvalho Chehab writes: > > > After merging the akpm-current tree, today's linux-next build (htmldocs) > > produced this warning: > > > > Documentation/ABI/testing/sysfs-kernel-mm-cma:2: WARNING: Inline interpreted text or phrase reference start-string without end-string. > > > > Introduced by commit 439d477342a3 ("mm: cma: support sysfs") > > > > As pointed by Jonathan, the problem is this text in > > sysfs-kernel-mm-cma: > > > > Each CMA heap subdirectory (that is, each > > /sys/kernel/mm/cma/ directory) contains the > > following items: > > > > Is not parsed well, becase the major/minor signs need to be > > escaped, when converted into cross-references. > > Sorry, I kind of dropped the ball on this, and everything else really; a > bit of a challenging time here. > > This makes the warning go away, but I have to wonder if it's the right > fix There's indeed an issue on another part of the script. I'm testing a second version using a better and more generic regex set. > - wouldn't it be better to avoid trying to create a cross-reference > entirely in cases where it clearly won't work? Or am I missing > something here? The cross-reference logic on this script is somewhat smart: it will only create cross-references if the symbol exists. If not, it keeps the symbol as-is. The problem was actually on another part of the logic: there is a symbol "/sys/kernel/mm/cma". The script is currently thinking that the "<" character at: /sys/kernel/mm/cma/ is a bondary. So, it ended converting the first part ("/sys/kernel/mm/cma/") into a cross reference. This patch fixed it by dropping the reference for the non-existent symbol "/sys/kernel/mm/cma/" (the reference should be, instead, to /sys/kernel/mm/cma//foo), but there's still a hidden bug, which causes that a reference for /sys/kernel/mm/cma//alloc_pages_success to be broken. I have already a new patch. I'm checking right now if everything is ok after the regex change. I should be sending a version 2 probably in a few. Thanks, Mauro