]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5d000ee2487b99e2763b8f80b6086709a5f2e2ed
treec80649e8b803d52da63ceae47141d48f6123ce93
parent43f71fcc5409abdefd82523f348214f4c829fb44
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