[PATCH 1/8] sh: clean up asm/string.h
Simon Glass
sjg at chromium.org
Thu Jul 2 10:29:58 CEST 2026
On 2026-07-01T17:15:27, Rasmus Villemoes <rv at rasmusvillemoes.dk> wrote:
> sh: clean up asm/string.h
>
> First, remove the !__KERNEL__ block, since U-Boot is always compiled
> with -D__KERNEL__.
>
> Second, remove the mention of the non-existing file
> arch/sh/lib/strcasecmp.c and the redundant declaration of strcasecmp()
> If sh did have a strcasecmp.c file, presumably the header would have
> had to #define __HAVE_ARCH_STRCASECMP.
>
> Third, remove the explicit #undefs of various __HAVE_ARCH_* and
> redundant declarations of standard functions, which are anyway
> declared in linux/string.h. In the linux source tree, those are all
> #defines, and indeed linux does have asm implementations of those functions.
>
> Signed-off-by: Rasmus Villemoes <rv at rasmusvillemoes.dk>
>
> arch/sh/include/asm/string.h | 51 --------------------------------------------
> 1 file changed, 51 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list