[PATCH 0/8] some string cleanup, and a tweak of the "config" command

Rasmus Villemoes rv at rasmusvillemoes.dk
Wed Jul 1 19:15:27 CEST 2026


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



More information about the U-Boot mailing list