Re: [PATCH v2 3/4] devres: provide devm_kstrdup_const()

2018-09-20 Thread Bjorn Andersson
On Tue 28 Aug 02:33 PDT 2018, Bartosz Golaszewski wrote: > Provide a resource managed version of kstrdup_const(). This variant > internally calls devm_kstrdup() on pointers that are outside of > .rodata section and returns the string as is otherwise. > > Also provide a corresponding version of de

[PATCH v2 3/4] devres: provide devm_kstrdup_const()

2018-08-28 Thread Bartosz Golaszewski
Provide a resource managed version of kstrdup_const(). This variant internally calls devm_kstrdup() on pointers that are outside of .rodata section and returns the string as is otherwise. Also provide a corresponding version of devm_kfree(). Signed-off-by: Bartosz Golaszewski --- drivers/base/d