Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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 <xiyou.wangcong@gmail.com>
Acked-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d46f3d86
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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_ */