Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4079695rdb; Mon, 11 Dec 2023 08:16:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFSEgk7nEwCO+iZqIHBn9CDEP/yCdGzxMIX7dtHly11aooXoSUe25KtDLlsEWAXaybvx7+M X-Received: by 2002:a17:902:e808:b0:1d1:c917:2e4f with SMTP id u8-20020a170902e80800b001d1c9172e4fmr2171069plg.107.1702311389960; Mon, 11 Dec 2023 08:16:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702311389; cv=none; d=google.com; s=arc-20160816; b=YFSQrdOsWIPwxUh71VtohF5QPGtGnrRriIxOeqPqyOWUHjVFmfiujwwl7TN7sAMOUb wuMaqAw1LsLvc4NpTTgcAno+WQunCoqxhpiOkIXzcAkuFHUP47uh8gdqhUKww5TCQyUC 8Q15Fswx/8qadXj/1pYW91wM7b0rDCBKVFvl9S/yoPr+PWs9pb0vJN0z5fc6eos0g4bC 6gtH+L1MuFT2h5ChvyMXMnUzVKaHaR7JKUHLw5IcRlqrlQlXOBE1UMWgUVtO0VXSGwIa IYHybl1z2VN7xZU1ACrzdUB+rvHOhzpNNjibyPlQqWlH1wz+BoGp2AuhZ1pI1+LSnIVk B6yg== 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=VugBHUdVoiZ0C/lSNURuV0vcliiLlQ1ZvQG4B7cn2Qw=; fh=oRTr1d7mCDMKQCV8DFHHjee6VGmKsUMMuSV4+yK9gas=; b=APfpPAxDattfLyEl70N4WUhiqQ5EmWlC6p6EC0Te+12tVeXL7QyiOEbHRRvsSgfzWW oGusdvD0TZU9OdAk7sNXisAqDex0ieZk2n/Y+K8zlXynrii1KPslLaJUmuYPCCpoTCId ppV7/FWiEc4Ayvss6cY+TQ3BqViTbLHbyCg/jV4gKkmI2J6t/H1rD3qQ3/IttwdPQeGB e7KBltQQA2oMYLSorrvme+drOFdIeDpJ2FMF9o21eLL7iveqPIuu8/AOMiUICEDhwozz SwiseY2L3qbu4eCYP8W/XUxAFltbbwkO3LPC2AsPCvQfK7EBvsj+t3XpJHczy4pxnSgO RypA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id p2-20020a170902bd0200b001d0940db070si6216529pls.498.2023.12.11.08.16.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 08:16:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 970308062DD4; Mon, 11 Dec 2023 08:16:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344698AbjLKQQN (ORCPT + 99 others); Mon, 11 Dec 2023 11:16:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344844AbjLKQPt (ORCPT ); Mon, 11 Dec 2023 11:15:49 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 09F991BCE; Mon, 11 Dec 2023 08:15:20 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5844316F2; Mon, 11 Dec 2023 08:16:06 -0800 (PST) Received: from e127643.broadband (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id D8BD53F738; Mon, 11 Dec 2023 08:15:15 -0800 (PST) From: James Clark To: linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, suzuki.poulose@arm.com, will@kernel.org, mark.rutland@arm.com, anshuman.khandual@arm.com Cc: namhyung@gmail.com, James Clark , Catalin Marinas , Jonathan Corbet , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Russell King , Marc Zyngier , Oliver Upton , James Morse , Zenghui Yu , Paolo Bonzini , Shuah Khan , Zaid Al-Bassam , Raghavendra Rao Ananta , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v7 07/11] perf/arm_dmc620: Remove duplicate format attribute #defines Date: Mon, 11 Dec 2023 16:13:19 +0000 Message-Id: <20231211161331.1277825-8-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231211161331.1277825-1-james.clark@arm.com> References: <20231211161331.1277825-1-james.clark@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 11 Dec 2023 08:16:26 -0800 (PST) These were copied from the SPE driver, but now they're in the arm_pmu.h header so delete them and use the header instead. Signed-off-by: James Clark --- drivers/perf/arm_dmc620_pmu.c | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/drivers/perf/arm_dmc620_pmu.c b/drivers/perf/arm_dmc620_pmu.c index 30cea6859574..9de9dc8db8db 100644 --- a/drivers/perf/arm_dmc620_pmu.c +++ b/drivers/perf/arm_dmc620_pmu.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -189,27 +190,6 @@ static const struct attribute_group dmc620_pmu_events_attr_group = { #define ATTR_CFG_FLD_clkdiv2_LO 9 #define ATTR_CFG_FLD_clkdiv2_HI 9 -#define __GEN_PMU_FORMAT_ATTR(cfg, lo, hi) \ - (lo) == (hi) ? #cfg ":" #lo "\n" : #cfg ":" #lo "-" #hi - -#define _GEN_PMU_FORMAT_ATTR(cfg, lo, hi) \ - __GEN_PMU_FORMAT_ATTR(cfg, lo, hi) - -#define GEN_PMU_FORMAT_ATTR(name) \ - PMU_FORMAT_ATTR(name, \ - _GEN_PMU_FORMAT_ATTR(ATTR_CFG_FLD_##name##_CFG, \ - ATTR_CFG_FLD_##name##_LO, \ - ATTR_CFG_FLD_##name##_HI)) - -#define _ATTR_CFG_GET_FLD(attr, cfg, lo, hi) \ - ((((attr)->cfg) >> lo) & GENMASK_ULL(hi - lo, 0)) - -#define ATTR_CFG_GET_FLD(attr, name) \ - _ATTR_CFG_GET_FLD(attr, \ - ATTR_CFG_FLD_##name##_CFG, \ - ATTR_CFG_FLD_##name##_LO, \ - ATTR_CFG_FLD_##name##_HI) - GEN_PMU_FORMAT_ATTR(mask); GEN_PMU_FORMAT_ATTR(match); GEN_PMU_FORMAT_ATTR(invert); -- 2.34.1