summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_files.py
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2025-04-15 11:12:50 +0800
committerJonathan Corbet <corbet@lwn.net>2025-04-21 10:39:17 -0600
commit47c2d4168b2d197877356c58300ae98765a59b2e (patch)
tree477072a7e2c53748f29270477480fce796458011 /scripts/lib/kdoc/kdoc_files.py
parentf9cdbc5781f2c2bf374d21d91b139ae5a2f62093 (diff)
scripts:kdoc_files.py: use glob for export_file seek
As filenames are expanded using kernel-doc glob, just in case, use it also when checking for exported symbols. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/21657afdd4f8effe0752a5ec258d74b8a4101f55.1744685912.git.mchehab+huawei@kernel.org
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
-rw-r--r--scripts/lib/kdoc/kdoc_files.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/lib/kdoc/kdoc_files.py b/scripts/lib/kdoc/kdoc_files.py
index 2e51e5f3bb77..630aa5ca6460 100644
--- a/scripts/lib/kdoc/kdoc_files.py
+++ b/scripts/lib/kdoc/kdoc_files.py
@@ -250,6 +250,8 @@ class KernelFiles():
if not filenames:
filenames = sorted(self.results.keys())
+ glob = GlobSourceFiles(srctree=self.config.src_tree)
+
for fname in filenames:
function_table = set()
@@ -257,7 +259,7 @@ class KernelFiles():
if not export_file:
export_file = [fname]
- for f in export_file:
+ for f in glob.parse_files(export_file, self.file_not_found_cb):
function_table |= self.export_table[f]
if symbol: