Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp843603imm; Tue, 3 Jul 2018 00:36:57 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd25N8M6+at47MI+x6089emimle08q6pD2bK/cvPqWZEpeD4tMLdD2oiWRk9jq4wb2Rt1fo X-Received: by 2002:a63:9902:: with SMTP id d2-v6mr16370423pge.343.1530603417236; Tue, 03 Jul 2018 00:36:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530603417; cv=none; d=google.com; s=arc-20160816; b=DsvL/oaKO0qwnRrX7f8kVDKfliEfHuUc8rxkenotwYmgx0peUhiCfFMZ1GB4UCeWZc r1uV4r5x1yDbDUU7qaB+97RzH1ols4qmAj58VFQGPZ6uLSfreFPys423NsweUpPrXAlk kO88oxdRZ9AfLUOHcTuDfWfxC2IRKI77U/7zz1PSP3r/NA8GVE117YOXmUHW9RBRFV9a AuXxQDNpuvHad39VZFEaMsbGQbpgusfZ5pmmzyeItGDzj8ZSfH+ysRT1vX4WDcoNxs4M 59GQTSW6swD6x/YNQJS5AX+DiMbesRHuOMlxZ/KNaXmd9K3+49yYlUjgNuzGvRXHLJIR Bj+g== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:openpgp:references:cc:to:from:subject :arc-authentication-results; bh=IfUC2uZOyxEOFEZzasutbUgTsR2VjMrmMC30RnJ6LuY=; b=v48sazDru63IGArOlctvYykli/UQW6D0SDFqoHHRVXHYH9vBFxbBQRIdKk9FHdLv78 cAIMP6zI45lvj9tMLiaFhi2WwMHG1OdFHmw2NRzhJH64d3dHZThrDt54iZQ4hvzyB9Ef csMTZGtnHKtpD1VM8pVVKIDTtI3p6LkvGKRA//JC1v4e60B/Gy5g3fV0vB0W355gMDTa NVUZcjgWpCmB/18gTgi22aYsY/TW19FM5sZYOWTlhSM+DlrphtLsbmlRR/a3pHiSFz48 yBtDSJ1nG6goDM/s/Imzo20hwT86qd+mhZ0VICQriw5JAnQXJ4JuouURFAybJnSkwiYz ZMGQ== 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=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r5-v6si484674pgr.491.2018.07.03.00.36.42; Tue, 03 Jul 2018 00:36: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; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754583AbeGCHgA (ORCPT + 99 others); Tue, 3 Jul 2018 03:36:00 -0400 Received: from mout.web.de ([212.227.15.3]:48145 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932098AbeGCHfg (ORCPT ); Tue, 3 Jul 2018 03:35:36 -0400 Received: from [192.168.1.3] ([92.228.103.75]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MCNY9-1fR91a1PRx-009AQN; Tue, 03 Jul 2018 09:35:27 +0200 Subject: [PATCH 1/6] Coccinelle: atomic_as_refcounter: Omit placeholder specifications from two SmPL constraints From: SF Markus Elfring To: Elena Reshetova , Julia Lawall , Kees Cook , Masahiro Yamada , kernel-janitors@vger.kernel.org Cc: LKML , Coccinelle References: <6043bdc9-529f-e93f-e509-e2dedd290a10@users.sourceforge.net> Openpgp: preference=signencrypt Message-ID: <420481d3-0ec7-3990-30b3-0ef2118e5be8@users.sourceforge.net> Date: Tue, 3 Jul 2018 09:35:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <6043bdc9-529f-e93f-e509-e2dedd290a10@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:GgxJUwqfXaJ6RP5uSwVR8VwtElIf6r/oBIFXhRDyO5CW7wwf8iH /SsFSqVBcHSJfRVnaajhZmC1NPUn7q4bOGEl/PJNnsVGNnID8kvy8ZQaLUuY/OApRP8OzYm QmOjzTV3T9OY6QqaoOZlL93pjU7GkpdGvuEqU5zR97GqdCpLntU4AsmxTMB3J7hcoT+mvUl KNsPB8jjaVBPBh6sl3JTg== X-UI-Out-Filterresults: notjunk:1;V01:K0:lrijex5WGto=:OBUrH4ucMZyjso+H2ZYJkR V/pebeZ1sGYGUQNEtxXbjXRfPWjeIA3ZnQIHuKryW0pvPlXhtxFLRYNImsjY2JHdRGYoSDJJi JWiw584gNDC4GEjGcNIRJc9RNIh+BYYoFsf7/2dZTQ2In9N21ZvMJ/jozVCbpXCKAjIGHGG02 PIw5HhLtWf7QBRph7VHlpR/BUKVBtDDkzvJrQHBYqio7rTSZWDLE2X/htnGn1wR+AB9rxHAke SfA5UDKggmoAonD/Ae4VPUqKR3+cUMiJzXoN8zOlN+CjCCY4GkE6HbMKKuyepEohOsG1tZCzt ywIAsgMtdZ8vOkkEWkh8tuOgSXmX/bApv+mPHHpYrRNpHa3WYBYtKYmalYclV3XqJ8iVSGwoP it1A0LfE6qYjkZ0mU4k+g71M8ImphSToAGZzrcm9zUIilmPBlVOd31EbP0a8Ml6syQvETGnm+ rqR6320e9VpByvsXhU2Lqu7Idv4CLosLQJwyLujKidhFRvLcwFQsn6IZUs1Ws38gpm7OjHtut wMXmwjW9K+7xZECWmMJfeF6kCjC6TDKSb4ZIA+U5OZqlB8Tw8Ui6anjHW1/eEEnruRW1oA8kI XMgWrnRDKBOvBQnMYIh5zeS6dVko3nxzGVwskL6xvxcuPswapJesPfhRwalqPrawJ0NXEEjpp Fl94Pd812+ohzq0SZNEHi6amHiol057GiN5tUtT3qXB0DcZEcGYptCC9dgGUEYGEKVgxcFO38 6DJHNEDnRTAho1ssgjXKIfO9cZ+Y1fTUnfVg2Q3rXgVKNUWkfb53sapeEDqLWCTgAEUrSTjYS rSOkd9i Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Mon, 2 Jul 2018 16:33:46 +0200 A string was enclosed by placeholder specifications for regular expressions as constraints for metavariables in a script for the semantic patch language. The desired search functionality can be achieved also without the notation “.*”. Thus delete it. Signed-off-by: Markus Elfring --- scripts/coccinelle/api/atomic_as_refcounter.cocci | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/coccinelle/api/atomic_as_refcounter.cocci b/scripts/coccinelle/api/atomic_as_refcounter.cocci index 988120e0fd67..94373a35744e 100644 --- a/scripts/coccinelle/api/atomic_as_refcounter.cocci +++ b/scripts/coccinelle/api/atomic_as_refcounter.cocci @@ -12,7 +12,7 @@ virtual report @r1 exists@ identifier a, x; position p1, p2; -identifier fname =~ ".*free.*"; +identifier fname =~ "free"; identifier fname2 =~ ".*destroy.*"; identifier fname3 =~ ".*del.*"; identifier fname4 =~ ".*queue_work.*"; @@ -60,8 +60,7 @@ coccilib.report.print_report(p1[0], msg % (p2[0].line)) @r4 exists@ identifier a, x, y; position p1, p2; -identifier fname =~ ".*free.*"; - +identifier fname =~ "free"; @@ ( -- 2.18.0