linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/4] devres: provide and use devm_kstrdup_const()
@ 2018-09-28  7:14 Bartosz Golaszewski
  2018-09-28  7:14 ` Bartosz Golaszewski
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Bartosz Golaszewski @ 2018-09-28  7:14 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 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

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

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] 18+ messages in thread

end of thread, other threads:[~2018-09-28 13:53 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-28  7:14 [PATCH v5 0/4] devres: provide and use devm_kstrdup_const() Bartosz Golaszewski
2018-09-28  7:14 ` Bartosz Golaszewski
2018-09-28  7:14 ` [PATCH v5 1/4] devres: constify p in devm_kfree() Bartosz Golaszewski
2018-09-28  7:14   ` Bartosz Golaszewski
2018-09-28  7:28   ` Geert Uytterhoeven
2018-09-28  7:28     ` Geert Uytterhoeven
2018-09-28  7:14 ` [PATCH v5 2/4] mm: move is_kernel_rodata() to asm-generic/sections.h Bartosz Golaszewski
2018-09-28  7:14   ` Bartosz Golaszewski
2018-09-28  7:23   ` Rasmus Villemoes
2018-09-28  7:23     ` Rasmus Villemoes
2018-09-28  7:29   ` Geert Uytterhoeven
2018-09-28  7:29     ` Geert Uytterhoeven
2018-09-28  7:14 ` [PATCH v5 3/4] devres: provide devm_kstrdup_const() Bartosz Golaszewski
2018-09-28  7:14   ` Bartosz Golaszewski
2018-09-28  7:30   ` Geert Uytterhoeven
2018-09-28  7:30     ` Geert Uytterhoeven
2018-09-28  7:14 ` [PATCH v5 4/4] mailbox: tegra-hsp: use devm_kstrdup_const() Bartosz Golaszewski
2018-09-28  7:14   ` 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).