diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2007-10-30 21:44:00 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-30 21:44:00 -0700 |
commit | 97ef1bb0c8e371b7988287f38bd107c4aa14d78d (patch) | |
tree | ecf658ca568ae33536578ed3bb48eae2a813eb23 /include/linux/string.h | |
parent | f3baa4827a4b13905dbbdddf15463541bd671dfd (diff) | |
download | linux-exynos-97ef1bb0c8e371b7988287f38bd107c4aa14d78d.tar.gz linux-exynos-97ef1bb0c8e371b7988287f38bd107c4aa14d78d.tar.bz2 linux-exynos-97ef1bb0c8e371b7988287f38bd107c4aa14d78d.zip |
[TIPC]: Fix headercheck wrt. tipc_config.h
It wants string functions like memcpy() for inline
routines, and these define userland interfaces.
The only clean way to deal with this is to simply
put linux/string.h into unifdef-y and have it
include <string.h> when not-__KERNEL__.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/string.h')
-rw-r--r-- | include/linux/string.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/include/linux/string.h b/include/linux/string.h index 836062b7582a..c5d3fcad7b57 100644 --- a/include/linux/string.h +++ b/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 <string.h> +#else #include <linux/compiler.h> /* for inline */ #include <linux/types.h> /* for size_t */ #include <linux/stddef.h> /* 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_ */ |