diff --git a/scripts/kernel-doc b/scripts/kernel-doc index eb986a7809d3f636ccb65607c6e4200f2aae2c81..0057d8eafcc10cf922d81264e39c55002b8fc545 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