Commit 146ce6474d0355a45fbd289981ecc8d2d15ff993
Committed by
Tom Rini
1 parent
b7ab098207
Exists in
smarc_8mq_lf_v2020.04
and in
9 other branches
scripts/kernel-doc: fix parsing of function pointers
kernel-doc fails to parse function definitions like the one below efi_status_t efi_create_event(uint32_t type, efi_uintn_t notify_tpl, void (EFIAPI *notify_function) ( struct efi_event *event, void *context), void *notify_context, efi_guid_t *group, struct efi_event **event) { due to the "EFIAPI" attribute preceding the function name. cf. https://lkml.org/lkml/2018/9/3/1185 Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
scripts/kernel-doc
... | ... | @@ -1382,7 +1382,7 @@ |
1382 | 1382 | } elsif ($arg =~ m/\(.+\)\s*\(/) { |
1383 | 1383 | # pointer-to-function |
1384 | 1384 | $arg =~ tr/#/,/; |
1385 | - $arg =~ m/[^\(]+\(\*?\s*([\w\.]*)\s*\)/; | |
1385 | + $arg =~ m/[^\(]+\([\w\s]*\*?\s*([\w\.]*)\s*\)/; | |
1386 | 1386 | $param = $1; |
1387 | 1387 | $type = $arg; |
1388 | 1388 | $type =~ s/([^\(]+\(\*?)\s*$param/$1/; |