linux/arch/sparc/include/asm/string_64.h
Masahiro Yamada 51e4064179 sparc: revive __HAVE_ARCH_STRLEN for 32bit sparc
Prior to commit 70a6fcf328 ("[sparc] unify 32bit and 64bit string.h"),
__HAVE_ARCH_STRLEN was defined in both of string_32.h and string_64.h

It did not unify __HAVE_ARCH_STRLEN, but deleted it from string_32.h

This issue was reported by the kbuild test robot in the trial of
forcible linking of $(lib-y) to vmlinux.

Fixes: 70a6fcf328 ("[sparc] unify 32bit and 64bit string.h")
Reported-by: kbuild test robot <lkp@intel.com>
Suggested-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Acked-by: David S. Miller <davem@davemloft.net>
2020-03-25 10:19:43 +09:00

16 lines
409 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* string.h: External definitions for optimized assembly string
* routines for the Linux Kernel.
*
* Copyright (C) 1995,1996 David S. Miller (davem@caip.rutgers.edu)
* Copyright (C) 1996,1997,1999 Jakub Jelinek (jakub@redhat.com)
*/
#ifndef __SPARC64_STRING_H__
#define __SPARC64_STRING_H__
#include <asm/asi.h>
#endif /* !(__SPARC64_STRING_H__) */