Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6936513rdb; Tue, 2 Jan 2024 21:13:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IGd6nNrNEWaMMUw8GGPzzQT5xfhZVvUbOM2OWfOiL/lQvWWBX1KpYgDZ/ITEajBmbarFipH X-Received: by 2002:a17:903:2285:b0:1d4:3aa8:fa35 with SMTP id b5-20020a170903228500b001d43aa8fa35mr20039365plh.85.1704258780154; Tue, 02 Jan 2024 21:13:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704258780; cv=none; d=google.com; s=arc-20160816; b=OA7YSjhHjkGqSkhWnkBqCaVTmhAIB2J3MBdjqPpsZhRFpNoxYhSThbwKkfdi/uCHWV 0HZBuf25MB/KcJtxsTWmhGhtmz6ipV8s+jLXjuMBSxFyPlY/RRFluuHH0hX+RbpbdqQn NN7957nys30PQmhgR/Hk+3TMcmAkqEx3sjKrfuCE+s1Z707VK8ERbjfEpwXSUjFQ8aw+ eJeY++bL5TF8fwXoXxaHKlWrlq8WmL4EluQmZJRKKq/4i1M+bXH1cTS90ogCQmN27/xG ZRe/pKR1U5HLxlZwm3+po0sBn/8RFS65cwiPlDF8cOkwP/+mKPxn/SmFnZBiuSL4PepW wG6g== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15179-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id g1-20020a170902fe0100b001d405936727si20762168plj.73.2024.01.02.21.12.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 21:13:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15179-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15179-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CA893284E95 for ; Wed, 3 Jan 2024 05:12:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 754E21A703; Wed, 3 Jan 2024 05:07:35 +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 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; } -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.472.g3155946c3a-goog