]> git.karo-electronics.de Git - karo-tx-linux.git/commit
devres: Improve devm_kasprintf()/kvasprintf() support
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 20 Aug 2014 13:26:35 +0000 (15:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 06:32:50 +0000 (23:32 -0700)
commitbef59c5024be687ef4f228915af9961307a779ab
tree9ca8c7108389038f9f2a8369673371d360b3b315
parent54270354b518952da934ee1c7e13ed1c9654fd22
devres: Improve devm_kasprintf()/kvasprintf() support

  - Add devm_kasprintf()/kvasprintf(), introduced by commit
    75f2a4ead5d5890ada9c2663a70fb58613c0d9f2 ("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 <geert+renesas@glider.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/driver-model/devres.txt
drivers/base/devres.c
include/linux/device.h