mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
Mirroring the kmalloc -> kmalloc_obj conversion rules, do the same for devm_kmalloc. The device-managed allocators differ only by taking the managing "struct device *" as a leading argument, so capture the leading arguments in an "expression list" metavariable rather than repeating every pattern. Signed-off-by: Kees Cook <[email protected]> Cc: Julia Lawall <[email protected]> Cc: Nicolas Palix <[email protected]> Cc: <[email protected]>