Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3431614rdh; Mon, 27 Nov 2023 14:17:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IGEvXLEFzZMCWZu9rCTaliWrrKmBAyAbt+rjw2t035EKg2UwHV98is+Oz5jbQN6Oa1/h8e4 X-Received: by 2002:a17:90b:224b:b0:27d:880d:8645 with SMTP id hk11-20020a17090b224b00b0027d880d8645mr13616378pjb.49.1701123479240; Mon, 27 Nov 2023 14:17:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701123479; cv=none; d=google.com; s=arc-20160816; b=0+78LkMOTtaIwTwG3Hru/PeLsT9LlG7xuyReNUW4eS6tPRzEPbUQOvcTy8BeXtujA5 79V2dziKpcrOPf4geQcNBVdatX6Fgx3A2osvZzK+4VDCxkpR+4u+bFn+zoXvyQt76V75 ynjWOhaQ55CI1Y3eg7BN8lIgI1XPtaM+IG30Waua3SI7ReT2IAolbmL4vknm5DdD8L8b ODefHrF+ZNHlnH/McYF375G3TFRyTKOuLafKOUDuaqKhh0uGUzd5ZXJO6FZslb2veKZa FVYbeqM5QREe/g+KW5bJL2aCmZUA1FCXhjHu/OKRkojoYyhnHZ6H2KvMRy44JhyZmsf8 ktQA== 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=3SgzJhwUmMLXBFn6JMneX8WO48Fxs5qeBUSS9OEPabk=; fh=Io7x3OacpefNRRNKoYAzVE0aWTDwD7FRzyCdD1e3AN4=; b=vfDRlb6H72TNxKH6W9yTOcmC23Ie05DT/2oQmQZsG/jqxgl02Gv+TT7f+irdl1fddi zKxhBKhQ2fTHsReTxn54HH9Y8QV2iY/aLFo8S0x7t3sId4R8OdirNiv+ic+134opc9Rv 9WBQRp+RSaTorORidY+JgA4cPw8BxSPtvmk/MayWJJsHfJ1wa//XzpykWD7e2I0YtKKK CR9hAUM/sCkRs3APrzP2e3OOzzgsat3YdfD8k57moJdIJqypoUfk70UJkJ/43D105Kl8 BvK2BKu+YSopey1YTvSZcT59IOCdBMS0Qgzk4Nse1oNPySdWf8euoARo+iJyBVsGcLBu MwdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=EQ7Ffzeo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id p3-20020a17090adf8300b002851a01b0absi10519827pjv.151.2023.11.27.14.17.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 14:17:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=EQ7Ffzeo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id C553F8062437; Mon, 27 Nov 2023 14:17:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233809AbjK0WRY (ORCPT + 99 others); Mon, 27 Nov 2023 17:17:24 -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-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 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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 27 Nov 2023 14:17:45 -0800 (PST) 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.43.0.rc1.413.gea7ed67945-goog