Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752243AbdHNGBy (ORCPT ); Mon, 14 Aug 2017 02:01:54 -0400 Received: from mga02.intel.com ([134.134.136.20]:51297 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751458AbdHNGBx (ORCPT ); Mon, 14 Aug 2017 02:01:53 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,372,1498546800"; d="scan'208";a="889660083" From: Elena Reshetova To: julia.lawall@lip6.fr Cc: linux-kernel@vger.kernel.org, cocci@systeme.lip6.fr, Gilles.Muller@lip6.fr, nicolas.palix@imag.fr, mmarek@suse.com, keescook@chromium.org, ishkamiel@gmail.com, Elena Reshetova Subject: [PATCH v2] coccinelle: provide rule for finding refcounters Date: Mon, 14 Aug 2017 08:59:45 +0300 Message-Id: <1502690386-5605-1-git-send-email-elena.reshetova@intel.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 444 Lines: 15 changes in v2: Following the suggestion from Julia the first rule is split into 2. The output does not differ that much between these two versions, but rule became more precise. Elena Reshetova (1): Coccinelle: add atomic_as_refcounter script scripts/coccinelle/api/atomic_as_refcounter.cocci | 148 ++++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 scripts/coccinelle/api/atomic_as_refcounter.cocci -- 2.7.4