Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2585309imm; Mon, 16 Jul 2018 10:24:18 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdC/7aiY5cR2FNQzSBkuoKbswzF2P5GWpKaKAlsHuaINJU5/Yx870gMoJaGhzEjaHcFKJke X-Received: by 2002:a63:a543:: with SMTP id r3-v6mr16224822pgu.336.1531761858021; Mon, 16 Jul 2018 10:24:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531761858; cv=none; d=google.com; s=arc-20160816; b=k9MqYNxEC70SurdZW0dQqkTgqR4ELfMXOi91/svst61YAdeyG+Dug/7u+5QFs2NFa+ LNoxQG3Q7uF34NWDzONbAOZtkof1+T2th/Wfp6IYY3xV3jjHbpHg0+v/wmeqxyaspDUj Twryh1QeWWI3DGOceZEn76S5G4bZtwXqo/sln+oDiubzYNO13F4tua8ztrLwBS4K9Yrr QjFOiZkVj8CcQZQ6h1QB8CRFdVW+T8W0LN9sVVwu0KXMzXN/5tmxqEhspX2OAT0xnhdJ lPxR+boZrQujY2Zr7ZbO9r2r2M9NcCuSZ7U8Tq/21EL4MgjMIy10cBpabdybvKdq0m5T R+NQ== 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=PL2r/PU4ZOAU2x+YjdtPdCmik91W+0wThQT7Ef3BNJQ=; b=lH/32BZYVKTX09R3xHXf0ltdc8nf10omMaeIh25PCrXexYGuVbDDWWO5YhVc2zO+bd tmRY9STFAr05u2mI0R7P7TkYm28oxgeTw/HJCyURFgFpdY6wlmw0BlXs5Q5G2bwGIrr9 71Sr27y7832Bj+T393kow/+uPb22n12ChnT1q2pCPp/yvBceXv70xx/h9jbIrbr1QLcG KFKI4P8M/UZhIeAcHAEpD3955E0bFge5vpQQcGxg++t6B+pEhUiXe+BxR1b9TUQxaKHy Zr7FDaG/ky0c2c+99LmbF5XKWCX19biOS70wdxRyqehmXUB24d4nXaUMpobv8+uCH97q rBSg== 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 w4-v6si32947599pfb.52.2018.07.16.10.24.03; Mon, 16 Jul 2018 10:24:17 -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 S1728734AbeGPRuo (ORCPT + 99 others); Mon, 16 Jul 2018 13:50:44 -0400 Received: from mout.web.de ([212.227.17.12]:56197 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727479AbeGPRuo (ORCPT ); Mon, 16 Jul 2018 13:50:44 -0400 Received: from [192.168.1.3] ([77.191.164.6]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LshWf-1g3QX73dxR-012IRF; Mon, 16 Jul 2018 19:22:05 +0200 Subject: [PATCH v2 0/8] Coccinelle: atomic_as_refcounter: Adjustments for source code search specifications 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> Openpgp: preference=signencrypt Message-ID: <5ca6ab58-e929-8468-74e2-012f987a0773@users.sourceforge.net> Date: Mon, 16 Jul 2018 19:21:59 +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: <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:OkckTojCntUt0qjXeJktqIGRxDYR9xYvWl9OvwoOJZfTVi9a477 hRfRTYj5xtVMpKIrumXU+rcUmZyhlsZ8Etdzw1gRUrvkXqusZxungn9h2FjR4XaypMP2TOl tNOvFZH+aCLyZ+6EyZL53OE0arRVbBi4zk5vky5aDKJ4i2AZR1Mf8leuM6yy8mbCXfZrBYW BN3ov4M1cjy1+im8AeMdw== X-UI-Out-Filterresults: notjunk:1;V01:K0:oCxz+Xozkp8=:DGKW0yGRk2kqDg27MgDzhv bALrc76HFpF/IWwx7aCkEdr2jLcJ+fM292xiAtxLP4G0hocrSO1L62f4n1p1ur/5OfZqCYgnU NwE7SUVS/XARwjBBrbqKldm/qQ25jWC6Z+qUMglJqO7d99TKvwPjei1jClIYQLIWtefzlG34e HGk1uBqWOqzoRt56+MjqZbEdwHaRQ8bSGQkGLUgeqjR/8KDrU8gDE24sLzCW2bcZ+vmGYViVT TeTlbZjxrbot1+HjHeko1WbkJqCGafXUAOnUsG2LRK7ycx+MdhBMVapqpYSaeSa2gMWPz0w65 pJ7USq02reQ654dIGUFU/bYGGg6/fNPLNjpitxNVd/UHe+EkIzPKxNeAMUmbcGpj9pilwR5CZ pKxnfMDIkD0970ts+kWNYROeLw967SV+AOy8XCJKj9y50hizhC3A5pg3QKl1FsbG5dzleZAJ2 3ZjrnhpHKskyyzKmY5F70gC/93l8MM9a/+cjSn5R7oI5AsthTRNJlXUV86endPl8serhsV+C7 FgmrFA6KZKje59GpvxAcHz7yZ8wncZPHzIMWhvemRPfVSGs1VeHXwmwjWKaqv5vN/zlY4njWp iVa8IrPxFZottjRlyFGrz43njFiIOslYXxbBcj0oTyksRq9uA/ujkWXEIihLgOHDbsntkcim7 fp9PQU6mdtp7OP+sVfIUCLwgV2LlWUhMykp44qodgQyzI0dx8fo2+jXPk/rFrMQkE4W5jcj4K SKX41CL86y3XIkYWQk7DnElJTM/ypqz8fUTDZgxWdt5zErkyjGpsoTahhK21pB2gcvHrzjzmx 5uTDPud 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 19: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 (8): Delete an unnecessary SmPL rule Omit placeholder specifications from a SmPL constraint 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 the first SmPL rule Use string literals directly in two SmPL rules Use format string directly in the first SmPL rule --- V2: Possible changes were recombined after the deletion of a questionable SmPL rule. .../coccinelle/api/atomic_as_refcounter.cocci | 108 ++++-------------- 1 file changed, 24 insertions(+), 84 deletions(-) -- 2.18.0