From patchwork Sat Oct 12 07:45:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ba Jing X-Patchwork-Id: 13833962 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 C8951D1A431 for ; Sat, 12 Oct 2024 07:52:22 +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=WLTBX03P7ZggpaeRbOZ4DOvgu7QJkr/IV3BrL5gSFeI=; b=KZ31REA8JbLcRCY5Kh43GJn6pW ooZlPfOYNca+F+BKByv+WfoY67F9SlEqGRgAjKbm0vP80ArwYzHQUW8ejyLBQcjokW1oBOxiPhla1 nzxu05KO2biZcXeOQj7Jzjk4P65miPB8lCDcEUsz6NiIwCdkyjxpG/EO1fH2cBau2lRze+AIc37Pa PZ8FtaBB993I5Kws8N5IZMd+0yEw+M0skjN/xTgIhKo49bhp8SutmetX0e2P3UDC8UsW73f+RleY4 vedrwSBxG8KWzaW6YgbTgMj/h72fjTADrC/Tf2Q7DRyYcdNNrxpV6ETuyDVBNrfXbAiM+9+usPv5v HpVg8U4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1szWv8-00000000mG4-3Bmq; Sat, 12 Oct 2024 07:52:14 +0000 Received: from cmccmta8.chinamobile.com ([111.22.67.151] helo=cmccmta2.chinamobile.com) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1szWp7-00000000lCf-3vLZ for linux-arm-kernel@lists.infradead.org; Sat, 12 Oct 2024 07:46:07 +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-app06-12006 (RichMail) with SMTP id 2ee6670a292f361-d7c28; Sat, 12 Oct 2024 15:45:53 +0800 (CST) X-RM-TRANSID: 2ee6670a292f361-d7c28 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[223.108.79.97]) by rmsmtp-syy-appsvr09-12009 (RichMail) with SMTP id 2ee9670a2920a83-01c11; Sat, 12 Oct 2024 15:45:52 +0800 (CST) X-RM-TRANSID: 2ee9670a2920a83-01c11 From: Ba Jing To: xueshuai@linux.alibaba.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: alibaba_uncore_drw_pmu: remove unused macro Date: Sat, 12 Oct 2024 15:45:34 +0800 Message-Id: <20241012074534.1942-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_004602_756342_E066FEE4 X-CRM114-Status: UNSURE ( 7.72 ) 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 ALI_DRW_PMU_CNT_STATE is never referenced in the code. Just remove it. Signed-off-by: Ba Jing --- drivers/perf/alibaba_uncore_drw_pmu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/perf/alibaba_uncore_drw_pmu.c b/drivers/perf/alibaba_uncore_drw_pmu.c index c6ff1bc7d336..8218daddf370 100644 --- a/drivers/perf/alibaba_uncore_drw_pmu.c +++ b/drivers/perf/alibaba_uncore_drw_pmu.c @@ -43,7 +43,6 @@ #define ALI_DRW_PMU_CNT_STOP BIT(1) #define ALI_DRW_PMU_CNT_START BIT(0) -#define ALI_DRW_PMU_CNT_STATE 0xC04 #define ALI_DRW_PMU_TEST_CTRL 0xC08 #define ALI_DRW_PMU_CNT_PRELOAD 0xC0C