linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 0/4] devres: provide and use devm_kstrdup_const()
@ 2018-09-30 20:26 Bartosz Golaszewski
  2018-09-30 20:26 ` Bartosz Golaszewski
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: Bartosz Golaszewski @ 2018-09-30 20:26 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Rafael J . Wysocki, Jassi Brar,
	Thierry Reding, Jonathan Hunter, Arnd Bergmann, Andy Shevchenko,
	Geert Uytterhoeven, Rasmus Villemoes
  Cc: linux-kernel, linux-tegra, linux-arch, linux-mm, Bartosz Golaszewski

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(-)

-- 
2.18.0

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2018-10-03 15:21 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-30 20:26 [PATCH v6 0/4] devres: provide and use devm_kstrdup_const() Bartosz Golaszewski
2018-09-30 20:26 ` Bartosz Golaszewski
2018-09-30 20:26 ` [PATCH v6 1/4] devres: constify p in devm_kfree() Bartosz Golaszewski
2018-09-30 20:26   ` Bartosz Golaszewski
2018-09-30 20:26 ` [PATCH v6 2/4] mm: move is_kernel_rodata() to asm-generic/sections.h Bartosz Golaszewski
2018-09-30 20:26   ` Bartosz Golaszewski
2018-09-30 20:26 ` [PATCH v6 3/4] devres: provide devm_kstrdup_const() Bartosz Golaszewski
2018-09-30 20:26   ` Bartosz Golaszewski
2018-09-30 20:26 ` [PATCH v6 4/4] mailbox: tegra-hsp: use devm_kstrdup_const() Bartosz Golaszewski
2018-09-30 20:26   ` Bartosz Golaszewski
2018-10-01 16:09 ` [PATCH v6 0/4] devres: provide and " Andy Shevchenko
2018-10-01 16:09   ` Andy Shevchenko
2018-10-03  8:33   ` Bartosz Golaszewski
2018-10-03  8:33     ` Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).