scripts/kernel_doc.py: better handle exported symbols
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 8 Apr 2025 10:09:34 +0000 (18:09 +0800)
committerJonathan Corbet <corbet@lwn.net>
Wed, 9 Apr 2025 18:10:34 +0000 (12:10 -0600)
commit16740c29dbf3275a22691d3d7c63701992872898
tree4f259e1ed3843f6c8e8994ae351c12f86a70d513
parenta566ba5af59524a3bc5cdfb46b248bd70a0972e9
scripts/kernel_doc.py: better handle exported symbols

Change the logic which detects internal/external symbols in a way
that we can re-use it when calling via Sphinx extension.

While here, remove an unused self.config var and let it clearer
that self.config variables are read-only. This helps to allow
handling multiple times in parallel if ever needed.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/6a69ba8d2b7ee6a6427abb53e60d09bd4d3565ee.1744106242.git.mchehab+huawei@kernel.org
scripts/kernel-doc.py
scripts/lib/kdoc/kdoc_files.py
scripts/lib/kdoc/kdoc_output.py
scripts/lib/kdoc/kdoc_parser.py