s390/string: use generic strrchr
authorHeiko Carstens <hca@linux.ibm.com>
Thu, 21 Oct 2021 11:40:32 +0000 (13:40 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 26 Oct 2021 13:21:30 +0000 (15:21 +0200)
commiteec013bbf66fd17fc5671de6744913cb68036a00
treec7a3bd600562d91b4735baeb4b3a9b7a45640cdf
parent132c1e74aa7f8f9d33552645d2c35d3d8f9f0cf1
s390/string: use generic strrchr

Use generic strrchr instead of an optimized architecture specific
variant. Performance of strrchr is not relevant for real life
workloads, since the only user which may call this more frequently
would be kbasename().

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/lkml/CAHk-=whoe211F8ND-9hZvfnib0UA4gga8DZJ+YaBZNbE4fubdg@mail.gmail.com/
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/string.h
arch/s390/lib/string.c