mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
devres: Improve devm_kasprintf()/kvasprintf() support
- Add devm_kasprintf()/kvasprintf(), introduced by commit
75f2a4ead5 ("devres: Add
devm_kasprintf and devm_kvasprintf API"), to
Documentation/driver-model/devres.txt,
- Improve kernel doc: the string is not an existing formatted string,
but is formatted into the newly-allocated buffer,
- Add a __printf() annotation to devm_kasprintf(), so the compiler
will verify the format string argument types.
Signed-off-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
54270354b5
commit
bef59c5024
3 changed files with 12 additions and 9 deletions
|
|
@ -293,12 +293,14 @@ MDIO
|
|||
MEM
|
||||
devm_free_pages()
|
||||
devm_get_free_pages()
|
||||
devm_kasprintf()
|
||||
devm_kcalloc()
|
||||
devm_kfree()
|
||||
devm_kmalloc()
|
||||
devm_kmalloc_array()
|
||||
devm_kmemdup()
|
||||
devm_kstrdup()
|
||||
devm_kvasprintf()
|
||||
devm_kzalloc()
|
||||
|
||||
PCI
|
||||
|
|
|
|||
Loading…
Reference in a new issue