diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/bug.h | 1 | ||||
-rw-r--r-- | include/linux/prefetch.h | 3 | ||||
-rw-r--r-- | include/linux/string.h | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/bug.h b/include/linux/bug.h index 957d4087..1a10f7e6 100644 --- a/include/linux/bug.h +++ b/include/linux/bug.h @@ -2,6 +2,7 @@ #define __TOOLS_LINUX_BUG_H #include <assert.h> +#include <stdio.h> #include <linux/compiler.h> #ifdef CONFIG_VALGRIND diff --git a/include/linux/prefetch.h b/include/linux/prefetch.h index 13cb826d..b14fbe93 100644 --- a/include/linux/prefetch.h +++ b/include/linux/prefetch.h @@ -4,4 +4,7 @@ #define prefetch(p) \ ({ __maybe_unused typeof(p) __var = (p); }) +#define prefetchw(p) \ + ({ __maybe_unused typeof(p) __var = (p); }) + #endif /* _LINUX_PREFETCH_H */ diff --git a/include/linux/string.h b/include/linux/string.h index b5e00a09..3ceda3a3 100644 --- a/include/linux/string.h +++ b/include/linux/string.h @@ -6,6 +6,7 @@ #include <linux/types.h> /* for size_t */ extern size_t strlcpy(char *dest, const char *src, size_t size); +extern ssize_t strscpy(char *dest, const char *src, size_t count); extern char *strim(char *); extern void memzero_explicit(void *, size_t); int match_string(const char * const *, size_t, const char *); |