Received: by 2002:ab2:687:0:b0:1f4:6588:b3a7 with SMTP id s7csp240208lqe; Tue, 9 Apr 2024 23:55:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUOvIzL1gb8ANLuU7i6ECNPBUEEkCHNRM5DR3Uw3FmUkDbfbofOZEEqWGnB5FXkkT4KRrtOO/9xuVORIfdx96nvgm/dayMoSC7wXd6QXQ== X-Google-Smtp-Source: AGHT+IEjF5FNXHaUJH/IjueyUIn+MEQjWB7qkRuO4FEBq6PZeHiTdBRMwbmGRIaPw7+vjUMLZKap X-Received: by 2002:a05:6a20:da95:b0:1a7:7a3c:a95a with SMTP id iy21-20020a056a20da9500b001a77a3ca95amr7739232pzb.1.1712732110486; Tue, 09 Apr 2024 23:55:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712732110; cv=pass; d=google.com; s=arc-20160816; b=FQNJDxWvKRP6ejmN0e0goYn77YtsFZXKG4turR3klU2kcGYm0EsZnrhcZ8FqguhYIZ sbxgti7klDh8sDtMbRxC6pbr6Nvt/RbqMWE4el3IWV3/MBiDP5k3J2wusS89PRf5LGO/ w874PRh0i+f5iCoAQJukFIGXSr9vylLc9B2AEsssYjeaes6oJQXth1Y9C22Ez1DCscxj apToglVch+rLy8w4p7Vm6WRbd+Kq0Q0htpz0HbHRKeJHkc2tWMRSCu4PiK+QuoK9XrZB d9p03fPOdxhiGFZiJbsD411vubBcqkCyIIoHUi7K3UCJZMKZUvMdGGHsGFOiQijeflIr Vwtg== 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=hvCMnP9B5vVSfhdt4AG7Zd6V/+C/ZwTtaug7JMpiZVI=; fh=+w+FV9IlSWlNPiizPlovSHmDEt4P5pqOStTLddy4R+s=; b=KlUX2+r90/tRifmJMCqfohViKftgGf4cumgYarpxy8fHHvhTK+WAJUhuz/w05sUgsP 0asSnLiKn+aJavQw1wmqCysuUJqK/01VCAytwX4pteryfChwJxm35QvzbEvCdIoTwnlN ZdB/gX56gOUAPDaufgEOS2U+g7A8RYV6bxTwtR4apemin2DlJlmMp2qD2WGmUrztF+zd GiegcCN8Z+4I680pG5/V0bXBIP/I3UVzb/5dXMxrJJeftiderIEp4XWZg4S003U9y1Kv XROrbaLDrltCd5qj9RwmoLvdDBuO4Hsf2qL4aN2P88j8z3gcuiMVwzRtH/cZs3u6xIM7 T0BA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Lgpzw+D6; 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-138019-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138019-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 x29-20020a63b21d000000b005dc7fe4a2a0si10279288pge.584.2024.04.09.23.55.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 23:55:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138019-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=Lgpzw+D6; 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-138019-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138019-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 BF9AEB24DE3 for ; Wed, 10 Apr 2024 06:44:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D890520312; Wed, 10 Apr 2024 06:42:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Lgpzw+D6" Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) (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 5B4D8405FB for ; Wed, 10 Apr 2024 06:42:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712731360; cv=none; b=ly1NPkBy3IL4C1/OyhV8eCiJXU7QyVE3IUbCTihrpLh4Uo8TMtybzVFjjPGk0136KmPgqs2yzO8klBAZOW1Vj0jKz9aO8nBpHfLMWyzSQnhHxijGtqPljmvUzg9bAUZtHwABFaMJLhAF8zyaGNZ/bT1rTRvT1zaNNNpwj4+d7MI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712731360; c=relaxed/simple; bh=2jzruDa3ldd8qnDLA1rJ2ZswFfOJYSB+fnUOaK4RUOE=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Content-Type; b=uREOi4nxVisRHDHDty+rx6Cxz2ggQs694tFiaFE5i0V6PvRoUu/R+wKiShMCNS6S+flgh2KYs9/GpcQyTp4u7iSkrLKQ/jvbrJd3weqIZwAg6705dnAY7omceut231XmGjHO0OBbSIofdWWO5F2FHNskypxZBvgSsuBbR9x9wr4= 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=Lgpzw+D6; arc=none smtp.client-ip=209.85.219.202 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-yb1-f202.google.com with SMTP id 3f1490d57ef6-dcbfe1a42a4so10753904276.2 for ; Tue, 09 Apr 2024 23:42:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712731357; x=1713336157; 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=hvCMnP9B5vVSfhdt4AG7Zd6V/+C/ZwTtaug7JMpiZVI=; b=Lgpzw+D67wp5qiq/mrvRPEnmzreoCMUE9HZpAF4W279uWhxKd2wH4Mapx7NGweB9ec wlp5wvSWa6GX2Lk2R6Ux5HOIgauaiU5oVulPIHjtchBD5fvV/rKIx+QvW7f5hs/sYvDh 7g8jf6K9Nirw5UJpqIhWOtLtgUfz3jd7Ke2cSJeyLtFzhHd6vLvBhdmADwDF9bwkOwwA U9o9xbkAXhh3eH/vBmlJ/zmTfde1ubO5SF2v+VisiJXdil7UbDHGuj+J9iJqGdFzUZN6 BgHRZrBF3gm3ZqJrz4LNDs3BzA7Ilu1Wg8xZXgMNWSUpz0vrmq0u065y9sBkqf5QjilG Ntyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712731357; x=1713336157; 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=hvCMnP9B5vVSfhdt4AG7Zd6V/+C/ZwTtaug7JMpiZVI=; b=D2h3DpZkj7Whs9iwxuDxnJCzLin5xpOfK7aPXTHjaDEeXFMDbe6vrrwpsH3UMUBIi6 GSQJPeuC+iJ71fB7on9X+Lz8epXOR0WorJqHbOsyXV0onEqeaFrbR4jWqMVXVqrb97Tn zWJYL3xA+qyYHY3/xdXXvSpOZaNlzbb812pZ2Uls/n4X10wGGH5wyMMdz8jvUjPpxJhM M9uR+Njx+UdpRaxbtxmH598bXdSRNh0fhRryGqNKkVPESaha/W6Ncr1dcu2OAnru1oWe 770lklVaYKm++sEJChJocUPHQmgswzGfWTpJEn58MZGFYBvosE2Gxa6C7lqK4KUD/XBm vTIg== X-Forwarded-Encrypted: i=1; AJvYcCV0Nq12N+1/lanFg61CV7fiqWUlok9oxx13/olDy7oW8kbiXe27EQcrfySqJ59+r5I+6EhyALCqgz3WafkM1dVcJ6WuPOXPx49vqyRX X-Gm-Message-State: AOJu0YxtYsfsynUn9/W/g7IcA5otK4qbVdOG79xaiBtqB92LuIU9Gss8 QJDjbiqutqwwUSZS+Ho8cRaIavKs7Wb0gsP6umwJiRFO8TxwY/CNN0fMEKBOXIXkDtEcEUAtTRY pjTA0CA== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:18c5:d9c6:d1d6:a3ec]) (user=irogers job=sendgmr) by 2002:a25:a407:0:b0:dcc:5a91:aee9 with SMTP id f7-20020a25a407000000b00dcc5a91aee9mr514589ybi.7.1712731357347; Tue, 09 Apr 2024 23:42:37 -0700 (PDT) Date: Tue, 9 Apr 2024 23:42:09 -0700 In-Reply-To: <20240410064214.2755936-1-irogers@google.com> Message-Id: <20240410064214.2755936-8-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240410064214.2755936-1-irogers@google.com> X-Mailer: git-send-email 2.44.0.478.gd926399ef9-goog Subject: [PATCH v3 07/12] 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 , Kan Liang , James Clark , Athira Rajeev , Colin Ian King , Leo Yan , Song Liu , Ilkka Koskinen , Ben Gainey , K Prateek Nayak , Yanteng Si , Yicong Yang , Sun Haiyong , Ravi Bangoria , Anne Macedo , Changbin Du , Andi Kleen , Thomas Richter , Masami Hiramatsu , zhaimingbing , Li Dong , Paran Lee , elfring@users.sourceforge.net, Markus Elfring , Yang Jihong , 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.478.gd926399ef9-goog