Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751377AbdH3GQD (ORCPT ); Wed, 30 Aug 2017 02:16:03 -0400 Received: from mga01.intel.com ([192.55.52.88]:29652 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750744AbdH3GQD (ORCPT ); Wed, 30 Aug 2017 02:16:03 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,447,1498546800"; d="scan'208";a="1212354717" 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 v4] provide rule for finding refcounters Date: Wed, 30 Aug 2017 09:15:57 +0300 Message-Id: <1504073758-16945-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: 586 Lines: 21 changes in v4: Removed unnessesary "()" around expression in rule 4. changes in v3: Removed unnessesary rule 4 conditions pointed by Julia. 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 | 131 ++++++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 scripts/coccinelle/api/atomic_as_refcounter.cocci -- 2.7.4