Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp349035pxb; Wed, 14 Apr 2021 17:28:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0cKD6QOxXgWxleO1nedb62sRxrfaGs7HwlB+hYQGouhHgaqRpNukQ0VfjKDEy290YoOj7 X-Received: by 2002:a65:6095:: with SMTP id t21mr901465pgu.383.1618446502747; Wed, 14 Apr 2021 17:28:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618446502; cv=none; d=google.com; s=arc-20160816; b=bL5vfuaSonK1Y0nCNTyLXw3IWh+wYETzvRue0FaU/1wa7yRaqdg6bouryYmfks5yLY Vsve9EfFUqxsQVGOdQd85Kng3lJ0sr+J/q2triUPMQAiDN09Ex3xjh0cCrXCO8OG+uTG DOx3b3FzwdpcTG0afm/OohjtkKws7ZlLXTt7tsrhnP9hkg8aCwr6LeBMjgPZUNZaZYme X7VJaiAQHwusIYrRF0TYvNfPCfqb9uCfG0Qh+f5jrAl3tfy2tXbPCQhpMsNhS4cPP5Du RezhCwuy+WOq0AIcJio7Wf+nDgufQOw8NRCK5rSDYHmd3Hy0O35Uo46tjrD2wdlB9bip VtWA== 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=xNpSULkGvZsF6GX2YmnUUDfzhivePLCuitN+MFMXba4=; b=V9BPizxXk3JIzVJe660uJ/ii6IUNkUB4z9NaJkuKZnikKqUCmo3PwGoMWD4o0KWfqk StjyBkOMh81/d0K4bhG1qTJxz6u9qJAhZeG9oAbe6qkZtjoqwKLgMuv8MXS8J5t/da0N HvfzWEXWehKQ0x23zB1TGI1Wen4OwHIzl1gIPvNibIh/TWUXqNbiWcXhVy9FDGTHxInA GYeDcOiooKb0nny2CpjjSoBkoxfToHC71NKirNxuVxZp+e25JAFoMoo1+7uovmNK2WXC CqUNuOeNjuHA9k0WfEBVaF30/LYr+oK2i2yIb6swb5/1mFfpiSyduJTrmYvqVtns38ki z3Aw== 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 185si1318952pgj.455.2021.04.14.17.28.10; Wed, 14 Apr 2021 17:28:22 -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 S1351602AbhDNNpD (ORCPT + 99 others); Wed, 14 Apr 2021 09:45:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:52418 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351615AbhDNNor (ORCPT ); Wed, 14 Apr 2021 09:44:47 -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 6BC26611B0; Wed, 14 Apr 2021 13:44:26 +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 1lWfoe-007RSZ-OI; Wed, 14 Apr 2021 14:44:24 +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 4/5] sh: Get rid of oprofile leftovers Date: Wed, 14 Apr 2021 14:44:08 +0100 Message-Id: <20210414134409.1266357-5-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 --- arch/sh/kernel/perf_event.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/arch/sh/kernel/perf_event.c b/arch/sh/kernel/perf_event.c index 445e3ece4c23..1d2507f22437 100644 --- a/arch/sh/kernel/perf_event.c +++ b/arch/sh/kernel/perf_event.c @@ -57,24 +57,6 @@ static inline int sh_pmu_initialized(void) return !!sh_pmu; } -const char *perf_pmu_name(void) -{ - if (!sh_pmu) - return NULL; - - return sh_pmu->name; -} -EXPORT_SYMBOL_GPL(perf_pmu_name); - -int perf_num_counters(void) -{ - if (!sh_pmu) - return 0; - - return sh_pmu->num_events; -} -EXPORT_SYMBOL_GPL(perf_num_counters); - /* * Release the PMU if this is the last perf_event. */ -- 2.29.2