powerpc: boot: add strrchr function
authorRob Herring <robh@kernel.org>
Thu, 1 Mar 2018 14:57:40 +0000 (08:57 -0600)
committerRob Herring <robh@kernel.org>
Tue, 6 Mar 2018 02:58:17 +0000 (20:58 -0600)
commita54b81ea242309a098162c3284ed964074bee72a
treec80649e8b803d52da63ceae47141d48f6123ce93
parentfdfb69a72522e97f9105a6d39a5be0a465951ed8
powerpc: boot: add strrchr function

libfdt gained a new dependency on strrchr, so copy the implementation
from lib/string.c. Most of the string functions are in assembly, but
stdio.c already has strnlen, so add strrchr there.

Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Rob Herring <robh@kernel.org>
arch/powerpc/boot/stdio.c
arch/powerpc/boot/string.h