U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8] some string cleanup, and a tweak of the "config" command
@ 2026-07-01 17:15 Rasmus Villemoes
  2026-07-01 17:15 ` [PATCH 1/8] sh: clean up asm/string.h Rasmus Villemoes
                   ` (7 more replies)
  0 siblings, 8 replies; 21+ messages in thread
From: Rasmus Villemoes @ 2026-07-01 17:15 UTC (permalink / raw)
  To: u-boot; +Cc: Tom Rini, Casey Connolly, Rasmus Villemoes

This started by me wanting something like what the last patch
does. That wasn't too hard, except we had no strcasestr(), and also
our regex engine (which I didn't really want to pull into the mix
anyway) doesn't have a flag that requests case-insensitive
matching. So I wanted to add strcasestr(), but then I stumbled on a
bunch of stuff that should be cleaned up in str-land.

The first five patches are logically independent of each other. The
last three do depend on each other, and the last patch also depends on
patch 2.

Rasmus Villemoes (8):
  sh: clean up asm/string.h
  string: correct prototype of strchrnul()
  string: correct documentation for strstr and strnstr
  string: remove unused strswab() function
  string: remove more pointless __HAVE_ARCH_STR*
  string: add strcasestr()
  test: string: add test of new strcasestr() function
  cmd: config: allow simple filtering of output

 arch/sh/include/asm/string.h | 51 --------------------------
 cmd/config.c                 | 25 +++++++++++--
 include/linux/string.h       | 13 ++-----
 lib/string.c                 | 70 ++++++++++++++++--------------------
 test/lib/string.c            | 24 +++++++++++--
 5 files changed, 76 insertions(+), 107 deletions(-)

-- 
2.54.0


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

end of thread, other threads:[~2026-07-08 19:09 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-01 17:15 [PATCH 0/8] some string cleanup, and a tweak of the "config" command Rasmus Villemoes
2026-07-01 17:15 ` [PATCH 1/8] sh: clean up asm/string.h Rasmus Villemoes
2026-07-02  8:29   ` Simon Glass
2026-07-01 17:15 ` [PATCH 2/8] string: correct prototype of strchrnul() Rasmus Villemoes
2026-07-02  8:30   ` Simon Glass
2026-07-01 17:15 ` [PATCH 3/8] string: correct documentation for strstr and strnstr Rasmus Villemoes
2026-07-02  8:30   ` Simon Glass
2026-07-01 17:15 ` [PATCH 4/8] string: remove unused strswab() function Rasmus Villemoes
2026-07-02  8:30   ` Simon Glass
2026-07-01 17:15 ` [PATCH 5/8] string: remove more pointless __HAVE_ARCH_STR* Rasmus Villemoes
2026-07-02  8:30   ` Simon Glass
2026-07-01 17:15 ` [PATCH 6/8] string: add strcasestr() Rasmus Villemoes
2026-07-02  8:30   ` Simon Glass
2026-07-08 18:40     ` Rasmus Villemoes
2026-07-08 19:09       ` Tom Rini
2026-07-01 17:15 ` [PATCH 7/8] test: string: add test of new strcasestr() function Rasmus Villemoes
2026-07-02  8:30   ` Simon Glass
2026-07-01 17:15 ` [PATCH 8/8] cmd: config: allow simple filtering of output Rasmus Villemoes
2026-07-01 18:15   ` Tom Rini
2026-07-02  8:30   ` Simon Glass
2026-07-08 18:59     ` Rasmus Villemoes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox