OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
string: do not export memweight() to userspace
[uclinux-h8/linux.git]
/
include
/
linux
/
string.h
diff --git
a/include/linux/string.h
b/include/linux/string.h
index
ffe0442
..
b917881
100644
(file)
--- a/
include/linux/string.h
+++ b/
include/linux/string.h
@@
-144,8
+144,8
@@
static inline bool strstarts(const char *str, const char *prefix)
{
return strncmp(str, prefix, strlen(prefix)) == 0;
}
-#endif
extern size_t memweight(const void *ptr, size_t bytes);
+#endif /* __KERNEL__ */
#endif /* _LINUX_STRING_H_ */