Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp647123rdb; Thu, 1 Feb 2024 22:21:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IHQL4ziQVgcky09XzlJKci4/ZILQpNEuozmdKYjUVwEWux6Ei706QbelkmIZTGFA3GdcSSo X-Received: by 2002:a17:903:2282:b0:1d7:617f:6dea with SMTP id b2-20020a170903228200b001d7617f6deamr8055892plh.59.1706854869018; Thu, 01 Feb 2024 22:21:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706854869; cv=pass; d=google.com; s=arc-20160816; b=wkz/BPXbbL8zVurkh27cSKcm9n4XvQS1jrTAusKMkVXCQa/92WyLeSB/H7eRh4saA/ fHEHSyVG/v64we/pgeIx4kO4Qqt4Pmo7B2dyb+FgpyAKdZDTe5y6DXl61rOBnCznWnE5 yuXdHm2Pe5WPtt2Td9zyPoBxrGRxBIsI0nUKF6i+H8nIPfkIivZCh3G7r2UJCUlSg0xV P9EqC8Njad89Mt9wrT8VnriWtvGShVYge+OcWfiD+0PlVsZ3DrLv3Ud0XKSpRdcIqXNJ ZkRPH5cmnxtN9enYAkPf004Ly1FKi+vOg2r4sLqWHriaBsgEhjgaOoRHQzNHUI0ZqEMW 3PeA== 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=9ypNKo2tr4KsqSZVI47f8lu+x9dprlYfSiowX/NLn3s=; fh=gDEMEDBPKsW1ezmKpoojDhd7zd5FDffroA1AsUATJu0=; b=hGsdIpe0ev0Oe/f4rNE6EPfBPN8fQSK/26xiXnepawCuTA76ARNw6bUvRs6CI+yi0B TWxweyBvXxzlnrvjSXbfYAqDjjPQdLsg0p9a0rXy/NAVRvyAKM/Qbk9dHVUpvv1mlIp1 tkNAoa8sjsepd/apDyovQr4WTt5UNHbbZt0IIn0UsDad2v/TS9BxflDiHN23OoX9Mj85 qVoLlPTqvujsrCdpJsLOgPZdSixgVknZJdL3z9/3JKtfxnaXjHgmQmLhOhtyAVj01rqM UKj5SxGbkxoAq/X6wSSIyOXD6nvbMpaS9EXcVaJb+zoBeY+6XO0k54DsujIg5oALYEPf G/Ow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Vb22f27d; 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-49259-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49259-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=1; AJvYcCVDY1vUOL+4zrGeiAzqRoSHDVxzh+T7Rwgl5vWtdrMcyLLm4Oi4OMbWCxrB4kSADGJI2xigKGX6gtDSJkTdlBJPxs4FtufGoPpXopqvqg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c5-20020a170903234500b001d8d6ff3f0esi1164987plh.274.2024.02.01.22.21.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 22:21:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49259-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Vb22f27d; 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-49259-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49259-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 6D8B128D5D4 for ; Fri, 2 Feb 2024 06:20:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE374179AA; Fri, 2 Feb 2024 06:16:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Vb22f27d" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.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 9DDE03FB37 for ; Fri, 2 Feb 2024 06:16:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706854595; cv=none; b=rDwnFSObHkfOAw8GrRlRbU3hQw6xqgXW4FtBMY8HrX1Fvb+DolhON9bOQLbUd6eZAAICxKe2wPouvkbxQHOIrdKm8GoD5CXuv6EoorUsWQ1x2TWZDFP1vz4s5RKypnFtpKqgnYUXIGoT+SR1nq9EUhyC2q2D5RgICmGsfInIZ4A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706854595; c=relaxed/simple; bh=WyIYFrIhagbqEpEtSnjdCLJyMzbzoqJYvfr5Sd4U2xw=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Content-Type; b=uezguFm+SX3x6zaoZaMajBq9JTE8JyiF2S246T1V+79QcOlghzH54QcEWQi0PliNGOZG6vddVfxktzDZP95ToKLLOSdk2TT+cyCG9OmxTV8QFR6oK8WMQC2xJP0myvOMg5oLd3ibF3Xoxyh5v3+Soiw6k7UbQEttTo1vcqExlJo= 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=Vb22f27d; arc=none smtp.client-ip=209.85.128.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-yw1-f202.google.com with SMTP id 00721157ae682-60406626b50so38939417b3.0 for ; Thu, 01 Feb 2024 22:16:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1706854593; x=1707459393; 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=9ypNKo2tr4KsqSZVI47f8lu+x9dprlYfSiowX/NLn3s=; b=Vb22f27dMpxIkeXh0L5WJ4HCOXp8tebLiiFazOzgAIuAzCgp1FwUyln3t/tXFvexWg BFif2qdUFnp1pFfLJd1qq6nvbpGn+4K9aEI4G06OJ62lb+y5GYcjBpXvcNTEHqY4xfWA 4rOa+7Y15HmQ3hSZOqXbOqteCZDzOSONtv8ZUTe9D1SPbCdwmv0SBGo3Hii7F5e0gooD Px4HEM0yrUJlaTw51YYLigJ4ZUHU70fYgmi1UCMlFCmylLTbbfb5R2uAcooS7rTvFC0s kYDEwC6sySJYoeuWabfjkjDHUEtjWMUOZjd12OKS0X8Ix0wDcO1pYy4d7M99QMP7166t s9cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706854593; x=1707459393; 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=9ypNKo2tr4KsqSZVI47f8lu+x9dprlYfSiowX/NLn3s=; b=Bes0M9zcJVzbLUooDSDVnMKE0xG20D2xIZwkGZ7lZR2du8qLNBmg2TbG1jzWQG/1OG 0fhboehnndIsnWLcLKBBdcfTD7GrpIp6xnq7T8MoCILKJ90cL1PTOjCI5O2AQEjhQOvq 8ICs/slAVXTX+rXo5XS0+VlQGcZLkOITSXoVh4jtCDZYlLj7XIdVmvpV1MmOQMH/nQCY u7ctFhu/ah2YOCcytJLFRmMK6zb06VGXaBNduFP04TLLv/j/ClB2HeNeS5gWsg2iO6J7 g+8QVCixm0vXYGmwqjVjRd1LB+PZf1JX+rDETOVHy973lyKyMQoBYzVpi/DprNg6gvHf Z3tQ== X-Gm-Message-State: AOJu0YyN4O6EX2NMgZkf9hNJjJbeo0d5UrF9mK1jEVfIPgE3gS4Er4Rx W2YKEFjfURkq83FIaLFgp763joKFl0AF+n0ypng22qJ7PEIdxT3sBmJO8r5lzmxrwf+r8px7K8U +QZvo8Q== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:a85f:db1d:a66b:7f53]) (user=irogers job=sendgmr) by 2002:a05:690c:84:b0:604:2252:7827 with SMTP id be4-20020a05690c008400b0060422527827mr331617ywb.10.1706854592816; Thu, 01 Feb 2024 22:16:32 -0800 (PST) Date: Thu, 1 Feb 2024 22:15:27 -0800 In-Reply-To: <20240202061532.1939474-1-irogers@google.com> Message-Id: <20240202061532.1939474-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: <20240202061532.1939474-1-irogers@google.com> X-Mailer: git-send-email 2.43.0.594.gd9cf4e227d-goog Subject: [PATCH v8 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 , "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 , 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.594.gd9cf4e227d-goog