From nobody Wed Dec 17 12:44:24 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12374C4167B for ; Mon, 27 Nov 2023 22:17:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234249AbjK0WR0 (ORCPT ); Mon, 27 Nov 2023 17:17:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233748AbjK0WQd (ORCPT ); Mon, 27 Nov 2023 17:16:33 -0500 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C4AF3841 for ; Mon, 27 Nov 2023 14:11:05 -0800 (PST) Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-db40f549659so5816579276.0 for ; Mon, 27 Nov 2023 14:11:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701123064; x=1701727864; 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=3SgzJhwUmMLXBFn6JMneX8WO48Fxs5qeBUSS9OEPabk=; b=EQ7FfzeozHMCZRBXfUMlZHWiakceeWKue4R9O82UED9cZbWEK7I0ywNtY90Oh96pce A9Fbxh6z7zPfPDRXC5+dAI0w+ZJ/wg3MKZITvXE82t1c4xw0fNp+9QiBFIY1Q4oXIMO2 6Bu6iUiH9F2gMkaNUcEB2I2bqZa7nt7FJmnu8t/UZDQl4wMI+WsFBxfhkOQzZ/g6e34o S2gvEC+Zp2GrObRg/8QeEi1VmWTj0u3QDW8C6sawKLdsD46TN1t/v/tnGQx9BG6nxwRy jsoFwQVrvbDNp2gxdV2VK0TJlxeDB+nu3oDAsc1zkZlz8fEzskdBiQ+v1EZRDUE9DefT QBNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701123064; x=1701727864; 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=3SgzJhwUmMLXBFn6JMneX8WO48Fxs5qeBUSS9OEPabk=; b=RcFehp9ARt/0UN0CK6B7/qWgNLBQ+PgLuMLssOkBCMfoYcSRJF0jeoRvVeqefFgyuf x08n9km5t87otKj718PksLiMvZaXs6nGlr1Rb5CuPzByvX1MuBywd+p1eqsx9aqnv2DP UPc3o0BFXrsFBtzfmqJb1wCKnlzqOEpczam2yuxjYMvoDntTVPdMi+pt/zJJ1S8QRR+O ockZ2GYk9U/eUaLoz9MXRCCSrgURN7TCFs0iPZ5f6epwQh01Nv9DI9FwVBdOV2TGFRy1 XiJRzz4vlV5KNVy9fYF1r121pU6FTgkpKdLAms1Qcf7Lz3U1F1IH4qzjQO8IchvxlD3e NhBQ== X-Gm-Message-State: AOJu0YyOEUGmymHSkBbJVT93Uwy323vWuB5GK9NthQcGdYzhHYeF5zA2 aLSjwZjUsZi7V7cGfPaWz0Q85Y50Y5II X-Google-Smtp-Source: AGHT+IELE/ZF1UcQrdQ9gttRweNIudxYVEJnjD1C91Yi+u9ySGHAuYYMPloFWZ+cSSe9AvoeoE3xGqCJ6QDL X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:829:6e77:9093:f39b]) (user=irogers job=sendgmr) by 2002:a25:3507:0:b0:db4:4df:8c1a with SMTP id c7-20020a253507000000b00db404df8c1amr468637yba.12.1701123064266; Mon, 27 Nov 2023 14:11:04 -0800 (PST) Date: Mon, 27 Nov 2023 14:08:56 -0800 In-Reply-To: <20231127220902.1315692-1-irogers@google.com> Message-Id: <20231127220902.1315692-45-irogers@google.com> Mime-Version: 1.0 References: <20231127220902.1315692-1-irogers@google.com> X-Mailer: git-send-email 2.43.0.rc1.413.gea7ed67945-goog Subject: [PATCH v5 44/50] 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.rc1.413.gea7ed67945-goog