Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp584117lqp; Thu, 21 Mar 2024 09:27:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXliYmFo4KlDC3vP2Fqj+GAkoINCVE0HqlxS3cXTK/5Yaa/563Vnq5zJRgOWbuhbmwNK2N8JLaUpWFmlx1Y+ru9HxB/8riraAeeVrw2Yw== X-Google-Smtp-Source: AGHT+IFsqCcXvJdikwaNVg8KAFXMpwifGM+OcrHq1AfdmfWgaoWbhws9g/Q0BnaGC4tuMkuFSw6/ X-Received: by 2002:a05:6a00:2186:b0:6e8:f8ad:fde4 with SMTP id h6-20020a056a00218600b006e8f8adfde4mr3608792pfi.15.1711038456357; Thu, 21 Mar 2024 09:27:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711038456; cv=pass; d=google.com; s=arc-20160816; b=M6Bs8tdGuYRwGhnXrB+pJq1vbX0XS1pEB6gKGJPoqDfZxJ4z3V0Jv6SlBF+3UzWXHz bRroZnP/W3loYEh9vFJ12yCRnoX6rdSYnP/sLR7u2zcrxhyGFOYt0aLEOljfBWW9uxYW 2XpeTVtb9Um24sKc2NnzIVNd/ig67RWvNEw1W+Qj/xD5nmO4H0cwR6XrVxC674BbkRHm RYgwzD88xvAJWIXjkocZJDgtx/T0/wgzFIbuzy9gLhMV6YZusIlT+GvLe5sE+myUowA2 19w98N9oqzh1k6WWqyNhxtMKgtf5NbOYIc9JHjwfxYr3qH5PPdfjrIPZxDhR7EapEbTN C+oQ== ARC-Message-Signature: i=2; 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=vEQ5BBsljQyJP/Rmf1XGwbxQw69MXA9Ie8L3tI9K1qI=; fh=YBnag3hEIfzWJ3Cu61j7BdqmTZxQb5jCRdyExu7uUt8=; b=vs1xYg1+NmkLhyNXhIM95NfczJTU+Eq7N3wF+wmpAFBZ/kgppVx7Snr3EIqUTlLlp4 Adx8USzaWMe906RDC2OFYkhJdwKrroie9ELofnFYANfQjh1EdTN/OahJNeVe75Al8m7j RKJv3epL/x34q5NKtU2EQj28v4i+drXbHIr2beCWBH9UmNzC7fTUSIvmViJnLThZK9u/ SIoCSKG2hD9L9mKhUgcaR5kMVJVOIE7pwdQRLRV+drQSxAJF4ZUa03eWV0XozKuG+Vxt tI87ahGHNOckajD1q6i0BaxdKLxMTwdtkg8sqXhOcuePPtX0QZNJFoEPVTbWqOzxLpyh G4NA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=37KVxsTy; arc=pass (i=1 spf=pass spfdomain=flex--irogers.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-110303-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110303-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id n17-20020a62e511000000b006ea6d321d3bsi44239pff.89.2024.03.21.09.27.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 09:27:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110303-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=37KVxsTy; arc=pass (i=1 spf=pass spfdomain=flex--irogers.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-110303-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110303-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 71B1BB261EC for ; Thu, 21 Mar 2024 16:05:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E44312D20D; Thu, 21 Mar 2024 16:03:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="37KVxsTy" 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 E07E612D1E4 for ; Thu, 21 Mar 2024 16:03:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711037010; cv=none; b=M+0238LDXZkDzQjEnvD6oOyIDLHwCHdHE2rv65nK+GUvOXQyRM0SnGeMFZZDYAnePAdkqXyU0308ejqgv/dT7cHCTHDIhEZQzoRttBMyQz4FS8BH2dhu0tc/I+psMEOu3U40H2y+JDNCofz8z2KT0G+newJCrtiuEEvYpLs81TA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711037010; c=relaxed/simple; bh=9dGUST8fNArFOG69zr0ELlXx+wbNrZRxfaYe9UCGBtM=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Content-Type; b=QLqv21bj5Dv27YgrV/PCzWDKOmJJE353j1lPVqU+0n0oxMT/lI4kyxpHUCH0KoVZVitErfsnP/2CI+5iQBdpJ8CFw+Bko7L7BoHXIamRQzFbjcL+5Lr8MRiuej9s27SjrdgAHiCxExzvE/l+bGTb0xJq63VWji5lyVQOQRF0lrk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=37KVxsTy; arc=none smtp.client-ip=209.85.128.201 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-608ad239f8fso18208777b3.0 for ; Thu, 21 Mar 2024 09:03:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1711037008; x=1711641808; 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=vEQ5BBsljQyJP/Rmf1XGwbxQw69MXA9Ie8L3tI9K1qI=; b=37KVxsTyeUADNFUJc/sDeUnAdhtdG3vJ7XadfPwphfMCGwwzkBqjfXmdZ9fGFAvypT UzEejvbTZRgMncyzEFGze3mJLEfluNABvvJjZzmas1EntJrY/eixgixf1H97qvRU4BzY 2FTRjYB+dvns4/nVmnQzcStngFyKh8EaRRvI+T0MNbj5tbuDAPIM5C7pRcRsJWxYtEIv hvpAhoxB5VJucOHf/9P+gwk6QgQf+IXDOtE772edQlSPYken9PFrrZoDh2BwUL+Zg1NS ytTM5H3Iqt0qUXmKMbXmtXmcRebBNlJDU6bqyfsYmSSudQEt4cI0bp0gHSUUEx2/24sp iabQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711037008; x=1711641808; 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=vEQ5BBsljQyJP/Rmf1XGwbxQw69MXA9Ie8L3tI9K1qI=; b=k4xXROkB+krNovAb+SURQk2CDvAiQEMzec9mNfS+NtDOMshraQwmdoNCvil3WiR3lA JlRLPdaloPkDdmDjvVS1ziLOHwoboNbJ7E6gN43nHwzRK7HsJjk/j+A8EXQe9CDVCB0w ZdNrIiZrvRhrQ0pwDIo9tYrjWP23q/iLOT/YTghM2vPW80etVUwuuRmyuOAlRaWvT04L urnshBpDjF2eawYBCP1/hL5kCGtczYgENm9oXjqD6sGC35mhtujeefObAO4dnX6HCgEH cXqtYfa1iZkpLcej5pYfxdkhL8wsbe+VDaCj4QTrih8khIoBsxicCmNQMwULhb4Q6NwE BTGw== X-Forwarded-Encrypted: i=1; AJvYcCWxMha7y+b67x/rcKsqZmYVn/C7HFjDEnff3x9RAVmUOxd906X7szlk5KlbK+7VJaZEWxcKBgmRpET9lZrAcjqQDAuvdsqSXNzGN8OI X-Gm-Message-State: AOJu0YyadQnPcjRfmf59Uy4wFpcwS9uD++g4F5DyJOGPA+NS37EI4OTC 2qxk0jr+Dm/zPglyflrws08OlC6CuErUvaucP1kWhCHwF8MgH7cjYPwdo0Z5qF16VKDENwKOwUW SmVMBEg== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:7f3:cf74:42c4:c0a]) (user=irogers job=sendgmr) by 2002:a05:6902:100e:b0:dc9:5ef8:2b2d with SMTP id w14-20020a056902100e00b00dc95ef82b2dmr5505080ybt.4.1711037007909; Thu, 21 Mar 2024 09:03:27 -0700 (PDT) Date: Thu, 21 Mar 2024 09:02:55 -0700 In-Reply-To: <20240321160300.1635121-1-irogers@google.com> Message-Id: <20240321160300.1635121-9-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240321160300.1635121-1-irogers@google.com> X-Mailer: git-send-email 2.44.0.396.g6e790dbe36-goog Subject: [PATCH v2 08/13] perf dsos: Remove __dsos__addnew From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , James Clark , Athira Rajeev , Colin Ian King , "=?UTF-8?q?Ahelenia=20Ziemia=C5=84ska?=" , Leo Yan , Song Liu , Miguel Ojeda , Liam Howlett , Ilkka Koskinen , Ben Gainey , K Prateek Nayak , Kan Liang , Yanteng Si , Ravi Bangoria , Sun Haiyong , Changbin Du , Masami Hiramatsu , zhaimingbing , Paran Lee , Li Dong , elfring@users.sourceforge.net, Andi Kleen , Markus Elfring , Chengen Du , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org 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.44.0.396.g6e790dbe36-goog