Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3008757imm; Fri, 20 Jul 2018 08:35:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf0e0qf2jUuVooBrmv/1OLsaftRBKbqFw714E8w15FTRjXeMwPoh7J4a6iFBx+TcOBwr0k7 X-Received: by 2002:a62:8b87:: with SMTP id e7-v6mr2692730pfl.133.1532100935684; Fri, 20 Jul 2018 08:35:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532100935; cv=none; d=google.com; s=arc-20160816; b=BYZ3cLHg7a42ALa5eGBTAO7jkJpX0ETkmY1kjQKjK7Y6F4f67D4gh4HNAjXF4CnfRc lxCNT6KpcUgw2zMHMwtaJWW0uMcJ14SuU4yt/iPE3+jjXicXzW73j+f7KDOHQRlHzFol g47lA8oL7t0rHW4BcVB+lVKoXHG7d+FGZvu1jW0tQBv4UlsKaI13E9+aj2NT1NTx2O6+ RYs35yOxTsGPQFxBXeHCVHY56noMq7aci4KhMcQSiLG7JWpB67AudYthDVIpDnhEWEVZ Uwi3KrThA1WVq8dK71V03sgrRDh+1Rq0sZRgvpe/5cPIVDEcoCcnqsAqXcsrL7iD5cRv 8nsw== 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=zpyX4R2K7IpNw3mGsDhbD19Zg5rcUadVPCmO2qfHZMI=; b=fJNBe+4KAU0ilw1aEYJLPI9gY42F9K9Ndwpb/i3+aOdfpotiRLXknePkDu35Nh+qdt 5Xn/am/E/vo+qJKk38xHKFrH1Nvpi0V4ZHzUjpU5jPdE8AZFx4vzN+sXYw6SAEIjzlKN VkiVGR1/EwhaPTVFpNw9KDkKPgdDjNxC8PUFyuqmi43rkQvhRcw2H/TFHQpJgU/89Itv yKAgjiiABap8aPhymQ1+79OarIMMbew+P9h5AvIM+nhSidIAUSIcNg+IelFtF12H8Afo uGb2cPYeVVOYyYNnE5/iN493oZR2SPbcBZ38/pQjDcxHMvJCkBf6c/N/Nq/SinneUIFJ muGA== 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 b6-v6si1823139plr.210.2018.07.20.08.35.21; Fri, 20 Jul 2018 08:35:35 -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 S2387804AbeGTQWu (ORCPT + 99 others); Fri, 20 Jul 2018 12:22:50 -0400 Received: from smtprelay0025.hostedemail.com ([216.40.44.25]:41011 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728362AbeGTQWu (ORCPT ); Fri, 20 Jul 2018 12:22:50 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 14F1A100E86C8; Fri, 20 Jul 2018 15:34:00 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:355:379:541:599:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3872:3873:4321:5007:10004:10400:10848:11232:11658:11914:12296:12740:12760:12895:13069:13255:13311:13357:13439:14659:21080:21212:21627:30054:30070:30090: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:24,LUA_SUMMARY:none X-HE-Tag: mint10_7a083c6b89134 X-Filterd-Recvd-Size: 1705 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf04.hostedemail.com (Postfix) with ESMTPA; Fri, 20 Jul 2018 15:33:58 +0000 (UTC) Message-ID: <4977e9adba5e826d5e7e9f503e3ce8fbaa872af5.camel@perches.com> Subject: Re: [PATCH v2] checkpatch: kbuild: if_changed: check for multiple calls in targets From: Joe Perches To: Segher Boessenkool Cc: Dirk Gouders , Andy Whitcroft , Masahiro Yamada , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 20 Jul 2018 08:33:56 -0700 In-Reply-To: <20180720152150.GB16221@gate.crashing.org> References: <20180720074804.4160-1-dirk@gouders.net> <01cfa83d2e29667d311d679c904b1648cd35c614.camel@perches.com> <20180720152150.GB16221@gate.crashing.org> 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 Fri, 2018-07-20 at 10:21 -0500, Segher Boessenkool wrote: > On Fri, Jul 20, 2018 at 03:06:37AM -0700, Joe Perches wrote: > > On Fri, 2018-07-20 at 09:48 +0200, Dirk Gouders wrote: > > > + # Check for multiple calls of if_changed within a target in Makefiles > > > + if (($realfile =~ /Makefile.*/ || $realfile =~ /Kbuild.*/) && > > > > The uses of .* here are superfluous. > > And it looks like you wanted to match this only at the beginning of the > string, which would be /^Makefile/ etc. Nope. $realfile includes path and /^Makefile/ matches only the top level Makefile and none of the ones in subdirectories.