OSDN Git Service

sparc: revive __HAVE_ARCH_STRLEN for 32bit sparc
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 11 Mar 2020 22:37:24 +0000 (07:37 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 25 Mar 2020 01:19:43 +0000 (10:19 +0900)
commit51e406417950d9a614ddbb1d7769ea210b8717b0
tree9d2c898d4e8ebd5edc6af4755f9689dcfc0d33c4
parentaefd80307a05e529b3bcd28f96a7b49528697f60
sparc: revive __HAVE_ARCH_STRLEN for 32bit sparc

Prior to commit 70a6fcf3283a ("[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: 70a6fcf3283a ("[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>
arch/sparc/include/asm/string.h
arch/sparc/include/asm/string_64.h