From patchwork Wed Jan 3 05:06:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Rogers X-Patchwork-Id: 184625 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp4838728dyb; Tue, 2 Jan 2024 21:15:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IFoxwgMnu602ygD9kDsxHO3jG9p/TjcD689RyDSIfLT2PAzA9U1DlsdCfkKMCmAPnrMfEJ0 X-Received: by 2002:a17:90a:ff03:b0:28c:3b32:bab2 with SMTP id ce3-20020a17090aff0300b0028c3b32bab2mr7467210pjb.98.1704258907790; Tue, 02 Jan 2024 21:15:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704258907; cv=none; d=google.com; s=arc-20160816; b=D4RipH04eOre/dNf8np86dlWBHadopx1o+eByHucVDn/9xNIEUKdWuiUzw1K1z7sUQ 6lzTAUB2DJRLNTL1mxvoCWkK5fjFpwilimjYBHflwtWN6Trx65J6EgFMUZPlvS+xc/Cj rrcWGZNzhyrpUxNwDzmjU3ZGmgzJk0aB/t2Vma0FrKP2aIx8XyX5ZdoJ0Aq7ouJrfva2 DceWpDEq1foI5nWC24B7TouO0Z5rRF6qbLDUtLjgo0lrFaflGfxCFOlYywdcNZHYqYV+ HvvGBLSly0d9TK5bbkEd+DnsTEIV1QGKFkiX31IBwNyXpu5m9eVZUA/us3knDbCSY4ht 35Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:references:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:in-reply-to:date :dkim-signature; bh=WsFfZjtyQ/vupuXNWc6ZaFgCOFnGSemPyorRcK3/9uQ=; fh=Io7x3OacpefNRRNKoYAzVE0aWTDwD7FRzyCdD1e3AN4=; b=UVtehM3+SxGmM+PUGoR+6d3rupdQi8hRsNSJErXwWgeHeVEmkS09BfsymOppwdil4i Ge8q1GmbHiyy26CV3EfdDNH3Oe+zNT4G9rC/JKkM6cC3Az3ZITL8XFQRr49AssF1l7yn nb7QLoFy9BgRFJHRq6DMqRL4+15K+kcnmGzcBV/1Uq97XOxLMgWC3K54V+ru0IjeE4ud DM++TzOEXK1wFkr9WsGWyqlzvjSe/un4pKZu0yRdB7asILBmSKX5C8YNdVSaMNlKl8Bl RZnYDpvB4EekTGtVXFGVZ4lKs76SXw+FiC1MLjIvshbVGNm0Kj4tYNkcVpLxZUjH+bie JcLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Yc3N+CgR; spf=pass (google.com: domain of linux-kernel+bounces-15179-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15179-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id jp14-20020a17090ae44e00b0028be19420efsi618187pjb.40.2024.01.02.21.15.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 21:15:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15179-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Yc3N+CgR; spf=pass (google.com: domain of linux-kernel+bounces-15179-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15179-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E33A7B22F91 for ; Wed, 3 Jan 2024 05:13:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 45A981A72A; Wed, 3 Jan 2024 05:07:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Yc3N+CgR" X-Original-To: linux-kernel@vger.kernel.org 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 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-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787044988840101877 X-GMAIL-MSGID: 1787044988840101877 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);