From patchwork Thu Mar 2 20:24:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Moger, Babu" X-Patchwork-Id: 63559 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp55025wrd; Thu, 2 Mar 2023 12:29:41 -0800 (PST) X-Google-Smtp-Source: AK7set+SeFkiNHjLpZ9Zaz03gulbGIMqrfoZvc8qrG14YPU/if56BFIuNuylCJ+JBhoMOd7nDNlA X-Received: by 2002:a17:907:2117:b0:87b:d3f3:dcf3 with SMTP id qn23-20020a170907211700b0087bd3f3dcf3mr11665403ejb.35.1677788981445; Thu, 02 Mar 2023 12:29:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1677788981; cv=pass; d=google.com; s=arc-20160816; b=v6oQPBYgzva6SAFeiUOSlw+Yhd2z+mMclfyfjv2ywsbb7Uyq9Iqz+8GzPlHsOyEsiq ZkuXF0fB2MqV8xtiTQVOdllF+KM8hEc2ekBrpALoVzlD4XoKAkfOXqBjVZgOCygoggWn lPhV1rjnu9E0fykeAWmMydP4c0UPw8FuhCYj8i/FzzIbZALoWwW2JVS1i3JUdCEsb2cb NYXnP/wNMtCp/ftVlbdcawfp3HGNjy2772yXiM7ejnIl/S4+MuWyAdY5QG3LeN3tTQ4D KDPSNVl9w6yx9Bve8NAxLdm1lBLyRLcnPWFbs1ftVt9RUwd5qISYvKQ9maBfWgxry6EN 2AqA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:dkim-signature; bh=OdTd8HNBAa7A+5TsTnvnb1X4tNBgd+K9CEuP23cV5LE=; b=qzWua9BwTALREhnp71dt5IW1KEdK8XnrywgroCsvat3Xp+qknWwkzXew7SR2RDMiRn 2pkkBcs9CCl9AxN4fbmFE9JK1dbyNGK5sWpnjOsrqfBMbW+odpHEu1K1plAFDyxq1Ax/ rHZmWlJjeX6rnOChjJioG9J+SDD6iUumzoOu9pxU6SEtKienGPro/6bpZDnJNqNB8Fm1 vokmD+lI1JsT46AZS3GN8NTPhtwcOwxp1gNTr7XLLswksBquye69SxF8Tbeo747gKWAo NlxQ8iEQ/qxXGakETdTFfShbjZJIsRQoLF+ZrO+TsnO2q7HwGuiciIMilX7K7Znmk5QO 8zwQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=Xyt05WYD; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v19-20020a170906339300b008f4625e4c26si202534eja.480.2023.03.02.12.29.19; Thu, 02 Mar 2023 12:29:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=Xyt05WYD; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229693AbjCBUZE (ORCPT + 99 others); Thu, 2 Mar 2023 15:25:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjCBUZC (ORCPT ); Thu, 2 Mar 2023 15:25:02 -0500 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2063.outbound.protection.outlook.com [40.107.94.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C411555060; Thu, 2 Mar 2023 12:24:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DUKm74O44RkBqIp71/ZnN3xCFgszgenCse/QlrxO2LX6ZNNesS04N61jEt1DhKM009/JlCCskX3PbWhavFnJKki8BrlzKwPk0iic3e47jn8heifITPDjph89xoGV3UyWCGIpJaM1k6PRqE3MKoKJV8zITkl368Hq0CsJBVCiXbtLyVD4MRmC7X+ys50aNFo9N6nchl9eOG3folt0WG7C3m+ceuMnoWC9PkvJX+UDHCBuCnAB976U303z8vaPKD+rjpbab6jzm9DdCCCEYo00xtGusY456oE+TCjy28I2vxJIAgAIQR1nUcE5rPsC/wVekC1HCoZi+LpcGV8yqvVJvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=OdTd8HNBAa7A+5TsTnvnb1X4tNBgd+K9CEuP23cV5LE=; b=L4HFh7Btr64sMaj1ZRw8bZ126lJZN/MkFGBnSHdbSuURKM8fZUV1KMBo7O5TtxptSxa7JXUIpAwmWvz+X7N589+ThoU/iWoaw4LroeMA9s0NzXj7fbEWglLYwFKinZlWpxLLLi1CnViokrR02IpwJLm3PplTzFb4CvD3VpbLCiAH8VYZ/oiOq9qnpMXonu6lMSQ1p6yhoqTsYYdN2L/kewkhXNcjNNOHavFtAR0Axma5+MwuxZMPHPvxYy8CxpgCDC6eLb6X72XF6LhOhnQi148jSAP3feur45sWSYrYf8a03jpQTxpBYBopedYMw4ECOwuFhvF9DByxwTlaDcSmjg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=quicinc.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OdTd8HNBAa7A+5TsTnvnb1X4tNBgd+K9CEuP23cV5LE=; b=Xyt05WYDZ+tdTOlsTI1AZpBnDIwS0bwNDe45K+Tfd2AzLSWQiQqzU9t4IcCDh4dJxNGs0JsamQy0XRDNX2psNwj+/xYVE2PHcb8b7qdh209vySxpqdKNQ6iuPG8PSphqGV6yhkls7dXV7osrLvwKcBFlYDyNAi4+IY3KJ6kaV9k= Received: from DM6PR10CA0030.namprd10.prod.outlook.com (2603:10b6:5:60::43) by DS7PR12MB5743.namprd12.prod.outlook.com (2603:10b6:8:72::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.17; Thu, 2 Mar 2023 20:24:42 +0000 Received: from DS1PEPF0000E631.namprd02.prod.outlook.com (2603:10b6:5:60:cafe::54) by DM6PR10CA0030.outlook.office365.com (2603:10b6:5:60::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.19 via Frontend Transport; Thu, 2 Mar 2023 20:24:42 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DS1PEPF0000E631.mail.protection.outlook.com (10.167.17.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6156.12 via Frontend Transport; Thu, 2 Mar 2023 20:24:42 +0000 Received: from [127.0.1.1] (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 2 Mar 2023 14:24:40 -0600 Subject: [PATCH v3 3/7] x86/resctrl: Rename rftype flags for consistency From: Babu Moger To: , , , , CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Date: Thu, 2 Mar 2023 14:24:39 -0600 Message-ID: <167778867966.1053859.17317446376632380238.stgit@bmoger-ubuntu> In-Reply-To: <167778850105.1053859.14596357862185564029.stgit@bmoger-ubuntu> References: <167778850105.1053859.14596357862185564029.stgit@bmoger-ubuntu> User-Agent: StGit/1.1.dev103+g5369f4c MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0000E631:EE_|DS7PR12MB5743:EE_ X-MS-Office365-Filtering-Correlation-Id: 355c1a32-e162-4ec2-e6d7-08db1b5c280c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qaV05FEy2Dgm1lsX+24cQ9p0h0fS+OcQ66dwufocjRxxr76LoX2VS5Ytst+ti8aQwXljF418meeK0fQcbZyiqUyoLgb98reEhBLPUqXCOc6tfxcKUZwgimJ+huoa2PYsEDvH+8cjvjyQ1hqXP0n6/VdGFZrc+PAypq3CAYACOqMEXVs9CXvWFgkMGnf53gqD4eR3ABTAPpYYrV88xcZ9bBGVBVndwcB4bOLgFiFf44yywea6Px6CHmhZiLKk6HHiGqkYVt7DJz2x3WZnF5/nDCjvFrl74jclAk7KIZ2LVENX2bZQphswbC2VNHtTPLKXYrUaK0JW/Iun7P/qfe3RJH6x80y2Srf4UuT4IqiskOauVi6ptpmJzKuZWIIBr0ZLIWO9RGDQ00tfvaAJExbKXAOgcukM6jkbqHJ0xf8y9YpO+VLwguAf4xtwOLrKd2ojve7wPvH9IqD2dOu2H+cmPXuCWuB3Whcdxaq8Zm+JYVbsHAUsMQw0U5b7AJB+wLEBboorLrfoBk7zDxvqvAdeoBkcxvk0j0kgWPG7hgnizEoiuywZfFSvNxwbwjIYA8AmucG5ntOiU+3aw0IcMS4JWLaCNA3z3iN5bjeou3dgpjnuxv29JaPRqxWw8BAUjhtNJG4te9do1Vn19z2wNHheGEVYlU/wxO/2v8ni8tlHRMf7bnv/L85bQ6no5iglEyyHU05HahB/WPIm2ZeUHjyRU36db0Mk1c5TD7AKwYQ6CVQERn1NCrb1R/Dxw32yr9OciEQOBuSsM1WVCFfzHSomdg== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230025)(4636009)(7916004)(39860400002)(346002)(396003)(376002)(136003)(451199018)(36840700001)(40470700004)(46966006)(103116003)(5660300002)(4326008)(44832011)(2906002)(7416002)(41300700001)(40480700001)(7406005)(8936002)(70206006)(86362001)(81166007)(356005)(8676002)(82740400003)(36860700001)(54906003)(82310400005)(316002)(16576012)(478600001)(110136005)(33716001)(70586007)(83380400001)(426003)(47076005)(186003)(336012)(40460700003)(26005)(9686003)(16526019)(71626013)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Mar 2023 20:24:42.5151 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 355c1a32-e162-4ec2-e6d7-08db1b5c280c X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF0000E631.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB5743 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759289258903768391?= X-GMAIL-MSGID: =?utf-8?q?1759289258903768391?= The rftype flags have two different prefixes even though they are used for the same purpose. Change the prefix to RFTYPE_ for all the flags. Signed-off-by: Babu Moger --- arch/x86/kernel/cpu/resctrl/internal.h | 8 +++--- arch/x86/kernel/cpu/resctrl/rdtgroup.c | 42 ++++++++++++++++---------------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/arch/x86/kernel/cpu/resctrl/internal.h b/arch/x86/kernel/cpu/resctrl/internal.h index 571145d75d29..2cfc3c431d5b 100644 --- a/arch/x86/kernel/cpu/resctrl/internal.h +++ b/arch/x86/kernel/cpu/resctrl/internal.h @@ -248,10 +248,10 @@ struct rdtgroup { #define RFTYPE_TOP BIT(6) #define RFTYPE_RES_CACHE BIT(8) #define RFTYPE_RES_MB BIT(9) -#define RF_CTRL_INFO (RFTYPE_INFO | RFTYPE_CTRL) -#define RF_MON_INFO (RFTYPE_INFO | RFTYPE_MON) -#define RF_TOP_INFO (RFTYPE_INFO | RFTYPE_TOP) -#define RF_CTRL_BASE (RFTYPE_BASE | RFTYPE_CTRL) +#define RFTYPE_CTRL_INFO (RFTYPE_INFO | RFTYPE_CTRL) +#define RFTYPE_MON_INFO (RFTYPE_INFO | RFTYPE_MON) +#define RFTYPE_TOP_INFO (RFTYPE_INFO | RFTYPE_TOP) +#define RFTYPE_CTRL_BASE (RFTYPE_BASE | RFTYPE_CTRL) /* List of all resource groups */ extern struct list_head rdt_all_groups; diff --git a/arch/x86/kernel/cpu/resctrl/rdtgroup.c b/arch/x86/kernel/cpu/resctrl/rdtgroup.c index 3c86506e54c1..fc7d1e778bff 100644 --- a/arch/x86/kernel/cpu/resctrl/rdtgroup.c +++ b/arch/x86/kernel/cpu/resctrl/rdtgroup.c @@ -1691,77 +1691,77 @@ static struct rftype res_common_files[] = { .mode = 0444, .kf_ops = &rdtgroup_kf_single_ops, .seq_show = rdt_last_cmd_status_show, - .fflags = RF_TOP_INFO, + .fflags = RFTYPE_TOP_INFO, }, { .name = "num_closids", .mode = 0444, .kf_ops = &rdtgroup_kf_single_ops, .seq_show = rdt_num_closids_show, - .fflags = RF_CTRL_INFO, + .fflags = RFTYPE_CTRL_INFO, }, { .name = "mon_features", .mode = 0444, .kf_ops = &rdtgroup_kf_single_ops, .seq_show = rdt_mon_features_show, - .fflags = RF_MON_INFO, + .fflags = RFTYPE_MON_INFO, }, { .name = "num_rmids", .mode = 0444, .kf_ops = &rdtgroup_kf_single_ops, .seq_show = rdt_num_rmids_show, - .fflags = RF_MON_INFO, + .fflags = RFTYPE_MON_INFO, }, { .name = "cbm_mask", .mode = 0444, .kf_ops = &rdtgroup_kf_single_ops, .seq_show = rdt_default_ctrl_show, - .fflags = RF_CTRL_INFO | RFTYPE_RES_CACHE, + .fflags = RFTYPE_CTRL_INFO | RFTYPE_RES_CACHE, }, { .name = "min_cbm_bits", .mode = 0444, .kf_ops = &rdtgroup_kf_single_ops, .seq_show = rdt_min_cbm_bits_show, - .fflags = RF_CTRL_INFO | RFTYPE_RES_CACHE, + .fflags = RFTYPE_CTRL_INFO | RFTYPE_RES_CACHE, }, { .name = "shareable_bits", .mode = 0444, .kf_ops = &rdtgroup_kf_single_ops, .seq_show = rdt_shareable_bits_show, - .fflags = RF_CTRL_INFO | RFTYPE_RES_CACHE, + .fflags = RFTYPE_CTRL_INFO | RFTYPE_RES_CACHE, }, { .name = "bit_usage", .mode = 0444, .kf_ops = &rdtgroup_kf_single_ops, .seq_show = rdt_bit_usage_show, - .fflags = RF_CTRL_INFO | RFTYPE_RES_CACHE, + .fflags = RFTYPE_CTRL_INFO | RFTYPE_RES_CACHE, }, { .name = "min_bandwidth", .mode = 0444, .kf_ops = &rdtgroup_kf_single_ops, .seq_show = rdt_min_bw_show, - .fflags = RF_CTRL_INFO | RFTYPE_RES_MB, + .fflags = RFTYPE_CTRL_INFO | RFTYPE_RES_MB, }, { .name = "bandwidth_gran", .mode = 0444, .kf_ops = &rdtgroup_kf_single_ops, .seq_show = rdt_bw_gran_show, - .fflags = RF_CTRL_INFO | RFTYPE_RES_MB, + .fflags = RFTYPE_CTRL_INFO | RFTYPE_RES_MB, }, { .name = "delay_linear", .mode = 0444, .kf_ops = &rdtgroup_kf_single_ops, .seq_show = rdt_delay_linear_show, - .fflags = RF_CTRL_INFO | RFTYPE_RES_MB, + .fflags = RFTYPE_CTRL_INFO | RFTYPE_RES_MB, }, /* * Platform specific which (if any) capabilities are provided by @@ -1780,7 +1780,7 @@ static struct rftype res_common_files[] = { .kf_ops = &rdtgroup_kf_single_ops, .write = max_threshold_occ_write, .seq_show = max_threshold_occ_show, - .fflags = RF_MON_INFO | RFTYPE_RES_CACHE, + .fflags = RFTYPE_MON_INFO | RFTYPE_RES_CACHE, }, { .name = "mbm_total_bytes_config", @@ -1827,7 +1827,7 @@ static struct rftype res_common_files[] = { .kf_ops = &rdtgroup_kf_single_ops, .write = rdtgroup_schemata_write, .seq_show = rdtgroup_schemata_show, - .fflags = RF_CTRL_BASE, + .fflags = RFTYPE_CTRL_BASE, }, { .name = "mode", @@ -1835,14 +1835,14 @@ static struct rftype res_common_files[] = { .kf_ops = &rdtgroup_kf_single_ops, .write = rdtgroup_mode_write, .seq_show = rdtgroup_mode_show, - .fflags = RF_CTRL_BASE, + .fflags = RFTYPE_CTRL_BASE, }, { .name = "size", .mode = 0444, .kf_ops = &rdtgroup_kf_single_ops, .seq_show = rdtgroup_size_show, - .fflags = RF_CTRL_BASE, + .fflags = RFTYPE_CTRL_BASE, }, }; @@ -1899,7 +1899,7 @@ void __init thread_throttle_mode_init(void) if (!rft) return; - rft->fflags = RF_CTRL_INFO | RFTYPE_RES_MB; + rft->fflags = RFTYPE_CTRL_INFO | RFTYPE_RES_MB; } void __init mbm_config_rftype_init(const char *config) @@ -1908,7 +1908,7 @@ void __init mbm_config_rftype_init(const char *config) rft = rdtgroup_get_rftype_by_name(config); if (rft) - rft->fflags = RF_MON_INFO | RFTYPE_RES_CACHE; + rft->fflags = RFTYPE_MON_INFO | RFTYPE_RES_CACHE; } /** @@ -2043,21 +2043,21 @@ static int rdtgroup_create_info_dir(struct kernfs_node *parent_kn) if (IS_ERR(kn_info)) return PTR_ERR(kn_info); - ret = rdtgroup_add_files(kn_info, RF_TOP_INFO); + ret = rdtgroup_add_files(kn_info, RFTYPE_TOP_INFO); if (ret) goto out_destroy; /* loop over enabled controls, these are all alloc_capable */ list_for_each_entry(s, &resctrl_schema_all, list) { r = s->res; - fflags = r->fflags | RF_CTRL_INFO; + fflags = r->fflags | RFTYPE_CTRL_INFO; ret = rdtgroup_mkdir_info_resdir(s, s->name, fflags); if (ret) goto out_destroy; } for_each_mon_capable_rdt_resource(r) { - fflags = r->fflags | RF_MON_INFO; + fflags = r->fflags | RFTYPE_MON_INFO; sprintf(name, "%s_MON", r->name); ret = rdtgroup_mkdir_info_resdir(r, name, fflags); if (ret) @@ -3554,7 +3554,7 @@ static int __init rdtgroup_setup_root(void) list_add(&rdtgroup_default.rdtgroup_list, &rdt_all_groups); - ret = rdtgroup_add_files(kernfs_root_to_node(rdt_root), RF_CTRL_BASE); + ret = rdtgroup_add_files(kernfs_root_to_node(rdt_root), RFTYPE_CTRL_BASE); if (ret) { kernfs_destroy_root(rdt_root); goto out;