From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758379AbdKOWCk (ORCPT ); Wed, 15 Nov 2017 17:02:40 -0500 Received: from smtprelay0142.hostedemail.com ([216.40.44.142]:59784 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757066AbdKOWCc (ORCPT ); Wed, 15 Nov 2017 17:02:32 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:355:379:541:599:982:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2733:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3872:3873:3874:4250:4321:5007:10004:10400:10848:11232:11658:11914:12740:12760:12895:13069:13161:13229:13311:13357:13439:14659:21080:21450:21627:30054:30060:30070:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:3,LUA_SUMMARY:none X-HE-Tag: sail88_32d6e69a58b48 X-Filterd-Recvd-Size: 1775 Message-ID: <1510783347.25299.2.camel@perches.com> Subject: Re: [PATCH] coccinelle: flags.cocci: reorganize patterns to improve efficiency From: Joe Perches To: Julia Lawall , Masahiro Yamada Cc: Linux Kernel Mailing List , Michal Marek , Nicolas Palix , cocci@systeme.lip6.fr Date: Wed, 15 Nov 2017 14:02:27 -0800 In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.26.1-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2017-11-15 at 22:55 +0100, Julia Lawall wrote: > What version of Coccinelle do you have? > > I tried 1.0.4 and 1.0.6, > > but both failed. > For me, it also fails for 1.0.6. It should be OK for 1.0.7. Then likely this patch should not be applied or some form of local version checking should be done in the script itself. Scripts that use various tools are subject to language versioning requirements. For instance, there are many things that are possible with later versions of perl, but are not done for various scripts because many distributions do not ship with the latest versions.