Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp559505rdb; Thu, 2 Nov 2023 11:06:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHG4eySr6DrR7KU/Ihu0oYaX/wDIc7Ey+2rvMnbfFI3K2EfWnGnCNopYru9YrKePVrUBJqi X-Received: by 2002:a05:6a00:10d2:b0:68a:3ba3:e249 with SMTP id d18-20020a056a0010d200b0068a3ba3e249mr23105657pfu.16.1698948416575; Thu, 02 Nov 2023 11:06:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698948416; cv=none; d=google.com; s=arc-20160816; b=cKFjClcPdhs2h2KDlffS7GXUglSXDwJHLcZQ6hAIgX3yFywsHR9kiar20vwK3QeGZY YvZBS2fA7iIsvzKYVyv5al2XDhx6oUwfpFRIyhQ54b6+6EL6zBlA1AcJ8zJSQmiM9NcJ ZVywwyMf5WAD4J7xX3Bnnhc4NaIv6HCPiodnVPaCy9p5ClTZHtBFuQ74j5PMACT2Lc67 WpoR+Gg1Y/W4nv4zujzsKQWlRg7vocuHpAPWnsOLbAN5BQL9qnSH5JmsbX6RTCaymAZu ER3P43T3Cwn6cuRsFyEQz6dq8joYM1rThoTDuOqeEg2YhQTTIQ+tL7zI2LRNWPd/Zb2o LeGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=8AzM8ZmO2/LuV9OGW5MoPE4fbBNeZFfotiJyJxsLNU8=; fh=z1KcSqUpYQ9oC4uLSeIkhAYTnJ2bvP0QbNW2xqV5NqA=; b=LW5eqHUqzWi1vg2+pe5dBSYiArP/M9yOqu1vYB54lx+TxOOLdib2oUnV+yG6mWTE6G nMHWwv9RW734kgzkggk6AmWgQQyRYyd6nAZZKufErrMjj84o9stOeDTKT9qI1Y/qkcAc iUwRrETjPyIMRHsgCKQwuEjqUTRVBzUZkHnuXdR/2/P597zy3AwJkR3nk3CEA/GxbTCd zoOdtEomAh8B6QOFQIqHNS4ep+mUsb/9S06yRn2nAi+eW+4UpQZxhcJ/Lj224CVnFexg fItZsQVn28kDG8UMV/AEW/sBqlzImAbdMgNyWZ8MIyXOxEfiiK7ua4Rzyag015Srz7JD FNWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=WhLXyXHf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id fe8-20020a056a002f0800b006b4319c78efsi66579pfb.389.2023.11.02.11.06.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 11:06:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=WhLXyXHf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 9742F809357F; Thu, 2 Nov 2023 11:06:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377123AbjKBSFG (ORCPT + 99 others); Thu, 2 Nov 2023 14:05:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346599AbjKBSEk (ORCPT ); Thu, 2 Nov 2023 14:04:40 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65645195 for ; Thu, 2 Nov 2023 10:59:45 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-5afacc566f3so17216847b3.3 for ; Thu, 02 Nov 2023 10:59:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698947984; x=1699552784; 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=8AzM8ZmO2/LuV9OGW5MoPE4fbBNeZFfotiJyJxsLNU8=; b=WhLXyXHfo1tm2wllCyBUZ5LgGEOazptIOVz7pQszSLhD2nm0PWTWefTXnpESukDciy e6Wk/Yeja5rY4f/WU2raaG9hz5VtPwxuVNArbC9a28V/WkUpGEf8J4bSOwV8W0x1l39r nlQ8ehNYA+jOoQlfsHISPQuO6M+OOXTwu7mYL0mZDYu2/pGF8go7ibvu15U0eIyDg9Jw RoPsQx9rXqiW4UkrCTc0y4nB5KfgncrTwFTM9rvOBFjB2WfJldaFSVgVrHfD/U+LkDsS HQqNFZ+HzQ2Q5+ethFNrpMjnQBYoccTuOXTmCIlpFJnOoruY+QzOCXDmc6UWCYM4us+Y N/iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698947984; x=1699552784; 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=8AzM8ZmO2/LuV9OGW5MoPE4fbBNeZFfotiJyJxsLNU8=; b=lpmWetUoF74TFpg0/+D6G/s4tItkhTxxKAquES7QSom/V8SxMJ738iiLBT3r9Blvqp CeOa+6fX/t0dIyUTdMdDNojk7dAvd31y1myiDhh3kPivrq6kJjH9+XRYkNHrJAy3+fRp oieH81OfonJJ/qkErW5H5QqKwBe4b0fPAN06wRivJjGnX3PwdrrK8clTgWcM2ogGHSQx Ps0Z+WzO36vNTKM1i00PfDB+f0Yi8Th0xaD+MRjP/7eGF3D/AB14e/YUBl9YziJ10V6j wI8dfGrR8Ane7KEhNtlKL5gbV5hHyJrf4nJGXOQUfBxh+uT9G++ziyhlN1li7RKO+Z45 GWzA== X-Gm-Message-State: AOJu0Yzy0d8tly8sPIqc2F1sAf6RXoR0sl2jIww8rwTP1gKpSU8XM+0l KxmpFvXLjzQ4iLDKoAlcIPPA7DevOAAQ X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:bb34:df9c:836c:afca]) (user=irogers job=sendgmr) by 2002:a81:6d17:0:b0:5a7:7683:995d with SMTP id i23-20020a816d17000000b005a77683995dmr8705ywc.5.1698947983702; Thu, 02 Nov 2023 10:59:43 -0700 (PDT) Date: Thu, 2 Nov 2023 10:57:29 -0700 In-Reply-To: <20231102175735.2272696-1-irogers@google.com> Message-Id: <20231102175735.2272696-48-irogers@google.com> Mime-Version: 1.0 References: <20231102175735.2272696-1-irogers@google.com> X-Mailer: git-send-email 2.42.0.869.gea05f2083d-goog Subject: [PATCH v4 47/53] 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 02 Nov 2023 11:06:44 -0700 (PDT) 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; } -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 = __dsos__find_id(dsos, name, id, false, /*write_locked=*/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); 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); struct dso *dsos__findnew_id(struct dsos *dsos, const char *name, struct dso_id *id); -- 2.42.0.869.gea05f2083d-goog