Received: by 10.223.185.116 with SMTP id b49csp2299811wrg; Mon, 12 Feb 2018 07:33:39 -0800 (PST) X-Google-Smtp-Source: AH8x226Af9uK6UxjQg/Jq8CLtg7qc6UZwA6ZOVGvjdvVX0aKAMuyUTLRo58RlUlMba1Yjpd7s+V3 X-Received: by 10.98.155.13 with SMTP id r13mr11864057pfd.94.1518449619512; Mon, 12 Feb 2018 07:33:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518449619; cv=none; d=google.com; s=arc-20160816; b=VV/KauOufqth3MUaEi7D+DXKyNeECHLPli3dt5XTL3pku7wL+496qGiYuqDZScOkSx 8+oZkau156WnxbPQhen/oPFTykmHd7BSu3gf0smMN3wvZ936F919srxg83TxZAM/HKcI w51e2fTNwkwM6sWkP5/ETyuXCAdmwqttEfvqpyFSqY1cFvxDyYRVE70dLXuPU4KaVeDI 2NdUG/SIxMi+z4+8tn4H0iAkoPMps5B/4fa7tnNm2aLG5CqgkU+1JiYx/NCQ2UJTS3N2 mJQgddP2NzuTh2IEHs15xm+Sv6hFwqS/16cGwockWF1eJ3zVrKVjHYLRj7rz9W/rYg2c oUlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:subject:cc:to:from:date :arc-authentication-results; bh=j+1qFqv5OpZOPde7czQGfgCtzHy5sl7lKugYLzcE2f4=; b=htXe13XrNOpqSeH1JQVcsPYXunXgu/r9bwIpIXlJnd8xjJg/mR3LHgVZ2Ol8y0Ohmj uJR/p9g7g3ypkrWU5zzRaf6iZEplfzfR4NPV4vz6Aepb6SspHYcA/dVGkHpzjFfdryKJ 01sFPodthw7qTF/O7/X1sznqxubSLBwowUbH/Lra8hzGJGhlMnl4Xj1sPTyVVMkZf9dX YCJuSJ6mmKE9u0qqhkNt9Odl1ZQgisfx7ZhcrYm7SVEcdgroW8ZlkQcaLLeAhsSfYow2 xPJC5hfVKvmazz+c140mi2R+L7cV37baI7DZrfPvnqcD64BJ1FpHcNZE4vEPPKaeXwES BU9w== 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 o2si1165804pfb.268.2018.02.12.07.33.25; Mon, 12 Feb 2018 07:33:39 -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 S1753317AbeBLPcM (ORCPT + 99 others); Mon, 12 Feb 2018 10:32:12 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:51318 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753035AbeBLPcJ (ORCPT ); Mon, 12 Feb 2018 10:32:09 -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 w1CFTm8G070957 for ; Mon, 12 Feb 2018 10:32:08 -0500 Received: from e06smtp15.uk.ibm.com (e06smtp15.uk.ibm.com [195.75.94.111]) by mx0b-001b2d01.pphosted.com with ESMTP id 2g3dc40st1-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 12 Feb 2018 10:32:08 -0500 Received: from localhost by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 12 Feb 2018 15:32:05 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp15.uk.ibm.com (192.168.101.145) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 12 Feb 2018 15:32:00 -0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w1CFW0PP10813472; Mon, 12 Feb 2018 15:32:00 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8CE6D11C05B; Mon, 12 Feb 2018 15:25:15 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6E8D411C052; Mon, 12 Feb 2018 15:25:14 +0000 (GMT) Received: from rapoport-lnx (unknown [9.148.8.138]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Mon, 12 Feb 2018 15:25:14 +0000 (GMT) Date: Mon, 12 Feb 2018 17:31:57 +0200 From: Mike Rapoport To: Igor Stoppa Cc: willy@infradead.org, rdunlap@infradead.org, corbet@lwn.net, keescook@chromium.org, mhocko@kernel.org, labbott@redhat.com, jglisse@redhat.com, hch@infradead.org, cl@linux.com, linux-security-module@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com Subject: Re: [PATCH 4/6] Protectable Memory References: <20180211031920.3424-1-igor.stoppa@huawei.com> <20180211031920.3424-5-igor.stoppa@huawei.com> <20180211123743.GC13931@rapoport-lnx> <20180212114310.GD20737@rapoport-lnx> <20180212125347.GE20737@rapoport-lnx> <68edadf0-2b23-eaeb-17de-884032f0b906@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <68edadf0-2b23-eaeb-17de-884032f0b906@huawei.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-TM-AS-GCONF: 00 x-cbid: 18021215-0020-0000-0000-000003F4D9C6 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18021215-0021-0000-0000-000042876228 Message-Id: <20180212153156.GF20737@rapoport-lnx> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-12_07:,, 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-1802120199 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 12, 2018 at 03:41:57PM +0200, Igor Stoppa wrote: > > > On 12/02/18 14:53, Mike Rapoport wrote: > > 'scripts/kernel-doc -v -none > > That has a quite interesting behavior. > > I run it on genalloc.c while I am in the process of adding the brackets > to the function names in the kernel-doc description. > > The brackets confuse the script and it fails to output the name of the > function in the log: > > lib/genalloc.c:123: info: Scanning doc for get_bitmap_entry > lib/genalloc.c:139: info: Scanning doc for > lib/genalloc.c:152: info: Scanning doc for > lib/genalloc.c:164: info: Scanning doc for > > The first function does not have the brackets. > The others do. So what should I do with the missing brackets? > Add them, according to the kernel docs, or leave them out? Seems that kernel-doc does not consider () as a valid match for the identifier :) Can you please check with the below patch? > I'd lean toward adding them. > > -- > igor -- Sincerely yours, Mike. From 35255bc2d7d2a63be4f78a7bf4eec83ab0dc4f3f Mon Sep 17 00:00:00 2001 From: Mike Rapoport Date: Mon, 12 Feb 2018 17:19:04 +0200 Subject: [PATCH] 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 --- 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