Skip to content

Commit dfd4816

Browse files
captain5050acmel
authored andcommitted
perf dsos: Remove __dsos__addnew()
Function no longer used so remove. Signed-off-by: Ian Rogers <irogers@google.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com> Cc: Ben Gainey <ben.gainey@arm.com> Cc: Changbin Du <changbin.du@huawei.com> Cc: Chengen Du <chengen.du@canonical.com> Cc: Colin Ian King <colin.i.king@gmail.com> Cc: Dima Kogan <dima@secretsauce.net> Cc: Ilkka Koskinen <ilkka@os.amperecomputing.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: James Clark <james.clark@arm.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: K Prateek Nayak <kprateek.nayak@amd.com> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Leo Yan <leo.yan@linux.dev> Cc: Li Dong <lidong@vivo.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paran Lee <p4ranlee@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Song Liu <song@kernel.org> Cc: Sun Haiyong <sunhaiyong@loongson.cn> Cc: Thomas Richter <tmricht@linux.ibm.com> Cc: Tiezhu Yang <yangtiezhu@loongson.cn> Cc: Yanteng Si <siyanteng@loongson.cn> Cc: zhaimingbing <zhaimingbing@cmss.chinamobile.com> Link: https://lore.kernel.org/r/20240504213803.218974-3-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 3f4ac23 commit dfd4816

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

tools/perf/util/dsos.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -341,11 +341,6 @@ static struct dso *__dsos__addnew_id(struct dsos *dsos, const char *name, struct
341341
return dso;
342342
}
343343

344-
struct dso *__dsos__addnew(struct dsos *dsos, const char *name)
345-
{
346-
return __dsos__addnew_id(dsos, name, NULL);
347-
}
348-
349344
static struct dso *__dsos__findnew_id(struct dsos *dsos, const char *name, struct dso_id *id)
350345
{
351346
struct dso *dso = __dsos__find_id(dsos, name, id, false, /*write_locked=*/true);

tools/perf/util/dsos.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ void dsos__exit(struct dsos *dsos);
3030

3131
int __dsos__add(struct dsos *dsos, struct dso *dso);
3232
int dsos__add(struct dsos *dsos, struct dso *dso);
33-
struct dso *__dsos__addnew(struct dsos *dsos, const char *name);
3433
struct dso *dsos__find(struct dsos *dsos, const char *name, bool cmp_short);
3534

3635
struct dso *dsos__findnew_id(struct dsos *dsos, const char *name, struct dso_id *id);

0 commit comments

Comments
 (0)