From: Mike Rapoport Date: Tue, 13 Feb 2018 11:31:46 +0000 (+0200) Subject: scripts: kernel_doc: fixup reporting of function identifiers X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=a8dae20b1d39dd2785ff7f746338b1b9e51e3335;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Jonathan Corbet --- 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($) { } elsif (/$doc_decl/o) { $identifier = $1; - if (/\s*([\w\s]+?)\s*-/) { + if (/\s*([\w\s]+?)(\(\))?\s*-/) { $identifier = $1; }