From: TAKANO Mitsuhiro <takano32@gmail.com>
To: Jonathan Corbet <corbet@lwn.net>, linux-doc@vger.kernel.org
Cc: "Shuah Khan" <skhan@linuxfoundation.org>,
"Randy Dunlap" <rdunlap@infradead.org>,
"Mauro Carvalho Chehab" <mchehab+huawei@kernel.org>,
"Jiri Kosina" <jikos@kernel.org>,
"Benjamin Tissoires" <bentiss@kernel.org>,
linux-input@vger.kernel.org, "Hans de Goede" <hansg@kernel.org>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Vadim Pasternak" <vadimp@nvidia.com>,
platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org,
"TAKANO Mitsuhiro" <takano32@gmail.com>
Subject: [PATCH v2 0/3] docs: ABI: report a symbol that one file describes twice
Date: Wed, 25 Nov 2026 22:17:55 +0000 [thread overview]
Message-ID: <20261125221758.2535044-1-takano32@gmail.com> (raw)
check_issues() compares a symbol across files, but it skips the case
where one file describes the same symbol twice: the loop returns as
soon as the symbol has one file. The ABI parser keys every entry on
its own, so a repeated symbol on one file is visible as two entries
that point at the same file. Compare at that level.
Doing so surfaces two entries that claim the same ABI:
- shutdown_unlock in sysfs-driver-mlxreg-io, described once in the
October 2021 block and again in May 2025 with a different default;
- the internal MCU protocol_version in sysfs-driver-hid-lenovo-go,
whose entry carries right_handle/, the group the removable
controller lives in.
The two documentation fixes come first, so the tree does not gain
warnings in the middle of the series, and the checker is added last.
Four symbols are described by two files each. That is legitimate when
two drivers expose an attribute with the same name for different
devices, as hid-lenovo-go and hid-lenovo-go-s do, so the cross-file
case keeps being reported, but as information rather than as a
warning.
The first version was posted on 2026-11-25:
https://lore.kernel.org/all/20261125190742.2420486-1-takano32@gmail.com/
This version points the internal MCU entry at the top-level attribute,
which is where sysfs_create_groups() puts it since mcu_attr_group has
no name, and the checker keeps its warning for an entry that ends up
without a file, counts lines rather than occurrences, and drops an
unused loop key.
An AI coding assistant found the two duplicate entries and drafted the
checker. The counts above come from running get_abi.py validate
before and after; the paths and the group were read from the driver,
not from the document being fixed.
TAKANO Mitsuhiro (3):
docs: ABI: mlxreg-io: Drop the second shutdown_unlock entry
docs: ABI: hid-lenovo-go: Point one entry at the top-level attribute
docs: python: abi_parser: Detect a symbol repeated on one file
.../ABI/stable/sysfs-driver-mlxreg-io | 12 -----
.../ABI/testing/sysfs-driver-hid-lenovo-go | 2 +-
tools/lib/python/abi/abi_parser.py | 48 ++++++++++++-------
3 files changed, 33 insertions(+), 29 deletions(-)
base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
--
2.53.0
next reply other threads:[~2026-11-25 22:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 22:17 TAKANO Mitsuhiro [this message]
2026-11-25 22:17 ` [PATCH v2 1/3] docs: ABI: mlxreg-io: Drop the second shutdown_unlock entry TAKANO Mitsuhiro
2026-11-25 22:17 ` [PATCH v2 2/3] docs: ABI: hid-lenovo-go: Point one entry at the top-level attribute TAKANO Mitsuhiro
2026-11-25 22:17 ` [PATCH v2 3/3] docs: python: abi_parser: Detect a symbol repeated on one file TAKANO Mitsuhiro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261125221758.2535044-1-takano32@gmail.com \
--to=takano32@gmail.com \
--cc=bentiss@kernel.org \
--cc=corbet@lwn.net \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=jikos@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab+huawei@kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=rdunlap@infradead.org \
--cc=skhan@linuxfoundation.org \
--cc=vadimp@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®