Skip to content

Commit d404d57

Browse files
mchehabJonathan Corbet
authored andcommitted
docs: kernel-doc: fix parsing of arrays
The logic with parses array has a bug that prevents it to parse arrays like: struct { ... struct { u64 msdu[IEEE80211_NUM_TIDS + 1]; ... ... Fix the parser to accept it. Signed-off-by: Mauro Carvalho Chehab <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]>
1 parent 7af8c46 commit d404d57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/kernel-doc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ sub dump_struct($$) {
11201120
# Handle bitmaps
11211121
$arg =~ s/:\s*\d+\s*//g;
11221122
# Handle arrays
1123-
$arg =~ s/\[\S+\]//g;
1123+
$arg =~ s/\[.*\]//g;
11241124
# The type may have multiple words,
11251125
# and multiple IDs can be defined, like:
11261126
# const struct foo, *bar, foobar

0 commit comments

Comments
 (0)