diff options
author | Fred Chen <fchen@linux.vnet.ibm.com> | 2013-08-13 14:13:00 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2013-08-13 14:27:39 -0400 |
commit | 062fe8fe511e7f771ef1dc824eaf996ba50a694b (patch) | |
tree | 2e5ed833097cb1c10ef67b8307fe5fa375285cf2 /arch/x86/boot | |
parent | d4e4ab86bcba5a72779c43dc1459f71fea3d89c8 (diff) |
x86, boot: Fix warning due to undeclared strlen()
Below is a patch that fixes sparse error
"arch/x86/boot/string.c:119:8: warning: symbol 'strlen' was not
declared." by declaring it in arch/x86/boot/boot.h.
Signed-off-by: Fred Chen <fchen@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/1376417580-11554-1-git-send-email-fchen@linux.vnet.ibm.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/boot')
-rw-r--r-- | arch/x86/boot/boot.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/boot/boot.h b/arch/x86/boot/boot.h index 5b7531966b84..ef72baeff484 100644 --- a/arch/x86/boot/boot.h +++ b/arch/x86/boot/boot.h | |||
@@ -355,6 +355,7 @@ int strncmp(const char *cs, const char *ct, size_t count); | |||
355 | size_t strnlen(const char *s, size_t maxlen); | 355 | size_t strnlen(const char *s, size_t maxlen); |
356 | unsigned int atou(const char *s); | 356 | unsigned int atou(const char *s); |
357 | unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base); | 357 | unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base); |
358 | size_t strlen(const char *s); | ||
358 | 359 | ||
359 | /* tty.c */ | 360 | /* tty.c */ |
360 | void puts(const char *); | 361 | void puts(const char *); |