Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp349506pxb; Wed, 14 Apr 2021 17:29:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7blaJfPoOtGUnn99ru9v3uNJ4Cjt0U/J3ACJOnpd+pG3h5A1K2zL9rIvhGarQoVOsFYTg X-Received: by 2002:a62:1b97:0:b029:24e:44e9:a8c1 with SMTP id b145-20020a621b970000b029024e44e9a8c1mr854380pfb.19.1618446557622; Wed, 14 Apr 2021 17:29:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618446557; cv=none; d=google.com; s=arc-20160816; b=tDtANr/Cdrd1f6tZeW0csGmAdWFf03ZP7biwDn3dJHWvh0xWRf6dvGLB5jHFrPvXFp QdQL2Jzn8PKoCJw5FQv/2l1oXRAUR+RLrr44qzwimu5UvoHU48rEeKeXAVgKqEVh9Zyq KICE+sRlphU18G0HgCSfZE+wp18cIwyJ29KUQt2I1iuGa77inGOBULHmGN93lHOlEda/ 8QeJC35b+5nLJd0+mmjeL/s3ONZL6DoK6XnH/fCM0piKZY+LuJqAmSEgBP/F45QYztfi Y+TqrDyviJZyY54yiovPzdtvx16haSljye7tPXdI0KWSWbCM2qUdVSq11S4r2beHAAtT UK3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=+VGQk6nrpB5VvV30NIqeSwac9NoVov5SrZypUL5UFl4=; b=UO2kRCn9jB3J/HF/K3Xo7Vun6Zrxc2zjJW37eUZX4fQtuM4hXfH3TGTtvdx3V+kQrc B5I9IPkuslVvk5Yy5/iuUxNaa7f/ozd4VMyQ12qsthbhr3Uja5GcTY+YPQWgV2mvenMN lDIAY1/+45k1NTJw6h8k/dMGQiGIluUGFjwIPihPZtQuWvD8IqZvXwqxcGDJmI3EZ7Sp 8kNtAySNlnbar3ApbGTeppW+45wgFWSXx73jbn/ZL3iuSYu59wGPXCEgSiPH6dBAV58j adr8aNKdWx+10rCutshZQ5mORfuBBcUdPsnUd/emkwhsyjoNj2wGHyLj5rM4idLUrfTt rl/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 1si1073010pfy.340.2021.04.14.17.29.05; Wed, 14 Apr 2021 17:29:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351656AbhDNNpI (ORCPT + 99 others); Wed, 14 Apr 2021 09:45:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:52454 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351623AbhDNNos (ORCPT ); Wed, 14 Apr 2021 09:44:48 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 278D2611F2; Wed, 14 Apr 2021 13:44:27 +0000 (UTC) Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=why.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lWfof-007RSZ-GQ; Wed, 14 Apr 2021 14:44:25 +0100 From: Marc Zyngier To: kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org Cc: Mark Rutland , Will Deacon , Rich Felker , Yoshinori Sato , Peter Zijlstra , Arnaldo Carvalho de Melo , Christian Borntraeger , Heiko Carstens , nathan@kernel.org, Viresh Kumar , James Morse , Suzuki K Poulose , Alexandru Elisei , kernel-team@android.com Subject: [PATCH 5/5] perf: Get rid of oprofile leftovers Date: Wed, 14 Apr 2021 14:44:09 +0100 Message-Id: <20210414134409.1266357-6-maz@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210414134409.1266357-1-maz@kernel.org> References: <20210414134409.1266357-1-maz@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, mark.rutland@arm.com, will@kernel.org, dalias@libc.org, ysato@users.sourceforge.jp, peterz@infradead.org, acme@kernel.org, borntraeger@de.ibm.com, hca@linux.ibm.com, nathan@kernel.org, viresh.kumar@linaro.org, james.morse@arm.com, suzuki.poulose@arm.com, alexandru.elisei@arm.com, kernel-team@android.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org perf_pmu_name() and perf_num_counters() are unused. Drop them. Signed-off-by: Marc Zyngier --- include/linux/perf_event.h | 2 -- kernel/events/core.c | 5 ----- 2 files changed, 7 deletions(-) diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 3f7f89ea5e51..51154ed9a206 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -951,8 +951,6 @@ extern void perf_event_itrace_started(struct perf_event *event); extern int perf_pmu_register(struct pmu *pmu, const char *name, int type); extern void perf_pmu_unregister(struct pmu *pmu); -extern int perf_num_counters(void); -extern const char *perf_pmu_name(void); extern void __perf_event_task_sched_in(struct task_struct *prev, struct task_struct *task); extern void __perf_event_task_sched_out(struct task_struct *prev, diff --git a/kernel/events/core.c b/kernel/events/core.c index 03db40f6cba9..88cb0ba5690b 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -580,11 +580,6 @@ static u64 perf_event_time(struct perf_event *event); void __weak perf_event_print_debug(void) { } -extern __weak const char *perf_pmu_name(void) -{ - return "pmu"; -} - static inline u64 perf_clock(void) { return local_clock(); -- 2.29.2