Skip to content

Commit 47c2d41

Browse files
mchehabJonathan Corbet
authored andcommitted
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
1 parent f9cdbc5 commit 47c2d41

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/lib/kdoc/kdoc_files.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,14 +250,16 @@ def msg(self, enable_lineno=False, export=False, internal=False,
250250
if not filenames:
251251
filenames = sorted(self.results.keys())
252252

253+
glob = GlobSourceFiles(srctree=self.config.src_tree)
254+
253255
for fname in filenames:
254256
function_table = set()
255257

256258
if internal or export:
257259
if not export_file:
258260
export_file = [fname]
259261

260-
for f in export_file:
262+
for f in glob.parse_files(export_file, self.file_not_found_cb):
261263
function_table |= self.export_table[f]
262264

263265
if symbol:

0 commit comments

Comments
 (0)