diff options
Diffstat (limited to 'tools/perf/util/symbol.c')
-rw-r--r-- | tools/perf/util/symbol.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index da2f07f1af8f..8e6627e6b778 100644 --- a/tools/perf/util/symbol.c +++ b/tools/perf/util/symbol.c | |||
@@ -1615,14 +1615,14 @@ static struct dso *dsos__find(struct list_head *head, const char *name) | |||
1615 | return NULL; | 1615 | return NULL; |
1616 | } | 1616 | } |
1617 | 1617 | ||
1618 | struct dso *dsos__findnew(const char *name) | 1618 | struct dso *__dsos__findnew(struct list_head *head, const char *name) |
1619 | { | 1619 | { |
1620 | struct dso *dso = dsos__find(&dsos__user, name); | 1620 | struct dso *dso = dsos__find(head, name); |
1621 | 1621 | ||
1622 | if (!dso) { | 1622 | if (!dso) { |
1623 | dso = dso__new(name); | 1623 | dso = dso__new(name); |
1624 | if (dso != NULL) { | 1624 | if (dso != NULL) { |
1625 | dsos__add(&dsos__user, dso); | 1625 | dsos__add(head, dso); |
1626 | dso__set_basename(dso); | 1626 | dso__set_basename(dso); |
1627 | } | 1627 | } |
1628 | } | 1628 | } |