Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1996454imm; Mon, 3 Sep 2018 15:29:57 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb/4icEmoBaDWOxqnEvGNsRzC6fPBjVe4Kl9AsVlXt8JNXnSDtjQtRLRetFv5xc2DomrWmb X-Received: by 2002:a17:902:b115:: with SMTP id q21-v6mr30919929plr.333.1536013797133; Mon, 03 Sep 2018 15:29:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536013797; cv=none; d=google.com; s=arc-20160816; b=G6t4eXS3U6s6BeOkTTtQ1OG8aQjbFvWZFNURJ1BMekmCxRP15S/AvD6RbQQR/I/An7 aKDYAjbZty3RhoWLO6kNZ9bzDw0KyzswOvutvFP5Xrb+xC/4ZBeLvKbAaGTe3dQvnPzk XsrGqQGHoJ8/SyhQjXbbK+Y5jWAK3unfxm0rCUchShFkqk4heGGMHRe3giDr30n1Jdtq nnPo/07B2zUpVidbY9O/JTughQRzfyYP/UZjLjq4xRQiocNQW9nUTvIucKJHywRcKHMt jsvM/NGpnF3xD55VYg73TMymuU42Keuh4OwbKfLFLR9Zq+2IMNtNkprijRfvsSaC7nHC IQmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=C6kNDEsdqUGpCIh3lKuPiA9M0oJzrxrby0NXYwK7sew=; b=zYtWDVc27JwGrVZF3xISsqp2ERNoGZrstPrJ1VyvWe/qanBGUqiDWBcO6NmEupl8k5 ubU0qlIuM62t8yBeKrgkhKWjgKvtfFuFRmNNW4JDnLGijyIr8oI+ArdYKWPwOYP72pfj WS4Ke6bri7LmvZFLmcEeF2l6RDQ2mykwAwsEtSEjXPda4bNU00cuBPCt+dYI054RLy20 6Y5+utr93LCHHglOiKXh9pN6y6q/rNbnHYugHoYJ1YjTtWVfL2lbm7TRFxZHN+jxK4cI pHx4KTFJQVGkCXrFKx4YVbvVdunXL0uGN1EMIPIpDOPP1nX6oRTUB5cREG711YUmX/qX NbIQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d68-v6si21589238pfj.311.2018.09.03.15.29.42; Mon, 03 Sep 2018 15:29:57 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727043AbeIDCu0 (ORCPT + 99 others); Mon, 3 Sep 2018 22:50:26 -0400 Received: from smtprelay0183.hostedemail.com ([216.40.44.183]:54191 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725955AbeIDCuZ (ORCPT ); Mon, 3 Sep 2018 22:50:25 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id 90E5A182CED2A; Mon, 3 Sep 2018 22:28:12 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:541:599:800:960:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3867:3870:3871:3872:3874:4321:4605:5007:6119:7903:8531:10004:10400:10848:10967:11232:11658:11914:12043:12740:12760:12895:13069:13311:13357:13439:14181:14659:14721:21080:21451:21627:30012:30054:30090:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.14.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:31,LUA_SUMMARY:none X-HE-Tag: box39_64a0f61463c18 X-Filterd-Recvd-Size: 1803 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf02.hostedemail.com (Postfix) with ESMTPA; Mon, 3 Sep 2018 22:28:11 +0000 (UTC) Message-ID: <6cfb25aff666e58a376303ce02de8caa481a6599.camel@perches.com> Subject: Re: [PATCH 1/1] docs: kernel-doc: fix parsing of function pointers From: Joe Perches To: Jonathan Corbet , Heinrich Schuchardt Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 03 Sep 2018 15:28:10 -0700 In-Reply-To: <20180903153804.2b091448@lwn.net> References: <20180903184153.9368-1-xypron.glpk@gmx.de> <20180903130043.059b2e82@lwn.net> <20180903153804.2b091448@lwn.net> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-09-03 at 15:38 -0600, Jonathan Corbet wrote: > On Mon, 3 Sep 2018 22:29:00 +0200 > Heinrich Schuchardt wrote: > > > > > # pointer-to-function > > > > $arg =~ tr/#/,/; > > > > - $arg =~ m/[^\(]+\(\*?\s*([\w\.]*)\s*\)/; > > > > m/[^\(]+\(\*?\s*([\w\.]*)\s*\)/; > > ^ > > Here we allow for 0..1 asterixes. > > > > If there is no asterix it is not a function pointer. Why should we care > > for this case? > > GCC seems to allow that asterisk (asterix is an indomitable Gaul :) to be > missing; not sure if that's officially allowed by the language or not. I > also don't know if any code in the kernel elides it, Many typedefs for function pointers do not use the * Dunno if there are many others, I didn't look hard. $ git grep -P '\w+\s*\*?\s*\(\s*\w+\w*\)\s*\(\w+' | \ grep -w typedef