diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2021-09-17 13:03:16 +0300 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2021-10-11 05:16:02 +0300 |
commit | 4ee1b4cac236650979a5d9b745bb0a83efde3a46 (patch) | |
tree | fa905698629063da74e5b1c8f9abe7b7b16fded3 /tools/bootconfig/include/linux/string.h | |
parent | 4f292c4886bfdfc2a7191ef4ff3f7aac69d1cc3f (diff) | |
download | linux-4ee1b4cac236650979a5d9b745bb0a83efde3a46.tar.xz |
bootconfig: Cleanup dummy headers in tools/bootconfig
Cleanup dummy headers in tools/bootconfig/include except
for tools/bootconfig/include/linux/bootconfig.h.
For this change, I use __KERNEL__ macro to split kernel
header #include and introduce xbc_alloc_mem() and
xbc_free_mem().
Link: https://lkml.kernel.org/r/163187299574.2366983.18371329724128746091.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'tools/bootconfig/include/linux/string.h')
-rw-r--r-- | tools/bootconfig/include/linux/string.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/tools/bootconfig/include/linux/string.h b/tools/bootconfig/include/linux/string.h deleted file mode 100644 index 8267af75153a..000000000000 --- a/tools/bootconfig/include/linux/string.h +++ /dev/null @@ -1,32 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef _SKC_LINUX_STRING_H -#define _SKC_LINUX_STRING_H - -#include <string.h> - -/* Copied from lib/string.c */ -static inline char *skip_spaces(const char *str) -{ - while (isspace(*str)) - ++str; - return (char *)str; -} - -static inline char *strim(char *s) -{ - size_t size; - char *end; - - size = strlen(s); - if (!size) - return s; - - end = s + size - 1; - while (end >= s && isspace(*end)) - end--; - *(end + 1) = '\0'; - - return skip_spaces(s); -} - -#endif |