From patchwork Sat Oct 12 09:16:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ba Jing X-Patchwork-Id: 13833965 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 8AB96D1A45B for ; Sat, 12 Oct 2024 09:25:44 +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=kE4r85mo6YT9KxfgwZVAQ3B/gd2+0MpNNHNFiyK4S3o=; b=MnKCzRvTsuMIbx/weNxo3/WEI9 3WtzfPSKTiKjNeLTXKA5zDl0QuPyEBAaDH5yg19HBwS8xOvVfVAHqwYXJcZpbYHngG9ACj1Dkt0e9 Y6KQzd2luSds2j0XDX3PFRZz/3yl3FFCE9Xargb8fzKGER+U4BEzvms3apuZFZFPIxYSFKAZ0sjDw PPz56iH49+5szrbWmSVkX9u4VaaraQVjMg7Zy1XbYZNLbBGF22NvxmjCbR4Eqep2gZpJvdktoGCjM sCWQomQUnlZK27h382IJkSIfsGENuvgK8y7VECR58viXSBHZb/5MWvKitTGdEav7z2uaU9yayr4b4 slfPRN/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1szYNS-00000000ta6-1XGi; Sat, 12 Oct 2024 09:25:34 +0000 Received: from cmccmta6.chinamobile.com ([111.22.67.139] helo=cmccmta2.chinamobile.com) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1szYM4-00000000tT3-06Et for linux-arm-kernel@lists.infradead.org; Sat, 12 Oct 2024 09:24:10 +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-app05-12005 (RichMail) with SMTP id 2ee5670a40328e0-0a8ef; Sat, 12 Oct 2024 17:24:02 +0800 (CST) X-RM-TRANSID: 2ee5670a40328e0-0a8ef X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[223.108.79.97]) by rmsmtp-syy-appsvr05-12005 (RichMail) with SMTP id 2ee5670a40237a1-0594c; Sat, 12 Oct 2024 17:24:02 +0800 (CST) X-RM-TRANSID: 2ee5670a40237a1-0594c From: Ba Jing To: will@kernel.org Cc: mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Ba Jing Subject: [PATCH] perf: arm-ccn: remove unused macros Date: Sat, 12 Oct 2024 17:16:29 +0800 Message-Id: <20241012091629.2369-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_022408_637260_2439392E X-CRM114-Status: UNSURE ( 7.02 ) 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 these marcos are never referenced in the code. Just remove them. Signed-off-by: Ba Jing --- drivers/perf/arm-ccn.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/perf/arm-ccn.c b/drivers/perf/arm-ccn.c index 5c66b9278862..ea878b025d32 100644 --- a/drivers/perf/arm-ccn.c +++ b/drivers/perf/arm-ccn.c @@ -28,12 +28,7 @@ #define CCN_MN_ERRINT_STATUS 0x0008 #define CCN_MN_ERRINT_STATUS__INTREQ__DESSERT 0x11 -#define CCN_MN_ERRINT_STATUS__ALL_ERRORS__ENABLE 0x02 -#define CCN_MN_ERRINT_STATUS__ALL_ERRORS__DISABLED 0x20 #define CCN_MN_ERRINT_STATUS__ALL_ERRORS__DISABLE 0x22 -#define CCN_MN_ERRINT_STATUS__CORRECTED_ERRORS_ENABLE 0x04 -#define CCN_MN_ERRINT_STATUS__CORRECTED_ERRORS_DISABLED 0x40 -#define CCN_MN_ERRINT_STATUS__CORRECTED_ERRORS_DISABLE 0x44 #define CCN_MN_ERRINT_STATUS__PMU_EVENTS__ENABLE 0x08 #define CCN_MN_ERRINT_STATUS__PMU_EVENTS__DISABLED 0x80 #define CCN_MN_ERRINT_STATUS__PMU_EVENTS__DISABLE 0x88