aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2019-07-14 11:30:23 +0200
committerTom Rini <trini@konsulko.com>2019-07-24 14:15:36 -0400
commit146ce6474d0355a45fbd289981ecc8d2d15ff993 (patch)
tree6bfc10d1a371c4d2d5556e738f1835c230783118 /scripts
parentb7ab0982074de39c5fa43188a3b8c1233984472d (diff)
downloadu-boot-146ce6474d0355a45fbd289981ecc8d2d15ff993.zip
u-boot-146ce6474d0355a45fbd289981ecc8d2d15ff993.tar.gz
u-boot-146ce6474d0355a45fbd289981ecc8d2d15ff993.tar.bz2
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/kernel-doc2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index 3350e49..516cf1d 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -1382,7 +1382,7 @@ sub create_parameterlist($$$$) {
} elsif ($arg =~ m/\(.+\)\s*\(/) {
# pointer-to-function
$arg =~ tr/#/,/;
- $arg =~ m/[^\(]+\(\*?\s*([\w\.]*)\s*\)/;
+ $arg =~ m/[^\(]+\([\w\s]*\*?\s*([\w\.]*)\s*\)/;
$param = $1;
$type = $arg;
$type =~ s/([^\(]+\(\*?)\s*$param/$1/;