From nobody Fri Dec 26 21:24:11 2025 Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72F4A1A5A9 for ; Wed, 3 Jan 2024 05:07:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Yc3N+CgR" Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-5e898eb4432so135660617b3.0 for ; Tue, 02 Jan 2024 21:07:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1704258452; x=1704863252; darn=vger.kernel.org; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=WsFfZjtyQ/vupuXNWc6ZaFgCOFnGSemPyorRcK3/9uQ=; b=Yc3N+CgRsfmVD3fK+PN/3QQXCzRDDO3X8QgbKm9d+rIJawHXUP8XQKsSkJCa9h0bw6 BvY0hjMkQxBNNCCU4TgQZWCWTNjSxixbQzS7veKYwy7G7zK1j7N+OWhSsMis/8EuO+uS uAdhCIOhCsXIbe80KiBR0Dm72KFcnNnGIFItVlGrtT2rEAhoWIstSTBa75EC4DqRPHPW UJc2LY126/c+/EhrNpkwXeQzSRI83NGLKkcVCqcY4uxQX6h2Uy0TfeKe9Rqe1kqhtVEI 1jeJrqE2xhHQGjr3DtnG67qYYTbPH4Lr76/z/rbST89krL1iUWjzrq94khW3a8o74YlG QNpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704258452; x=1704863252; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WsFfZjtyQ/vupuXNWc6ZaFgCOFnGSemPyorRcK3/9uQ=; b=L2UHh4JAzDpxscHb0VgyMwuAVTImGRzU3VyPcPOX1rNasnfSN8oC94gFNiUxlZhke7 c3KjJ/mVDgOVg74h89iLlqWPpsLcFp0LWRxw/yyMjipPF8jpf2EbSuicc2Sg4z6T6sG/ E9V6lvc9M9R8KdDp1HfYMKpee8QM23tsDM5IT5lKLUJYvMzlUUpzHgY0aFfV0DxLcin4 CNmNpdDprQ5G8APKnm6U1G1PqdsFgHANWhdvFI/d4BG5gHKNrDUz5IxQWicWf+xYoF2r OGueYvMifAXSoJhpgdzcTa8pf6XxST2+BeNGPDEqGx8B5ybCsVEWoQFzS8Qtmf9dHmvY r+lA== X-Gm-Message-State: AOJu0YzQmR7DP+/zdIRRnBIe2HKtr4hA18AKS47SyGjCf9GsZiykgYnb PmUElnkp7CGVb+wIbQxviZ/0NChpyIDrEBGSyzo= X-Google-Smtp-Source: AGHT+IGaUvVt/aSvel6vIpjHau735vBHOw5/xaxzHy3M1MdAbR3W9UcTxRMpSxwlVCBsILDt2NfuLqsWcUha X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:e2bd:f1f6:8ea6:8d6c]) (user=irogers job=sendgmr) by 2002:a05:690c:c8a:b0:5e8:c4b6:9b5a with SMTP id cm10-20020a05690c0c8a00b005e8c4b69b5amr7450642ywb.4.1704258452710; Tue, 02 Jan 2024 21:07:32 -0800 (PST) Date: Tue, 2 Jan 2024 21:06:30 -0800 In-Reply-To: <20240103050635.391888-1-irogers@google.com> Message-Id: <20240103050635.391888-21-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240103050635.391888-1-irogers@google.com> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog Subject: [PATCH v7 20/25] perf dsos: Remove __dsos__addnew From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Nick Terrell , Kan Liang , Andi Kleen , Kajol Jain , Athira Rajeev , Huacai Chen , Masami Hiramatsu , Vincent Whitchurch , "Steinar H. Gunderson" , Liam Howlett , Miguel Ojeda , Colin Ian King , Dmitrii Dolgov <9erthalion6@gmail.com>, Yang Jihong , Ming Wang , James Clark , K Prateek Nayak , Sean Christopherson , Leo Yan , Ravi Bangoria , German Gomez , Changbin Du , Paolo Bonzini , Li Dong , Sandipan Das , liuwenyu , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Guilherme Amadio Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Function no longer used so remove. Signed-off-by: Ian Rogers --- tools/perf/util/dsos.c | 5 ----- tools/perf/util/dsos.h | 1 - 2 files changed, 6 deletions(-) diff --git a/tools/perf/util/dsos.c b/tools/perf/util/dsos.c index cfc10e1a6802..1495ab1cd7a0 100644 --- a/tools/perf/util/dsos.c +++ b/tools/perf/util/dsos.c @@ -341,11 +341,6 @@ static struct dso *__dsos__addnew_id(struct dsos *dsos= , const char *name, struct return dso; } =20 -struct dso *__dsos__addnew(struct dsos *dsos, const char *name) -{ - return __dsos__addnew_id(dsos, name, NULL); -} - static struct dso *__dsos__findnew_id(struct dsos *dsos, const char *name,= struct dso_id *id) { struct dso *dso =3D __dsos__find_id(dsos, name, id, false, /*write_locked= =3D*/true); diff --git a/tools/perf/util/dsos.h b/tools/perf/util/dsos.h index c1b3979ad4bd..d1497b11d64c 100644 --- a/tools/perf/util/dsos.h +++ b/tools/perf/util/dsos.h @@ -30,7 +30,6 @@ void dsos__exit(struct dsos *dsos); =20 int __dsos__add(struct dsos *dsos, struct dso *dso); int dsos__add(struct dsos *dsos, struct dso *dso); -struct dso *__dsos__addnew(struct dsos *dsos, const char *name); struct dso *dsos__find(struct dsos *dsos, const char *name, bool cmp_short= ); =20 struct dso *dsos__findnew_id(struct dsos *dsos, const char *name, struct d= so_id *id); --=20 2.43.0.472.g3155946c3a-goog