Skip to content

Coccinelle: atomic_as_refcounter: Adjustments for source code search specifications

SF Markus Elfring cocci kernel-janitors lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 0 repliesNew
  2. v16 patches 0 repliesSuperseded

Changes in v2 from the cover letter

Possible changes were recombined after the deletion of a questionable SmPL rule.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8Coccinelle: atomic_as_refcounter: Delete an unnecessary SmPL rulescripts/coccinelle/api/atomic_as_refcounter.cocci+0 -330 replies
2/8Coccinelle: atomic_as_refcounter: Omit placeholder specifications from a SmPL constraintscripts/coccinelle/api/atomic_as_refcounter.cocci+1 -10 replies
3/8Coccinelle: atomic_as_refcounter: Optimise a disjunction in the first SmPL rulescripts/coccinelle/api/atomic_as_refcounter.cocci+1 -140 replies
4/8Coccinelle: atomic_as_refcounter: Use type “expression” for another metavariablescripts/coccinelle/api/atomic_as_refcounter.cocci+4 -20 replies
5/8Coccinelle: atomic_as_refcounter: Replace disjunction by a constraint in two SmPL rulesscripts/coccinelle/api/atomic_as_refcounter.cocci+5 -180 replies
6/8Coccinelle: atomic_as_refcounter: Use nested disjunctions in the first SmPL rulescripts/coccinelle/api/atomic_as_refcounter.cocci+8 -100 replies
7/8Coccinelle: atomic_as_refcounter: Use string literals directly in two SmPL rulesscripts/coccinelle/api/atomic_as_refcounter.cocci+2 -40 replies
8/8Coccinelle: atomic_as_refcounter: Use format string directly in the first SmPL rulescripts/coccinelle/api/atomic_as_refcounter.cocci+3 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/8] Coccinelle: atomic_as_refcounter: Adjustments for source code search specifications

From: Markus Elfring <[email protected]>
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(-)
Signature · 1 line
2.18.0