From: WANG Cong Date: Tue, 21 Aug 2012 23:16:00 +0000 (-0700) Subject: string: do not export memweight() to userspace X-Git-Tag: upstream/snapshot3+hdmi~6790^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c3a5ce0416b6c172a23bc8a3760d8704d3d1535b;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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: WANG Cong Acked-by: Akinobu Mita Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/string.h b/include/linux/string.h index ffe0442..b917881 100644 --- 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_ */