From patchwork Sat Oct 12 09:24:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ba Jing X-Patchwork-Id: 13833966 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 80598D1A45A for ; Sat, 12 Oct 2024 09:32:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=AEvKjrzJNbqW6iBl9FniegDFn2ksZl6OZA24oCdZl10=; b=nsruosIvqzvhZDMyU3htqKH4gB lV7LcZ03kfalspmBeXSdq5oQCbQwal/rsXN4Q1v7bvgRb3FFSMMEEFJwudoHNuJf8Xcwz2pMBSbcK zg6pnXnWAFKVQ9Rc5KOrts4JN9LJYXmeEWLjsapWuMbyl6POH9FlfeBuqgYuwixZKr3cwIHSgr8uz 5HoNOqNno1JAbs21A2csdK1ZjV/jNL4DiLm3WtHPKntDAWmXuGMJyJWE9YYB/LpcfqYh8qi/SrX0o YtAd5+YXLyRRukVvCLUF2xeqGs0V3q8REY1KQOvqaDPFQvPdYD8/2Uf/ciFSQKcP7dehL0m9kCSv2 P5T4WG3A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1szYUN-00000000uOj-0cTT; Sat, 12 Oct 2024 09:32:43 +0000 Received: from cmccmta2.chinamobile.com ([111.22.67.135] helo=cmccmta1.chinamobile.com) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1szYSy-00000000tzN-39sD for linux-arm-kernel@lists.infradead.org; Sat, 12 Oct 2024 09:31:18 +0000 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app03-12003 (RichMail) with SMTP id 2ee3670a41de1a6-d99c1; Sat, 12 Oct 2024 17:31:10 +0800 (CST) X-RM-TRANSID: 2ee3670a41de1a6-d99c1 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[223.108.79.97]) by rmsmtp-syy-appsvr02-12002 (RichMail) with SMTP id 2ee2670a41cdd49-0d8c8; Sat, 12 Oct 2024 17:31:10 +0800 (CST) X-RM-TRANSID: 2ee2670a41cdd49-0d8c8 From: Ba Jing To: robin.murphy@arm.com Cc: will@kernel.org, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Ba Jing Subject: [PATCH] perf: arm-cmn: remove unused macro Date: Sat, 12 Oct 2024 17:24:11 +0800 Message-Id: <20241012092411.2497-1-bajing@cmss.chinamobile.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241012_023117_369048_242B8588 X-CRM114-Status: UNSURE ( 9.10 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org By reading the code, I found the marco CMN_HNP_PMU_EVENT_SEL is never referenced in the code. Just remove it. Signed-off-by: Ba Jing --- drivers/perf/arm-cmn.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/perf/arm-cmn.c b/drivers/perf/arm-cmn.c index 397a46410f7c..37b62d0dcc06 100644 --- a/drivers/perf/arm-cmn.c +++ b/drivers/perf/arm-cmn.c @@ -79,7 +79,6 @@ /* Some types are designed to coexist with another device in the same node */ #define CMN_CCLA_PMU_EVENT_SEL 0x008 -#define CMN_HNP_PMU_EVENT_SEL 0x008 /* DTMs live in the PMU space of XP registers */ #define CMN_DTM_WPn(n) (0x1A0 + (n) * 0x18)