Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3764800pxj; Mon, 7 Jun 2021 20:37:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzY/yLu8PL/44T7F8jPYbuSoeANMG4ajh6+qZO0Y2u5+472vqAPyzg9hiLkUtY8Qc/ke71d X-Received: by 2002:a05:6402:2049:: with SMTP id bc9mr23352119edb.298.1623123462783; Mon, 07 Jun 2021 20:37:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623123462; cv=none; d=google.com; s=arc-20160816; b=SQsf1HAfzPrFTyiavgfkX3+V2MTGioknEYEQuYWJAhsyDd1axtGEL2rDyCSWflfEYz 1ftGANqM1517AMXfOiiCKOZUULrpjEk87z0RIXNe5g6RgOrzjfLwyXUUIXvf24AMqtC+ hNWMk8BGSveZyxgA2WtBNpQOxWAOGbild5syPk3/LprdBKNE093gvgJEavJMaz9KLGb8 caqbwM3+idtfPsqMmLgCfW7JL8EYfX9gXz8hlm24nIzH18CAwKhWF6xjZv62npgoOSO7 XogCLrt6s1mLq48QoPBeZUWhd27/hxF2q9wR8zHDL8zCbyAFalimjowGUk+wB3/9dpqo OtFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=A4xsFglmTSa/aXatgTuVspqBBCLcNC9Fe9Rx99LGnTQ=; b=lEFxi44s/indHR+q5KtHfPgctReNx0X6rYbeF9aauR3NUePEKKUYMSMoMm74jzeFJ6 67zvlZQtggxPSsb8V/+5OnUPArLuAaqGHMgkbxDI1q4cpw62qitlfgKs63XgJUQv/yLI qRI8xnEfi/KAWXz1pvmQ0CDKbome7gnE78YLcKthMc6OjTDQmeMIsdNb/Q2iXec+N9x0 cqxjAIVS7e/MRe48JH7c+6FHK5GALerL3MB/M2Va7rvSL7+Ll929b7eElnwlpATDNZ0v K7I1WjrxHwP/kAfm7qJDXy0pNAk+MnKJLnJ+BFiUT5KHKI0NfM91hbg4/VYYFj5Fmfg0 6GVQ== 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m26si15748509edp.349.2021.06.07.20.37.20; Mon, 07 Jun 2021 20:37:42 -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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231327AbhFHDgW (ORCPT + 99 others); Mon, 7 Jun 2021 23:36:22 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:3464 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231270AbhFHDgP (ORCPT ); Mon, 7 Jun 2021 23:36:15 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4FzbPM16Mkz6wl3; Tue, 8 Jun 2021 11:31:19 +0800 (CST) Received: from dggema757-chm.china.huawei.com (10.1.198.199) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Tue, 8 Jun 2021 11:33:42 +0800 Received: from localhost.localdomain (10.69.192.56) by dggema757-chm.china.huawei.com (10.1.198.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Tue, 8 Jun 2021 11:33:42 +0800 From: Qi Liu To: , CC: , Will Deacon , Mark Rutland Subject: [PATCH v3 8/9] drivers/perf: Simpilfy EVENT ATTR macro in arm_dsu_pmu.c Date: Tue, 8 Jun 2021 11:33:20 +0800 Message-ID: <1623123201-45634-9-git-send-email-liuqi115@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1623123201-45634-1-git-send-email-liuqi115@huawei.com> References: <1623123201-45634-1-git-send-email-liuqi115@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggema757-chm.china.huawei.com (10.1.198.199) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use common macro PMU_EVENT_ATTR_ID to simplify DSU_EVENT_ATTR. Cc: Will Deacon Cc: Mark Rutland Signed-off-by: Qi Liu --- drivers/perf/arm_dsu_pmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/perf/arm_dsu_pmu.c b/drivers/perf/arm_dsu_pmu.c index 196faea..bed8376 100644 --- a/drivers/perf/arm_dsu_pmu.c +++ b/drivers/perf/arm_dsu_pmu.c @@ -82,7 +82,7 @@ })[0].attr.attr) #define DSU_EVENT_ATTR(_name, _config) \ - DSU_EXT_ATTR(_name, dsu_pmu_sysfs_event_show, (unsigned long)_config) + PMU_EVENT_ATTR_ID(_name, dsu_pmu_sysfs_event_show, _config) #define DSU_FORMAT_ATTR(_name, _config) \ DSU_EXT_ATTR(_name, dsu_pmu_sysfs_format_show, (char *)_config) -- 2.7.4