mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
coccinelle: recognize more devm_* memory allocation functions
Updates free/devm_free.cocci to recognize functions added by: - commit64c862a839('devres: add kernel standard devm_k.alloc functions') - commite31108cad3('devres: introduce API "devm_kstrdup"') - commit3046365bb4('devres: introduce API "devm_kmemdup') - commit43339bed70('devres: Add devm_get_free_pages API') - commit75f2a4ead5('devres: Add devm_kasprintf and devm_kvasprintf API') See also Documentation/driver-model/devres.txt Cc: Joe Perches <[email protected]> Cc: Manish Badarkhe <[email protected]> Cc: Srinivas Pandruvada <[email protected]> Cc: Eli Billauer <[email protected]> Cc: Himangi Saraogi <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Cc: Wolfram Sang <[email protected]> Cc: Daniel Thompson <[email protected]> Acked-by: Julia Lawall <[email protected]> Signed-off-by: Yann Droneaud <[email protected]> Signed-off-by: Michal Marek <[email protected]>
This commit is contained in:
parent
6dd9379e8f
commit
a720c0644d
1 changed files with 20 additions and 0 deletions
|
|
@ -29,7 +29,23 @@ expression x;
|
|||
@@
|
||||
|
||||
(
|
||||
x = devm_kmalloc(...)
|
||||
|
|
||||
x = devm_kvasprintf(...)
|
||||
|
|
||||
x = devm_kasprintf(...)
|
||||
|
|
||||
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(...)
|
||||
|
|
||||
|
|
@ -50,6 +66,10 @@ position p;
|
|||
|
|
||||
* kzfree@p(x)
|
||||
|
|
||||
* free_pages@p(x, ...)
|
||||
|
|
||||
* free_page@p(x)
|
||||
|
|
||||
* free_irq@p(x)
|
||||
|
|
||||
* iounmap@p(x)
|
||||
|
|
|
|||
Loading…
Reference in a new issue