Received: by 10.223.185.116 with SMTP id b49csp3509709wrg; Tue, 13 Feb 2018 03:32:55 -0800 (PST) X-Google-Smtp-Source: AH8x2267uFncCUOunslHK48Kg/N4CKENnp0qIou3GD/aVzdO0tRGUcs5Ew8x2sfzrTG999Yzt8bW X-Received: by 2002:a17:902:2b84:: with SMTP id l4-v6mr861535plb.338.1518521574896; Tue, 13 Feb 2018 03:32:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518521574; cv=none; d=google.com; s=arc-20160816; b=AEvG7gwJpu1/31kHeDSpWW9IoUMPfK37koiv+EGNtq3wx/TCjclVqHevz5iRs02lH8 LsMB3wsqj1FdX8PfeF+2ReU5AtxbA6IRZBhmIxIKZNtBcp76zHbuIF/LG5MFL1HbrlSn 6x/mBIT/9cUs0zDwLPAFbLQLBL1f8DGWK5O/5jfocYYH0I1ahrEw+2tYR6KsswChYNMm +8PSiAqYrFP8J6Jgp0Ys2Fop88gMOUBC3VUdBKB7IISEa3KuwxgYJOPSmtKLi/1qsn2o FHP65OlMTIR56nTumNZgOBvC83RYhzCkjq90mY9KQdH/tWMz5uNhvqSlh4CPZxEliG3Q EDYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=6LM2F/QBtVXwSmmqbUleZBhb+Mml/NGF/SXgP4yLXzg=; b=zQWoLUFC5IXLtJAAuINU4M+QGKvdHUGJxn/dszXtG5UGjr6ui9DWlY7GXUAOYaWvIy sjhr86rC1kM4GrApepc1IUGbfYpoF8Q9BI6OjoPP2oZE/2Hcirfsx8spRz2FPKAGV452 nzpsCOjsDIjT9Flrxh/rKP3dHWo1ro9DvhSAU1sC3xeJyOo7/mJp00UbJks2QnJrpG0p wUypFHll1TYtcBSMp1bOlOgKq1GXp1irws1NG8HBBd/LbCM13FakAl68z1VA2Zb7Im5o C7RBA/Jojl+Z7dn4cxq9/VdeACKAy2rHpQ3xIm/iGIoYGtrgNvPZ632mfghwzkfp5mpy HB7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si1103673ply.348.2018.02.13.03.32.39; Tue, 13 Feb 2018 03:32:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934001AbeBMLb7 (ORCPT + 99 others); Tue, 13 Feb 2018 06:31:59 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:46622 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933926AbeBMLb5 (ORCPT ); Tue, 13 Feb 2018 06:31:57 -0500 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w1DBU9kG095672 for ; Tue, 13 Feb 2018 06:31:56 -0500 Received: from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com [195.75.94.106]) by mx0b-001b2d01.pphosted.com with ESMTP id 2g3v3e0321-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 13 Feb 2018 06:31:55 -0500 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 13 Feb 2018 11:31:54 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 13 Feb 2018 11:31:50 -0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w1DBVoal1704206; Tue, 13 Feb 2018 11:31:50 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A2681AE056; Tue, 13 Feb 2018 11:22:54 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 44D1AAE051; Tue, 13 Feb 2018 11:22:53 +0000 (GMT) Received: from rapoport-lnx (unknown [9.148.8.109]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 13 Feb 2018 11:22:53 +0000 (GMT) Received: by rapoport-lnx (sSMTP sendmail emulation); Tue, 13 Feb 2018 13:31:48 +0200 From: Mike Rapoport To: Jonathan Corbet Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Mike Rapoport Subject: [PATCH] scripts: kernel_doc: fixup reporting of function identifiers Date: Tue, 13 Feb 2018 13:31:46 +0200 X-Mailer: git-send-email 2.7.4 X-TM-AS-GCONF: 00 x-cbid: 18021311-0040-0000-0000-0000040F3961 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18021311-0041-0000-0000-00002612FBB2 Message-Id: <1518521506-6770-1-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-13_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1802130139 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- scripts/kernel-doc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.7.4