Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp839780imm; Tue, 3 Jul 2018 00:32:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKoVp0SknWC4hnS2+ySr0NLZ279IWPe0KlqUftp+0Z6Y8f1d6QDZ7LMko1URMvKcTwyXfka X-Received: by 2002:a17:902:7688:: with SMTP id m8-v6mr28589638pll.54.1530603126724; Tue, 03 Jul 2018 00:32:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530603126; cv=none; d=google.com; s=arc-20160816; b=OqnSL7R/saWGnoO4W+PNi2P95KVK5aALf1rM+I3XNvnRfvZ5Kn3cDig6kr/z3OZR5D CpsdcOPcrj8mOr1tXii+Xhvk21kDMXcztY+mNo4WCSk1S+wbrLsxOgJEpQtGQYz6CD2/ Z11EKX9SssMbte1rU1krpV+j3NMMawAcYdubV+AZ3XYIIYHt2RBZ/YkfIX+XwlnGMvF4 Rl/jO2V62kZe6jLFLX1a4s+WdTQCmkKZQYaBfMf7SkV1uJmGHycG/GaEJy8GDwGor0nA eXuRBOPfe/GG5R3N+489K+LqdxQGqTHrotJm4bBSiqxlBKzz5wr3KUgNATFfotpR4+jb eoqg== 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:cc:from:subject:references:to:arc-authentication-results; bh=U8GiXGeVSzsPw8GbTY7cvhoWFBtUZaXKQsWeQY0UDlI=; b=WLSc/RviN7fG8B2vJfodHCp8FyflOHrziGfRzQ2X6aYhHcrrdiJRWUNg5cre8L7Lel oKiJuzm09rkO4mLHiVNcyyJK78y/SO8X8veZUHNqEqm6slv7YQfeWjTOIzC+EfRjqVro s/Aw0i+OdcYnJIFOwiUTLsLYzCn7uwNkvBa8iqsfh2JWPN57eEuxi+QL7iIYen5ha8MF aUyDXtL9pocUmr+Xre3CmeCAwKNsp+qmPaNtCj18+VxAtnnGgudrgYAqNyc7pOwp5FiJ 8DlpnbjaNduac0Hoo4CBxF6F11XLrgnPz7cxOHH1rT+2ILfFSLTItyVoHzAZ/Spovxgb l79Q== 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 j1-v6si557843pfb.32.2018.07.03.00.31.52; Tue, 03 Jul 2018 00:32:06 -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 S1754496AbeGCHbF (ORCPT + 99 others); Tue, 3 Jul 2018 03:31:05 -0400 Received: from mout.web.de ([212.227.15.14]:33337 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753831AbeGCHbE (ORCPT ); Tue, 3 Jul 2018 03:31:04 -0400 Received: from [192.168.1.3] ([92.228.103.75]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MYw31-1fdsYF2o31-00VkHH; Tue, 03 Jul 2018 09:30:48 +0200 To: Elena Reshetova , Julia Lawall , Kees Cook , Masahiro Yamada , kernel-janitors@vger.kernel.org References: Subject: [PATCH 0/6] Coccinelle: atomic_as_refcounter: Improvements for source code search specifications From: SF Markus Elfring Cc: LKML , Coccinelle Message-ID: <6043bdc9-529f-e93f-e509-e2dedd290a10@users.sourceforge.net> Date: Tue, 3 Jul 2018 09:30:33 +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: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:NixHgcJO41MhS0ho1v6Xrx3OjQhLcR7vgN+JXg1TLGIwa9vUoVR ELzX/oaj9edLLWU90TtcUM4gUgbupq2/MWB1c3DRZVG25wWUnqYrkCjejblJA0seluJk5YD U+PSMsSG/hYVNDJKT7o8DP9GhexScrT2Nr+HFNADhQ0eG82kPXY/A0mIq/mbsbzEqPyk7ij DyFOB5BNk5z7WaSoEiEig== X-UI-Out-Filterresults: notjunk:1;V01:K0:KpmuBE4+bL0=:C3HBI9dpwleE7huiZisPHv jBvWcAm+shxxIqNnay25ecPq8p2H6dFHvhx7oFyFwdt+9Hnn5WUDbdtP23NcphLhICWSpAM5K 446UODPwaeCACXuOa32PyiowJjBYiqnnHbjc9wCHrCnJwj/jrbbdIC+MxhqRe2gmmRi46RO9A Kg0JmxLBSWI/fN9UZIR1nZID5LuISqhdVzC+/ULzGH51KbQDBeo7ZRDIqyB1eOlADrWRBUsYP qR8NwiFbtbmvc91KvvpmF+3zo6LkaLVofmLiSmK6cDebdZFsq1G57B9Bs0lIJuM3j72mfu1E/ 0MiiWwJCwTC43CTtX2XPlHAT/aEor1P4X+Wuf09p4XOJ49P/KYFvxzEgEzIaMPXjFnhhYEuBO SD94/PjbI9DUBI0nrs1+ytcF0MS3cInGnXt2qKEorQDoSD25wOUlhuN3QWqAdOJ7Yj8J+ul2f 90/wZmdcgpqO3WvEX8pxXZZYX0od7kUFmqSI6X/MGbDn3pY+gHztqp61wt26htM9A2Y9soGq0 fGzos7ZYxxZ1A5tsobuuEL6U9mkcnb08vLFWAM81U3j/nESDcGhGIB5YgxBbL4su3KiOV7xWC QOdgOsSwujRNaYPjmFjAOsnSXs2qAxbdcKk/XlJ7vX4iT/Q45ncQP+IhW5IYZNh3QBK2OWzp3 6cw716BJ1q/yW/Jh2v9glDyxQnBolzMkLSKP+a3m4Gd801Ulh1GYDiUQ+eUHdretzIyINU4zy C2x86uucXrAgMbueYMaFEs/y96UD3hezYiNcrxUR/pRPpiDmj9Q0YtJxdFBMYPO2ztLgiVCGM MFAPS6+ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Tue, 3 Jul 2018 09:15:26 +0200 This source code search pattern was programmed in the way that some implementation details could be improved further. I suggest to avoid unnecessary code repetition also in this script for the semantic patch language. Markus Elfring (6): Omit placeholder specifications from two SmPL constraints Optimise a disjunction in the first SmPL rule Use type “expression” for another metavariable Replace disjunction by a constraint in two SmPL rules Use nested disjunctions in two SmPL rules Use format strings directly in SmPL rules .../coccinelle/api/atomic_as_refcounter.cocci | 104 +++++++----------- 1 file changed, 39 insertions(+), 65 deletions(-) -- 2.18.0