* [PATCH 2/2 v2] coccinelle: ifnullfree: handle various destroy functions
@ 2015-10-26 21:28 ` Julia Lawall
0 siblings, 0 replies; 6+ messages in thread
From: Julia Lawall @ 2015-10-26 21:28 UTC (permalink / raw)
To: Julia Lawall
Cc: kernel-janitors, Gilles Muller, Nicolas Palix, Michal Marek,
cocci, linux-kernel, Sergey Senozhatsky, Fabian Frederick
Extend ifnullfree to the various destroy functions that were recently
extended to tolerate NULL arguments.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
v2: better subject
scripts/coccinelle/free/ifnullfree.cocci | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/scripts/coccinelle/free/ifnullfree.cocci b/scripts/coccinelle/free/ifnullfree.cocci
index d4a072d..52bd235 100644
--- a/scripts/coccinelle/free/ifnullfree.cocci
+++ b/scripts/coccinelle/free/ifnullfree.cocci
@@ -25,6 +25,12 @@ expression E;
debugfs_remove_recursive(E);
|
usb_free_urb(E);
+|
+ kmem_cache_destroy(E);
+|
+ mempool_destroy(E);
+|
+ dma_pool_destroy(E);
)
@r depends on context || report || org @
@@ -33,7 +39,9 @@ position p;
@@
* if (E != NULL)
-* \(kfree@p\|debugfs_remove@p\|debugfs_remove_recursive@p\|usb_free_urb@p\)(E);
+* \(kfree@p\|debugfs_remove@p\|debugfs_remove_recursive@p\|
+* usb_free_urb@p\|kmem_cache_destroy@p\|mempool_destroy@p\|
+* dma_pool_destroy@p\)(E);
@script:python depends on org@
p << r.p;
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2 v2] coccinelle: ifnullfree: handle various destroy functions
@ 2015-10-26 21:28 ` Julia Lawall
0 siblings, 0 replies; 6+ messages in thread
From: Julia Lawall @ 2015-10-26 21:28 UTC (permalink / raw)
To: cocci
Extend ifnullfree to the various destroy functions that were recently
extended to tolerate NULL arguments.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
v2: better subject
scripts/coccinelle/free/ifnullfree.cocci | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/scripts/coccinelle/free/ifnullfree.cocci b/scripts/coccinelle/free/ifnullfree.cocci
index d4a072d..52bd235 100644
--- a/scripts/coccinelle/free/ifnullfree.cocci
+++ b/scripts/coccinelle/free/ifnullfree.cocci
@@ -25,6 +25,12 @@ expression E;
debugfs_remove_recursive(E);
|
usb_free_urb(E);
+|
+ kmem_cache_destroy(E);
+|
+ mempool_destroy(E);
+|
+ dma_pool_destroy(E);
)
@r depends on context || report || org @
@@ -33,7 +39,9 @@ position p;
@@
* if (E != NULL)
-* \(kfree@p\|debugfs_remove@p\|debugfs_remove_recursive@p\|usb_free_urb@p\)(E);
+* \(kfree@p\|debugfs_remove@p\|debugfs_remove_recursive@p\|
+* usb_free_urb@p\|kmem_cache_destroy@p\|mempool_destroy@p\|
+* dma_pool_destroy@p\)(E);
@script:python depends on org@
p << r.p;
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Cocci] [PATCH 2/2 v2] coccinelle: ifnullfree: handle various destroy functions
@ 2015-10-26 21:28 ` Julia Lawall
0 siblings, 0 replies; 6+ messages in thread
From: Julia Lawall @ 2015-10-26 21:28 UTC (permalink / raw)
To: cocci
Extend ifnullfree to the various destroy functions that were recently
extended to tolerate NULL arguments.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
v2: better subject
scripts/coccinelle/free/ifnullfree.cocci | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/scripts/coccinelle/free/ifnullfree.cocci b/scripts/coccinelle/free/ifnullfree.cocci
index d4a072d..52bd235 100644
--- a/scripts/coccinelle/free/ifnullfree.cocci
+++ b/scripts/coccinelle/free/ifnullfree.cocci
@@ -25,6 +25,12 @@ expression E;
debugfs_remove_recursive(E);
|
usb_free_urb(E);
+|
+ kmem_cache_destroy(E);
+|
+ mempool_destroy(E);
+|
+ dma_pool_destroy(E);
)
@r depends on context || report || org @
@@ -33,7 +39,9 @@ position p;
@@
* if (E != NULL)
-* \(kfree at p\|debugfs_remove at p\|debugfs_remove_recursive at p\|usb_free_urb at p\)(E);
+* \(kfree at p\|debugfs_remove at p\|debugfs_remove_recursive at p\|
+* usb_free_urb at p\|kmem_cache_destroy at p\|mempool_destroy at p\|
+* dma_pool_destroy at p\)(E);
@script:python depends on org@
p << r.p;
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2 v2] coccinelle: ifnullfree: handle various destroy functions
2015-10-26 21:28 ` Julia Lawall
(?)
@ 2015-10-26 21:41 ` Michal Marek
-1 siblings, 0 replies; 6+ messages in thread
From: Michal Marek @ 2015-10-26 21:41 UTC (permalink / raw)
To: Julia Lawall
Cc: kernel-janitors, Gilles Muller, Nicolas Palix, cocci,
linux-kernel, Sergey Senozhatsky, Fabian Frederick
Dne 26.10.2015 v 22:28 Julia Lawall napsal(a):
> Extend ifnullfree to the various destroy functions that were recently
> extended to tolerate NULL arguments.
>
> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Applied both to kbuild.git#misc, thanks.
Michal
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2 v2] coccinelle: ifnullfree: handle various destroy functions
@ 2015-10-26 21:41 ` Michal Marek
0 siblings, 0 replies; 6+ messages in thread
From: Michal Marek @ 2015-10-26 21:41 UTC (permalink / raw)
To: cocci
Dne 26.10.2015 v 22:28 Julia Lawall napsal(a):
> Extend ifnullfree to the various destroy functions that were recently
> extended to tolerate NULL arguments.
>
> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Applied both to kbuild.git#misc, thanks.
Michal
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Cocci] [PATCH 2/2 v2] coccinelle: ifnullfree: handle various destroy functions
@ 2015-10-26 21:41 ` Michal Marek
0 siblings, 0 replies; 6+ messages in thread
From: Michal Marek @ 2015-10-26 21:41 UTC (permalink / raw)
To: cocci
Dne 26.10.2015 v 22:28 Julia Lawall napsal(a):
> Extend ifnullfree to the various destroy functions that were recently
> extended to tolerate NULL arguments.
>
> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Applied both to kbuild.git#misc, thanks.
Michal
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-10-26 21:41 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-26 21:28 [PATCH 2/2 v2] coccinelle: ifnullfree: handle various destroy functions Julia Lawall
2015-10-26 21:28 ` [Cocci] " Julia Lawall
2015-10-26 21:28 ` Julia Lawall
2015-10-26 21:41 ` Michal Marek
2015-10-26 21:41 ` [Cocci] " Michal Marek
2015-10-26 21:41 ` Michal Marek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.