perf strlist: Make parse_list() private

It is not used anywhere, expose it when/if needed.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-f6in51stj17avhk4rv11gjgg@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 8ff9daf3
...@@ -134,7 +134,7 @@ static int strlist__parse_list_entry(struct strlist *slist, const char *s, ...@@ -134,7 +134,7 @@ static int strlist__parse_list_entry(struct strlist *slist, const char *s,
return err; return err;
} }
int strlist__parse_list(struct strlist *slist, const char *s, const char *subst_dir) static int strlist__parse_list(struct strlist *slist, const char *s, const char *subst_dir)
{ {
char *sep; char *sep;
int err; int err;
......
...@@ -79,6 +79,4 @@ static inline struct str_node *strlist__next(struct str_node *sn) ...@@ -79,6 +79,4 @@ static inline struct str_node *strlist__next(struct str_node *sn)
#define strlist__for_each_safe(pos, n, slist) \ #define strlist__for_each_safe(pos, n, slist) \
for (pos = strlist__first(slist), n = strlist__next(pos); pos;\ for (pos = strlist__first(slist), n = strlist__next(pos); pos;\
pos = n, n = strlist__next(n)) pos = n, n = strlist__next(n))
int strlist__parse_list(struct strlist *slist, const char *s, const char *subst_dir);
#endif /* __PERF_STRLIST_H */ #endif /* __PERF_STRLIST_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment