Re: [PATCH v2 0/4] devres: provide and use devm_kstrdup_const()

From: Bartosz Golaszewski
Date: Thu Sep 20 2018 - 08:59:58 EST


2018-08-28 11:33 GMT+02:00 Bartosz Golaszewski <brgl@xxxxxxxx>:
> This series implements devm_kstrdup_const() together with some
> prerequisite changes and uses it in pmc-atom driver.
>
> v1 -> v2:
> - fixed the changelog in the patch implementing devm_kstrdup_const()
> - fixed the kernel doc
> - moved is_kernel_rodata() to asm-generic/sections.h
> - fixed constness
>
> Bartosz Golaszewski (4):
> devres: constify p in devm_kfree()
> mm: move is_kernel_rodata() to asm-generic/sections.h
> devres: provide devm_kstrdup_const()
> clk: pmc-atom: use devm_kstrdup_const()
>
> drivers/base/devres.c | 43 ++++++++++++++++++++++++++++++++--
> drivers/clk/x86/clk-pmc-atom.c | 19 ++++-----------
> include/asm-generic/sections.h | 14 +++++++++++
> include/linux/device.h | 5 +++-
> mm/util.c | 7 ------
> 5 files changed, 63 insertions(+), 25 deletions(-)
>
> --
> 2.18.0
>

If there are no objections - can this be picked up for 4.20?

Thanks,
Bartosz