[PATCH 5/8] string: remove more pointless __HAVE_ARCH_STR*

Simon Glass sjg at chromium.org
Thu Jul 2 10:30:06 CEST 2026


On 2026-07-01T17:15:27, Rasmus Villemoes <rv at rasmusvillemoes.dk> wrote:
> string: remove more pointless __HAVE_ARCH_STR*
>
> None of these six macros are defined by any architecture. Moreover,
> the ifndef guard only exists in either string.h or string.c, making them
> completely pointless.
>
> I'm not sure whether we have an explicit coding style discouraging the
> 'extern' qualifier on function declarations, and string.h has a random
> mix of everything, but I can't leave it on strncasecmp() now that it
> will be immediately after strcasecmp() which doesn't have it.
>
> Signed-off-by: Rasmus Villemoes <rv at rasmusvillemoes.dk>
>
> include/linux/string.h | 6 +-----
>  lib/string.c           | 8 --------
>  2 files changed, 1 insertion(+), 13 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list