projects
/
profile
/
common
/
kernel-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4e4ab8
)
x86, boot: Fix warning due to undeclared strlen()
author
Fred Chen
<fchen@linux.vnet.ibm.com>
Tue, 13 Aug 2013 18:13:00 +0000
(11:13 -0700)
committer
H. Peter Anvin
<hpa@linux.intel.com>
Tue, 13 Aug 2013 18:27:39 +0000
(11:27 -0700)
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>
arch/x86/boot/boot.h
patch
|
blob
|
history
diff --git
a/arch/x86/boot/boot.h
b/arch/x86/boot/boot.h
index
5b75319
..
ef72bae
100644
(file)
--- 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);
size_t strnlen(const char *s, size_t maxlen);
unsigned int atou(const char *s);
unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base);
+size_t strlen(const char *s);
/* tty.c */
void puts(const char *);