Commit a720c064 authored by Yann Droneaud's avatar Yann Droneaud Committed by Michal Marek

coccinelle: recognize more devm_* memory allocation functions

Updates free/devm_free.cocci to recognize functions added by:

- commit 64c862a8 ('devres: add kernel standard devm_k.alloc functions')
- commit e31108ca ('devres: introduce API "devm_kstrdup"')
- commit 3046365b ('devres: introduce API "devm_kmemdup')
- commit 43339bed ('devres: Add devm_get_free_pages API')
- commit 75f2a4ea ('devres: Add devm_kasprintf and devm_kvasprintf API')

See also Documentation/driver-model/devres.txt

Cc: Joe Perches <joe@perches.com>
Cc: Manish Badarkhe <badarkhe.manish@gmail.com>
Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: Eli Billauer <eli.billauer@gmail.com>
Cc: Himangi Saraogi <himangi774@gmail.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Wolfram Sang <w.sang@pengutronix.de>
Cc: Daniel Thompson <daniel.thompson@linaro.org>
Acked-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarYann Droneaud <ydroneaud@opteya.com>
Signed-off-by: default avatarMichal Marek <mmarek@suse.com>
parent 6dd9379e
...@@ -29,7 +29,23 @@ expression x; ...@@ -29,7 +29,23 @@ expression x;
@@ @@
( (
x = devm_kmalloc(...)
|
x = devm_kvasprintf(...)
|
x = devm_kasprintf(...)
|
x = devm_kzalloc(...) x = devm_kzalloc(...)
|
x = devm_kmalloc_array(...)
|
x = devm_kcalloc(...)
|
x = devm_kstrdup(...)
|
x = devm_kmemdup(...)
|
x = devm_get_free_pages(...)
| |
x = devm_request_irq(...) x = devm_request_irq(...)
| |
...@@ -50,6 +66,10 @@ position p; ...@@ -50,6 +66,10 @@ position p;
| |
* kzfree@p(x) * kzfree@p(x)
| |
* free_pages@p(x, ...)
|
* free_page@p(x)
|
* free_irq@p(x) * free_irq@p(x)
| |
* iounmap@p(x) * iounmap@p(x)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment