diff options
Diffstat (limited to 'scripts/kernel-doc')
| -rwxr-xr-x | scripts/kernel-doc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index c1ea91c2e497..99b4847f9bb2 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc | |||
| @@ -2506,7 +2506,13 @@ sub dump_function($$) { | |||
| 2506 | $prototype =~ s/__must_check +//; | 2506 | $prototype =~ s/__must_check +//; |
| 2507 | $prototype =~ s/__weak +//; | 2507 | $prototype =~ s/__weak +//; |
| 2508 | my $define = $prototype =~ s/^#\s*define\s+//; #ak added | 2508 | my $define = $prototype =~ s/^#\s*define\s+//; #ak added |
| 2509 | $prototype =~ s/__attribute__\s*\(\([a-z,]*\)\)//; | 2509 | $prototype =~ s/__attribute__\s*\(\( |
| 2510 | (?: | ||
| 2511 | [\w\s]++ # attribute name | ||
| 2512 | (?:\([^)]*+\))? # attribute arguments | ||
| 2513 | \s*+,? # optional comma at the end | ||
| 2514 | )+ | ||
| 2515 | \)\)\s+//x; | ||
| 2510 | 2516 | ||
| 2511 | # Yes, this truly is vile. We are looking for: | 2517 | # Yes, this truly is vile. We are looking for: |
| 2512 | # 1. Return type (may be nothing if we're looking at a macro) | 2518 | # 1. Return type (may be nothing if we're looking at a macro) |
