aboutsummaryrefslogtreecommitdiffstats
path: root/tools/include/linux/string.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2019-06-25 21:23:18 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-06-25 21:23:18 -0300
commit7bd330de43fd5693e90be13dac7fbd9af3b6335d (patch)
tree0e3a3029bbb61d14730f84ae08a0be89d6dd2477 /tools/include/linux/string.h
parentperf tools: Use linux/ctype.h in more places (diff)
downloadlinux-dev-7bd330de43fd5693e90be13dac7fbd9af3b6335d.tar.xz
linux-dev-7bd330de43fd5693e90be13dac7fbd9af3b6335d.zip
tools lib: Adopt skip_spaces() from the kernel sources
Same implementation, will be used to replace ad-hoc equivalent code in tools/. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: André Goddard Rosa <andre.goddard@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-dig691cg9ripvoiprpidthw7@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/include/linux/string.h')
-rw-r--r--tools/include/linux/string.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/include/linux/string.h b/tools/include/linux/string.h
index 6c3e2cc274c5..cee239350a6b 100644
--- a/tools/include/linux/string.h
+++ b/tools/include/linux/string.h
@@ -29,4 +29,6 @@ static inline bool strstarts(const char *str, const char *prefix)
return strncmp(str, prefix, strlen(prefix)) == 0;
}
-#endif /* _LINUX_STRING_H_ */
+extern char * __must_check skip_spaces(const char *);
+
+#endif /* _TOOLS_LINUX_STRING_H_ */