Skip to content

devres: provide and use devm_kstrdup_const()

Bartosz Golaszewski lkml 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest posting 2/24 patches 5 repliesIn review
  2. v6 posting 1/24 patches 2 repliesSuperseded
  3. v54 patches 4 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v44 patches3 repliesSuperseded
v34 patches12 repliesSuperseded
v24 patches7 repliesSuperseded
v12 patches10 repliesSuperseded

Changes in v6 from the cover letter

- fixed the commit message in patch 2/4 (s/devm_kfree_const/devm_kfree/)
- collected even more tags

Patches in v6 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4devres: constify p in devm_kfree()drivers/base/devres.c include/linux/device.h+4 -30 replies
2/4mm: move is_kernel_rodata() to asm-generic/sections.hinclude/asm-generic/sections.h mm/util.c+14 -72 replies
3/4devres: provide devm_kstrdup_const()drivers/base/devres.c include/linux/device.h+33 -01 reply
4/4mailbox: tegra-hsp: use devm_kstrdup_const()drivers/mailbox/tegra-hsp.c+9 -320 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchBjorn AnderssonGeert UytterhoevenRasmus VillemoesAndy ShevchenkoMike Rapoport
1/4R-b R-b A-b R-b
2/4R-b R-b A-b R-b A-b
3/4R-b R-b A-b R-b A-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v6 thread

Cover letter [RESEND PATCH v6 0/4] devres: provide and use devm_kstrdup_const()

Hi Greg,

this has been reviewed a lot and three first patches can be picked up. Please take it through your tree.

This series implements devm_kstrdup_const() together with some prerequisite changes and uses it in tegra-hsp 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

v2 -> v3:
- rebased on top of 4.19-rc5 as there were some conflicts in the pmc-atom driver
- collected Reviewed-by tags

v3 -> v4:
- Andy NAK'ed patch 4/4 so I added a different example
- collected more tags

v4 -> v5:
- instead of providing devm_kfree_const(), make devm_kfree() check if given pointer is not in .rodata and act accordingly

v5 -> v6:
- fixed the commit message in patch 2/4 (s/devm_kfree_const/devm_kfree/)
- collected even more tags

Bartosz Golaszewski (4):
devres: constify p in devm_kfree()
mm: move is_kernel_rodata() to asm-generic/sections.h
devres: provide devm_kstrdup_const()
mailbox: tegra-hsp: use devm_kstrdup_const()

 drivers/base/devres.c          | 36 +++++++++++++++++++++++++++--
 drivers/mailbox/tegra-hsp.c    | 41 ++++++++--------------------------
 include/asm-generic/sections.h | 14 ++++++++++++
 include/linux/device.h         |  4 +++-
 mm/util.c                      |  7 ------
 5 files changed, 60 insertions(+), 42 deletions(-)
Signature · 1 line
2.19.1