Commit c3a5ce04 authored by WANG Cong's avatar WANG Cong Committed by Linus Torvalds
Browse files

string: do not export memweight() to userspace

Fix the following warning:

  usr/include/linux/string.h:8: userspace cannot reference function or variable defined in the kernel

Signed-off-by: default avatarWANG Cong <>
Acked-by: default avatarAkinobu Mita <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent d46f3d86
......@@ -144,8 +144,8 @@ static inline bool strstarts(const char *str, const char *prefix)
return strncmp(str, prefix, strlen(prefix)) == 0;
extern size_t memweight(const void *ptr, size_t bytes);
#endif /* __KERNEL__ */
#endif /* _LINUX_STRING_H_ */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment