summaryrefslogtreecommitdiffstats
path: root/scripts/kernel-doc
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2018-03-29 16:58:59 +0200
committerJonathan Corbet <corbet@lwn.net>2018-03-29 23:27:42 +0200
commitd404d57955a6f67365423f9d0b89ad1881799087 (patch)
tree66546cfd5a31530a93fa66de3e2001bc907b6179 /scripts/kernel-doc
parentdmaengine: Fix spelling for parenthesis in dmatest documentation (diff)
downloadlinux-d404d57955a6f67365423f9d0b89ad1881799087.tar.xz
linux-d404d57955a6f67365423f9d0b89ad1881799087.zip
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 <mchehab@s-opensource.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'scripts/kernel-doc')
-rwxr-xr-xscripts/kernel-doc2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index eb986a7809d3..0057d8eafcc1 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -1120,7 +1120,7 @@ sub dump_struct($$) {
# Handle bitmaps
$arg =~ s/:\s*\d+\s*//g;
# Handle arrays
- $arg =~ s/\[\S+\]//g;
+ $arg =~ s/\[.*\]//g;
# The type may have multiple words,
# and multiple IDs can be defined, like:
# const struct foo, *bar, foobar