summaryrefslogtreecommitdiff
path: root/arch/powerpc/boot/string.h
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2018-03-01 17:57:40 +0300
committerRob Herring <robh@kernel.org>2018-03-06 05:58:17 +0300
commita54b81ea242309a098162c3284ed964074bee72a (patch)
treec80649e8b803d52da63ceae47141d48f6123ce93 /arch/powerpc/boot/string.h
parentfdfb69a72522e97f9105a6d39a5be0a465951ed8 (diff)
downloadlinux-a54b81ea242309a098162c3284ed964074bee72a.tar.xz
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>
Diffstat (limited to 'arch/powerpc/boot/string.h')
-rw-r--r--arch/powerpc/boot/string.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/boot/string.h b/arch/powerpc/boot/string.h
index 3fb71171da49..8c2ec0c05e4e 100644
--- a/arch/powerpc/boot/string.h
+++ b/arch/powerpc/boot/string.h
@@ -7,6 +7,7 @@ extern char *strcpy(char *dest, const char *src);
extern char *strncpy(char *dest, const char *src, size_t n);
extern char *strcat(char *dest, const char *src);
extern char *strchr(const char *s, int c);
+extern char *strrchr(const char *s, int c);
extern int strcmp(const char *s1, const char *s2);
extern int strncmp(const char *s1, const char *s2, size_t n);
extern size_t strlen(const char *s);