Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8dae20b authored by Mike Rapoport's avatar Mike Rapoport Committed by Jonathan Corbet
Browse files

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: default avatarMike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent bc0ef4a7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1873,7 +1873,7 @@ sub process_file($) {
	    }
	    }
	    elsif (/$doc_decl/o) {
	    elsif (/$doc_decl/o) {
		$identifier = $1;
		$identifier = $1;
		if (/\s*([\w\s]+?)\s*-/) {
		if (/\s*([\w\s]+?)(\(\))?\s*-/) {
		    $identifier = $1;
		    $identifier = $1;
		}
		}