diff --git a/[refs] b/[refs] index 4a76ab603575..d7ae4688ec7c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f3baa4827a4b13905dbbdddf15463541bd671dfd +refs/heads/master: 97ef1bb0c8e371b7988287f38bd107c4aa14d78d diff --git a/trunk/include/linux/Kbuild b/trunk/include/linux/Kbuild index bd33c22315c1..37bfa19d8064 100644 --- a/trunk/include/linux/Kbuild +++ b/trunk/include/linux/Kbuild @@ -326,6 +326,7 @@ unifdef-y += sonypi.h unifdef-y += soundcard.h unifdef-y += stat.h unifdef-y += stddef.h +unifdef-y += string.h unifdef-y += synclink.h unifdef-y += sysctl.h unifdef-y += tcp.h diff --git a/trunk/include/linux/string.h b/trunk/include/linux/string.h index 836062b7582a..c5d3fcad7b57 100644 --- a/trunk/include/linux/string.h +++ b/trunk/include/linux/string.h @@ -3,16 +3,14 @@ /* We don't want strings.h stuff being user by user stuff by accident */ -#ifdef __KERNEL__ +#ifndef __KERNEL__ +#include +#else #include /* for inline */ #include /* for size_t */ #include /* for NULL */ -#ifdef __cplusplus -extern "C" { -#endif - extern char *strndup_user(const char __user *, long); /* @@ -111,9 +109,5 @@ extern void *kmemdup(const void *src, size_t len, gfp_t gfp); extern char **argv_split(gfp_t gfp, const char *str, int *argcp); extern void argv_free(char **argv); -#ifdef __cplusplus -} -#endif - #endif #endif /* _LINUX_STRING_H_ */