summaryrefslogtreecommitdiffstats
path: root/arch/x86/boot
diff options
context:
space:
mode:
authorTommy Nguyen <remyabel@gmail.com>2017-06-23 10:36:01 -0400
committerIngo Molnar <mingo@kernel.org>2017-06-24 08:53:33 +0200
commit6ec829a9d1c8562ac15c50402e5de550bb28161e (patch)
treeaaafda7c08414872835f76f4ff729fa931e803cc /arch/x86/boot
parent94a6df251dd08c6436ebd6d10c68f03659148ce1 (diff)
downloadblackbird-obmc-linux-6ec829a9d1c8562ac15c50402e5de550bb28161e.tar.gz
blackbird-obmc-linux-6ec829a9d1c8562ac15c50402e5de550bb28161e.zip
x86/boot: Add missing strchr() declaration
The Sparse static analyzer emits this warning: symbol 'strchr' was not declared. Should it be static? This patch adds the appropriate extern declaration to string.h to fix the warning. Signed-off-by: Tommy Nguyen <remyabel@gmail.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/20170623143601.GA20743@NoChina Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/boot')
-rw-r--r--arch/x86/boot/string.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/boot/string.h b/arch/x86/boot/string.h
index 113588ddb43f..f274a50db5fa 100644
--- a/arch/x86/boot/string.h
+++ b/arch/x86/boot/string.h
@@ -22,6 +22,7 @@ extern int strcmp(const char *str1, const char *str2);
extern int strncmp(const char *cs, const char *ct, size_t count);
extern size_t strlen(const char *s);
extern char *strstr(const char *s1, const char *s2);
+extern char *strchr(const char *s, int c);
extern size_t strnlen(const char *s, size_t maxlen);
extern unsigned int atou(const char *s);
extern unsigned long long simple_strtoull(const char *cp, char **endp,
OpenPOWER on IntegriCloud