Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ian Rogers and committed by
Arnaldo Carvalho de Melo
dfd48165 3f4ac23a

-6
-5
tools/perf/util/dsos.c
··· 341 341 return dso; 342 342 } 343 343 344 - struct dso *__dsos__addnew(struct dsos *dsos, const char *name) 345 - { 346 - return __dsos__addnew_id(dsos, name, NULL); 347 - } 348 - 349 344 static struct dso *__dsos__findnew_id(struct dsos *dsos, const char *name, struct dso_id *id) 350 345 { 351 346 struct dso *dso = __dsos__find_id(dsos, name, id, false, /*write_locked=*/true);
-1
tools/perf/util/dsos.h
··· 30 30 31 31 int __dsos__add(struct dsos *dsos, struct dso *dso); 32 32 int dsos__add(struct dsos *dsos, struct dso *dso); 33 - struct dso *__dsos__addnew(struct dsos *dsos, const char *name); 34 33 struct dso *dsos__find(struct dsos *dsos, const char *name, bool cmp_short); 35 34 36 35 struct dso *dsos__findnew_id(struct dsos *dsos, const char *name, struct dso_id *id);