Skip to contentSkip to conversation

coccinelle: clk_put.cocci: Adjust commit log of generated patch

PATCH New Fabio Estevam 3 participants 6 messages May 25, 2015 Coccinelle/Semantic Patches (SmPL)

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 coccinelle: clk_put.cocci: Adjust commit log of generated patch

The commit log should better describe the action that the patch will do.

In this case we are 'adding' the missing clk_put.

---
 scripts/coccinelle/free/clk_put.cocci | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/coccinelle/free/clk_put.cocci +1 -1
index 46747ad..492b3b0 100644
@@ -1,4 +1,4 @@
-/// Find missing clk_puts.
+/// Add missing clk_put.
 ///
 //# This only signals a missing clk_put when there is a clk_put later
 //# in the same function.
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/2 coccinelle: pci_free_consistent.cocci: Adjust commit log of generated patch

The commit log should better describe the action that the patch will do.

In this case we are 'adding' the pci_free_consistent.

---
 scripts/coccinelle/free/pci_free_consistent.cocci | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/coccinelle/free/pci_free_consistent.cocci +1 -1
index 43600cc..82b3e44 100644
@@ -1,4 +1,4 @@
-/// Find missing pci_free_consistent for every pci_alloc_consistent.
+/// Add missing pci_free_consistent for every pci_alloc_consistent.
 ///
 // Confidence: Moderate
 // Copyright: (C) 2013 Petr Strnad.  GPLv2.
Signature · 1 line
1.9.1
#2 lore raw

PATCH 2/2 coccinelle: pci_free_consistent.cocci: Adjust commit log of generated patch

Quoted 3 lines · Fabio Estevam

The commit log should better describe the action that the patch will do.

In this case we are 'adding' the pci_free_consistent.

Not sure to follow the reasoning. The semantic patch doesn't add anything.

julia

Quoted 20 lines
---
 scripts/coccinelle/free/pci_free_consistent.cocci | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/coccinelle/free/pci_free_consistent.cocci +1 -2
index 43600cc..82b3e44 100644
@@ -1,4 +1,4 @@
-/// Find missing pci_free_consistent for every pci_alloc_consistent.
+/// Add missing pci_free_consistent for every pci_alloc_consistent.
 ///
 // Confidence: Moderate
 // Copyright: (C) 2013 Petr Strnad.  GPLv2.
--

1.9.1

#3 lore raw

PATCH 2/2 coccinelle: pci_free_consistent.cocci: Adjust commit log of generated patch

Quoted 8 lines · Julia Lawall
Quoted 3 lines · Fabio Estevam

The commit log should better describe the action that the patch will do.

In this case we are 'adding' the pci_free_consistent.

Not sure to follow the reasoning. The semantic patch doesn't add anything.

Right, the semantich patch finds the missing pci_free_consistent, but the generated patch is not finding pci_free_consistent. It is actually adding the missing pci_free_consistent instead.

So in the commit log of the generated patch, we should better use 'add' instead of 'find'.

Regards,

Fabio Estevam

#4 lore raw

PATCH 2/2 coccinelle: pci_free_consistent.cocci: Adjust commit log of generated patch

Quoted 10 lines · Fabio Estevam
Quoted 8 lines · Julia Lawall
Quoted 3 lines · Fabio Estevam

The commit log should better describe the action that the patch will do.

In this case we are 'adding' the pci_free_consistent.

Not sure to follow the reasoning. The semantic patch doesn't add anything.

Quoted 6 lines

Right, the semantich patch finds the missing pci_free_consistent, but the generated patch is not finding pci_free_consistent. It is actually adding the missing pci_free_consistent instead.

So in the commit log of the generated patch, we should better use 'add' instead of 'find'.

Ok, I understood it new. It is really just detecting the missing free calls.

Please discard these two patches.

#5 lore raw

PATCH 1/2 coccinelle: clk_put.cocci: Adjust commit log of generated patch

In reply to Fabio Estevam
Quoted 3 lines · Fabio Estevam

The commit log should better describe the action that the patch will do.

In this case we are 'adding' the missing clk_put.

Here too, the semantic patch doesn't add anything.

julia

Quoted 19 lines
---
 scripts/coccinelle/free/clk_put.cocci | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/coccinelle/free/clk_put.cocci +1 -2
index 46747ad..492b3b0 100644
@@ -1,4 +1,4 @@
-/// Find missing clk_puts.
+/// Add missing clk_put.
 ///
 //# This only signals a missing clk_put when there is a clk_put later
 //# in the same function.
--

1.9.1