coccinelle: clk_put.cocci: Adjust commit log of generated patch
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
@@ -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
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
@@ -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
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
Signed-off-by Fabio Estevam <[email protected]>--- scripts/coccinelle/free/pci_free_consistent.cocci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/coccinelle/free/pci_free_consistent.cocci +1
-2@@ -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
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
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 findingpci_free_consistent. It is actually adding the missingpci_free_consistentinstead.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.
PATCH 1/2 coccinelle: clk_put.cocci: Adjust commit log of generated patch
In reply to Fabio EstevamQuoted 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
Signed-off-by Fabio Estevam <[email protected]>--- scripts/coccinelle/free/clk_put.cocci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/coccinelle/free/clk_put.cocci +1
-2@@ -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