Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp18039imm; Tue, 16 Oct 2018 17:00:48 -0700 (PDT) X-Google-Smtp-Source: ACcGV61sujTwb3eYDh4BcHvnIPpOp9IHNJO3IPjC97EKaDAhsZSbbYbR9JPe/XeyaeiWdcCu0Xka X-Received: by 2002:a63:c40c:: with SMTP id h12-v6mr10444816pgd.298.1539734447967; Tue, 16 Oct 2018 17:00:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539734447; cv=none; d=google.com; s=arc-20160816; b=yLMSNj1rZSSdcUK06L3YVjxCAD7K56LYwLU8InrPniikHeB28UNtOEcnDu0CJorfk5 jVVc7iHOLejlvriMdjMfghPZRR4M+CX1taR3/Du4UyV+WkJnsrsZFzGMpluvFwbs7Amw SNe59xKJNkwV65bQ2PB2UXJ1E48mY9hwDwI8rqlU6804FOaR6jN+5zhwGa1JfMrzZMvE m+gj8ZEKqyEQEbNp9F6sYiiwh/B5NX9NTtuFWG/UOikm0LuwdTKKseUzrzl9KEeaK0zZ Heqyem220DzGM8w6YM+WY40VnBos2dkb5WipiuX47RAimCCF0u1WaVMwvZhlM42XGNct UCuw== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=Q6Ife+2xDnKejKywXk72ouG1Ry8m9jCkwcTvAUueyqc=; b=fFo9QA7Z0+ZlQKY0tkehhGMzmke7cW6LYkexCAIkuenLw7u2Uk9sEwGl5LYY1uWqgu jtvmG4ZMgrex6sTUyNZUpEDfrNQ8ncQDDJV0jHSw6IXNH2tqnDo6wlt3svHj06l8h5VN Ay4jUO5ZQH55Ebm9W2C5eEELTMnyfD4GZbEWqnAB9fkohL8XYkfwsyzJDK/WDHBBk7Hc uwgfggSOR2cMkJ4WG74fNztAbOvd1p6769KS0RpIrWEDJ2Ec0IVCsmCJcU95WAaxd98P xWxBT4c53z9NbtE9vNPTBy4i+WT07CKUiJ6GNPzXX9+VwQUg/N5/aeKkYMZWD8rGN9/J Zpxg== 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 p18-v6si15600297pgb.217.2018.10.16.17.00.05; Tue, 16 Oct 2018 17:00:47 -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 S1727290AbeJQHwW (ORCPT + 99 others); Wed, 17 Oct 2018 03:52:22 -0400 Received: from smtprelay0086.hostedemail.com ([216.40.44.86]:48381 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727088AbeJQHwV (ORCPT ); Wed, 17 Oct 2018 03:52:21 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id DD23A181D341A; Tue, 16 Oct 2018 23:59:29 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::::::::::::::,RULES_HIT:41:355:379:599:800:960:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3867:3870:3871:3872:3874:4321:5007:6120:6742:8957:10004:10400:10848:11232:11658:11914:12043:12048:12296:12555:12740:12760:12895:13069:13095:13311:13357:13439:14181:14659:14721:21080:21433:21451:21627:30054:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.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:29,LUA_SUMMARY:none X-HE-Tag: chin26_357726a2f072e X-Filterd-Recvd-Size: 2095 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf03.hostedemail.com (Postfix) with ESMTPA; Tue, 16 Oct 2018 23:59:27 +0000 (UTC) Message-ID: Subject: Re: [RFC v1 12/31] checkpatch: added support for struct MOCK(foo) syntax From: Joe Perches To: Brendan Higgins , gregkh@linuxfoundation.org, keescook@google.com, mcgrof@kernel.org, shuah@kernel.org Cc: joel@jms.id.au, mpe@ellerman.id.au, brakmo@fb.com, rostedt@goodmis.org, Tim.Bird@sony.com, khilman@baylibre.com, julia.lawall@lip6.fr, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, jdike@addtoit.com, richard@nod.at, linux-um@lists.infradead.org Date: Tue, 16 Oct 2018 16:59:26 -0700 In-Reply-To: <20181016235120.138227-13-brendanhiggins@google.com> References: <20181016235120.138227-1-brendanhiggins@google.com> <20181016235120.138227-13-brendanhiggins@google.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 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 Tue, 2018-10-16 at 16:51 -0700, Brendan Higgins wrote: > This adds struct MOCK(foo) as a NonptrType so that it is recognized > correctly in declarations. I think this commit message is lacking context. > Signed-off-by: Brendan Higgins > --- > scripts/checkpatch.pl | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index 447857ffaf6be..9806f190796de 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -745,6 +745,10 @@ sub build_types { > (?: > (?:typeof|__typeof__)\s*\([^\)]*\)| > (?:$typeTypedefs\b)| > + # Matching a \b breaks struct MOCK(foo) syntax, > + # so we need to have it not lumped in with the > + # types in @typeList. > + (?:struct\s+MOCK\($Ident\))| > (?:${all}\b) > ) > (?:\s+$Modifier|\s+const)*