diff options
| author | Mike Rapoport <rppt@linux.vnet.ibm.com> | 2018-02-13 06:31:46 -0500 |
|---|---|---|
| committer | Jonathan Corbet <corbet@lwn.net> | 2018-02-18 18:45:53 -0500 |
| commit | a8dae20b1d39dd2785ff7f746338b1b9e51e3335 (patch) | |
| tree | 34b3d8c52f142b56140043e678b9751784fc6501 /scripts/kernel-doc | |
| parent | bc0ef4a7e4c322ceeee00b1becab966cba7fedb7 (diff) | |
scripts: kernel_doc: fixup reporting of function identifiers
When function description includes brackets after the function name as
suggested by Documentation/doc-guide/kernel-doc, the kernel-doc script
omits the function name from "Scanning doc for" report.
Extending match for identifier name with optional brackets fixes this
issue.
Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'scripts/kernel-doc')
| -rwxr-xr-x | scripts/kernel-doc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index fee8952037b1..a6a9a8ef116c 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc | |||
| @@ -1873,7 +1873,7 @@ sub process_file($) { | |||
| 1873 | } | 1873 | } |
| 1874 | elsif (/$doc_decl/o) { | 1874 | elsif (/$doc_decl/o) { |
| 1875 | $identifier = $1; | 1875 | $identifier = $1; |
| 1876 | if (/\s*([\w\s]+?)\s*-/) { | 1876 | if (/\s*([\w\s]+?)(\(\))?\s*-/) { |
| 1877 | $identifier = $1; | 1877 | $identifier = $1; |
| 1878 | } | 1878 | } |
| 1879 | 1879 | ||
