linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/3] lib/string_helpers et al.: Change return value of strreplace()
@ 2023-03-22 14:12 Andy Shevchenko
  2023-03-22 14:12 ` [PATCH v1 1/3] jbd2: Avoid printing out the boundary Andy Shevchenko
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Andy Shevchenko @ 2023-03-22 14:12 UTC (permalink / raw)
  To: Kees Cook, Greg Kroah-Hartman, Andy Shevchenko, Cezary Rojewski,
	linux-ext4, linux-kernel
  Cc: Theodore Ts'o, Jan Kara, Andy Shevchenko, Rafael J. Wysocki

It's more convenient to have strreplace() to return the original
pointer. This will help users to make their code better.

The patch 1 kills the only user of the returned value of strreplace(),
Patch 2 converts the return value of strreplace(). And patch 3 shows
how it may be useful.That said, the series can be routed via fs tree,
with or without the last patch.

Andy Shevchenko (3):
  jbd2: Avoid printing out the boundary
  lib/string_helpers: Change returned value of the strreplace()
  kobject: Use return value of strreplace()

 fs/jbd2/journal.c      |  5 ++---
 include/linux/string.h |  2 +-
 lib/kobject.c          |  3 +--
 lib/string_helpers.c   | 10 +++++++---
 4 files changed, 11 insertions(+), 9 deletions(-)

-- 
2.40.0.1.gaa8946217a0b


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

end of thread, other threads:[~2023-03-23 22:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-22 14:12 [PATCH v1 0/3] lib/string_helpers et al.: Change return value of strreplace() Andy Shevchenko
2023-03-22 14:12 ` [PATCH v1 1/3] jbd2: Avoid printing out the boundary Andy Shevchenko
2023-03-22 16:45   ` kernel test robot
2023-03-23  9:53   ` Jan Kara
2023-03-23 12:27     ` Andy Shevchenko
2023-03-22 14:12 ` [PATCH v1 2/3] lib/string_helpers: Change returned value of the strreplace() Andy Shevchenko
2023-03-22 16:51   ` Kees Cook
2023-03-23 12:26     ` Andy Shevchenko
2023-03-23 22:23     ` David Laight
2023-03-22 14:12 ` [PATCH v1 3/3] kobject: Use return value of strreplace() Andy Shevchenko

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