Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2588369imm; Mon, 16 Jul 2018 10:27:56 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeNfxNb97kX/4AFkg4nZdTXhj5TsCRsDH1s7xQBaafnQ8HqflShylAVF9pO2Q5mB6XpK5+X X-Received: by 2002:a17:902:201:: with SMTP id 1-v6mr17585094plc.310.1531762076196; Mon, 16 Jul 2018 10:27:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531762076; cv=none; d=google.com; s=arc-20160816; b=oq78O9nO9VPlsMXHPKisIbqAcwT29gqZywlyDHD8m5ZT9F6YKrtliQEYXaJFV5Sxxo KKo07Jl1chYjhJk+TkVA+5ifT/Aj0QinBTdH5v/SMOH8heDJQ44ppp90yiGXeGT2jGM8 NwklLlPtVq7Cne5/3ng3FOIWOG9CTCjMykFrpfVuH58AkYvdG1dUfKtHRvuTF8qTdqmy 4VpePX2S4NB6BFJcEaSH0aN5+IX+PNu39BMhuQKumybdk4n+eklkbYUBIy0X+puT7EW7 s0AutIMMuX92Rwqu/JPi5Fe0wGsWEV93ExW6q/ueRZ6KtS1h2EJdo6CB7KgGnG6y3Uph w4yQ== 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=Gj+Vp4AfDRrUbRZG9hBMdK2VZDl+rX7x8hcAf7NmA8o=; b=sNvwHVg4IXUNeo5kceiX9DdJDkcX0zOQAgAly2Hz0e8XcwJPhu088AeuhlP9BkaHPb FzkUPFa8qwO/UGraqcCFlqpygmnHdW5rIKJxNKfieMU4NP8VaxAN7talgMiVTfmUardw OH8nMTy83yQB2iMqkKakfnZlzhVc60ANkwrWvI3tWwrIzToV7StvkiJHruTYrZCoR7Yh uD2L1cPpRj26lgcYMdbGmAnx05c6sfTsOVLclwJMFyPQ2AeUY95EaBc8JWRTqDQwdYo8 G+4fhudpY0Le8JeqArMLxJUpTIvu6sYM6uQIrx+u8qXMd0xfPCgGjuTL+OmyQPSxiVwA lxPg== 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 t20-v6si3904244plo.338.2018.07.16.10.27.40; Mon, 16 Jul 2018 10:27:56 -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 S1728202AbeGPRz1 (ORCPT + 99 others); Mon, 16 Jul 2018 13:55:27 -0400 Received: from mout.web.de ([217.72.192.78]:56205 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727618AbeGPRz1 (ORCPT ); Mon, 16 Jul 2018 13:55:27 -0400 Received: from [192.168.1.3] ([77.191.164.6]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MQNeK-1fSzFC3Y8C-00TlPT; Mon, 16 Jul 2018 19:26:54 +0200 Subject: [PATCH v2 2/8] Coccinelle: atomic_as_refcounter: Omit placeholder specifications from a SmPL constraint From: SF Markus Elfring To: kernel-janitors@vger.kernel.org, Elena Reshetova , Julia Lawall , Kees Cook , Masahiro Yamada Cc: LKML , Coccinelle , Gilles Muller , Michal Marek , Nicolas Palix References: <6043bdc9-529f-e93f-e509-e2dedd290a10@users.sourceforge.net> <5ca6ab58-e929-8468-74e2-012f987a0773@users.sourceforge.net> Openpgp: preference=signencrypt Message-ID: <7f7e6a42-3ff1-2495-57df-fb3b09cc1a21@users.sourceforge.net> Date: Mon, 16 Jul 2018 19:26:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <5ca6ab58-e929-8468-74e2-012f987a0773@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:sCg6NmCNwHSvSvA26jEhyFmvk/PUvxS4emnu6wpCVaPzSHycaD7 XQLfd3qHFxZsyuU92L6eJruh7sUcGKeHEiih5VJktplyaw1v1uorcQieuidMfK1jZe+RSeh TLy+2fRbwlTQjn8oN4pQ0hlmT0vxsySAbTaWan/rqULD1caSqySxI+0dK4RgYuETFLqm0nH QMcs3qoxzSIcuXnMf2Dzg== X-UI-Out-Filterresults: notjunk:1;V01:K0:lG7LaQbtrXU=:pFiADWQ7kxGwBNATJePk13 k7Q+gnjCHmHWJ5Kc86LPjhwiDEIQthpN0LM9QAM+BOWhc4a8+74IETmmrAsQSren4BSdR0ch9 0FAx0AdxGUz4rZGfvVW3Y6s24cg7PWCKfHDtAc76K0SPmOIfZ6im9/wu8rBdfXDfo+DvQTwSk 1EwbpBxoPo1gbL8oRHaYG8fnmCfrw/nRNxBZjzU/IA7lLXnU+HwL9h8DIVfuMENJpMr6nfz6S 8wEfleq8iP84AwAZiMjCObfAYUJ4+HY2UNDu+vtdzuKN6+v+R6eOYL0DLAsrMMwHIY/P3aKGM rP5vxt8sjpyuuln7bx+tl/xTxRYvyoqr3b7uUL0pcTB42VSY4auHr5RKcae+7hA6MIhJifTYp 6YZ/ELCtqhCl0hH4jXWTRWQ4ahil2IBIC04MOUTeJzU98XgTjRlkRbvDxVELd9xPBtu4lhBsb pzKrVwn5Kr1ufII7gW2u59YP79sCqVY6rCsfD7xClTCjwvQFgCrh6wys5B6+xCWpHijhTswm5 2r2IOe1yee1VWoiPHQXUozEyBrSzZSB72wBpK90w3tEqcIxAC+Qc95+NeYUs8vqWViqg1/PLW 6nUfhzhJHoUJD4hWsF8bJ8IUlVCwYiC8TjTzas73j2FPym7uxEBuJYbhfXqLEGZuwjrt4IB/Y 6R3V4nM3hBNxCNASUD6Bkssa2vO8JtvnjR9gVQ6GFypwK3u287UnEvI8mUU0MM09YMzAp4bPb TTci/zlseU77l1IKeUlKVcR8N1mVLO7sJLkYmejhpM/6BKUoloVz1dbhk+m18Em2vzIGcQOjd 0QxLibN Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Mon, 16 Jul 2018 17:34:56 +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 at a specific place. Signed-off-by: Markus Elfring --- scripts/coccinelle/api/atomic_as_refcounter.cocci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/coccinelle/api/atomic_as_refcounter.cocci b/scripts/coccinelle/api/atomic_as_refcounter.cocci index 61fcaf5e45a3..46d27b2b1dff 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.*"; -- 2.18.0