From patchwork Thu Feb 2 21:47:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Moger, Babu" X-Patchwork-Id: 52180 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp491450wrn; Thu, 2 Feb 2023 13:51:41 -0800 (PST) X-Google-Smtp-Source: AK7set/F9Jhot8PdLAJXHadqIQigOKwrR0vldzr7QSMhvUKMo1SbHApbHUMixnBpAfYWIiUq59/n X-Received: by 2002:a17:90b:3e83:b0:230:3256:2ef3 with SMTP id rj3-20020a17090b3e8300b0023032562ef3mr8062491pjb.43.1675374701085; Thu, 02 Feb 2023 13:51:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1675374701; cv=pass; d=google.com; s=arc-20160816; b=e2PH+s2KqQ8h1i+xOFrtFL1eB6HP+eqMZ+XHilH4Eopbwi0aGokTQ+lJrasOsu6Rg/ ZQldGuVJ9GvuvS3NrbtFJ1JQVDmoyjQLuCa9ojD5kSoqVcMMuSuuZGIjNds9vVS1Zn5G ZaIA0ovrCr6pY+1nQ9LLjAsQEgWPLMj7NUD3TXtJ/zmDgq1jvent3ddPPr30CZhj5TOn 5E/u1SMSnXB91QjQ60MYOWeOVaxRXTkwl60oijzKqXFqTAa10GM2CMKSe/FI2lbmZxgc ndKdILxQBTYBnbdoNbv7Qbimo8lHoUJQBdWsUux2Qbsr0YXDQjHP8u1Hny+N5j5Q34+3 IWqQ== 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=1ovAuZpiTt1LtCVS4njkKI3b17HTdRLm1SUu+c4lkvo=; b=UtMF/EG0DTa7Kcd2AcS+wh8u9uQncXlS7STkBfc4AWxpBNK74rsWnQc9v7RmYqpnQQ fAWtj3ARDYuq0vPz6J9JbGIMtnJ41mDyQJCUEbjiWM4eJQCnYzdjYNrzT7nRtbPnsA0u xH2Z+XPKzb5TjRwXDK9NOshXx9yeDAC3IU6VU/fiAnlSHnQJ+GJaFCVm4xGYS5PTLZvq tHuUlMGuUmbD96Qc2GWa1jYzOARttcZi6R6Egalz48UsqUTCcWOC0P13fK9YYLGFn8uB /PZjuZ+EHshBCYPG23pSwHZT9itIMihKNuXSTm1f0DY7zLFty61cZej9ZUm7l9hf7as4 QpLQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=nNUl5Jh9; 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 me14-20020a17090b17ce00b0022c216a776fsi1014769pjb.1.2023.02.02.13.51.28; Thu, 02 Feb 2023 13:51: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=nNUl5Jh9; 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 S233038AbjBBVra (ORCPT + 99 others); Thu, 2 Feb 2023 16:47:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229712AbjBBVr0 (ORCPT ); Thu, 2 Feb 2023 16:47:26 -0500 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2073.outbound.protection.outlook.com [40.107.220.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BCBF86615; Thu, 2 Feb 2023 13:47:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JKFKqhaPmyEliPWHszF7EmlUiWTSMqRi9YrKNOqoWYo1Hrc1w4OMNlRV+D98I1lYDbRHQDOB8u3eIbL71sk2fKQjdFcZ4/TsP1qdzYyRf3rK1tQFXT62nwzmP+QLBdpah7m1ohBTYDuvbu38aVTMCKc0X5jYEB+iNY+IE/CXHkDY9Q2+NVWtzVhX4IqnZSuP8LOwhujmvwtd30Bi7DepOIz2yRKiiAdeSB91PQ8R1WC0es568+g5ifg1i7MsEb2FiehRFWmnj820MvpmTbq9F86jwvaCKEPJVMLqlPyjTFn4stQzWT9lxjZKnRgQwwEErwKHvhWICA3jNfqUtack1g== 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=1ovAuZpiTt1LtCVS4njkKI3b17HTdRLm1SUu+c4lkvo=; b=Zuht6BLAk13NPPdiAB0Tbym3GcAd/eWb/qkz5rboeWLqEBvD1DIo9IM/v+jKLZU1aG4OReg7cdCCPpEVVFR1joRvK45TptcYEANsxa9o4Tum/em5T8E/P8/RQmzQQrDf2L0GlkdE4nw4JuEYOPFUnzJHAyU4u1pEDCc99NYC0fGtaGE10jk84F2K/kzDyKsMc2DJ18tOCHlqSmL/hbGRgoVxMpg1NNn/wetsvgk/bGqscdU60KlwK6H/+ndxxAgvupZPUjwTdXakqwYJ0YAEDUhkwhO7Ot2vxPCFiD6f+4z+KKTi4BERKZ7qYAhEzqjEZnQ8rYnv4kQqgVLW1+Ebcw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=zytor.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=1ovAuZpiTt1LtCVS4njkKI3b17HTdRLm1SUu+c4lkvo=; b=nNUl5Jh9samnXi9aSO2ZtBhJlIptZ0Gyd4lCapvxmxiHqowuMZQT7FfjKpUSXrwV3z2FKy1nhaV3QBfkyojjfdjvQrDtCEsnibUrRst56ds+LC3Gml8IIKLKZKcvfbf/rohgueXBnDWQwBToHZFIvh2PCa1kZtUGEX7YYsn3HhI= Received: from MW2PR2101CA0007.namprd21.prod.outlook.com (2603:10b6:302:1::20) by DM8PR12MB5479.namprd12.prod.outlook.com (2603:10b6:8:38::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.24; Thu, 2 Feb 2023 21:47:14 +0000 Received: from CO1PEPF00001A60.namprd05.prod.outlook.com (2603:10b6:302:1:cafe::64) by MW2PR2101CA0007.outlook.office365.com (2603:10b6:302:1::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.7 via Frontend Transport; Thu, 2 Feb 2023 21:47:14 +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 CO1PEPF00001A60.mail.protection.outlook.com (10.167.241.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6064.21 via Frontend Transport; Thu, 2 Feb 2023 21:47:14 +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 Feb 2023 15:47:12 -0600 Subject: [RFC v2 PATCH 3/7] x86/resctrl: Rename rftype flags for consistency From: Babu Moger To: , CC: , , , , , , , , , , , Date: Thu, 2 Feb 2023 15:47:12 -0600 Message-ID: <167537443207.647488.2343865571652545811.stgit@bmoger-ubuntu> In-Reply-To: <167537433143.647488.9641864719195184123.stgit@bmoger-ubuntu> References: <167537433143.647488.9641864719195184123.stgit@bmoger-ubuntu> User-Agent: StGit/1.1.dev103+g5369f4c MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PEPF00001A60:EE_|DM8PR12MB5479:EE_ X-MS-Office365-Filtering-Correlation-Id: 40599279-a371-4446-dc3d-08db05670c09 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lUH6fObmYkzPpjUlqdyHrEZfQ4YOEN068tMe46qu3LqZI2ZzFIA+jX7XHA13b4/IRNUKUsKKFRdj08C9Tz4Yf7GP5TTYOwiqGFvNmlv6Ggm83RMLDhoYjZncwwQYldbPd1P4h0gvIe8+Dgtb1mlE+pXDHQXWshqnjtT1r9BUbGWH9HZfjd8aYYyNWzWz4zYFunEo9zssXQylZIT/BBpH+C6ZchNTn4IPU2eYOEcwpvy2/Rupc7AGadBvRyo0hn7m5qtIweH93jfnb122m8na42rEpcYD73SZrSyfqkjhU5+3awNJYJMkaJsb8bWRH/9oDEFKHqPAWepfBxAsI0T/u93DfGK3d0S9umCZU4oqrp+OMqqFfZ7RlCPwKNgH6Gf2RyqUuGXD/fse9eWLRgH1lKVQTiYFPMhrtLJzEgCXO8hzc8y17w/58ysytee7eHpMPJroV4xBogIsnWCPa+wjfsOdODXNfRfv0KK10VQ1UqXV94CsohJKAPHoBgpbmkSuZXxCT50a4vm2oSYpCQ4MRy51d0j2dkSQ77KsGmioGff52N3MceplmACjRUgr4r0makV9YIKYIu+M9csXcdCXEVonIoR4qxnL5CHJM/o6SJAExanuGeT4SllndcZ3Y45nHLa1rIT/8IYPXcvXetfb6M9gmEBLUDTfFNoZn4T4vqUCiEj8WsnZP9n4Xd+5vqLsQguG+kLQNOrNcGG9B0O3V2pqjgNMGmPpW/uaarhbs6LF0dVJftKf1hSzDr7S1DWit18MAdTjo2HzUqNnreuKzw== 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)(7916004)(4636009)(396003)(346002)(376002)(39860400002)(136003)(451199018)(46966006)(40470700004)(36840700001)(47076005)(356005)(81166007)(82310400005)(103116003)(86362001)(40460700003)(40480700001)(36860700001)(82740400003)(33716001)(16576012)(44832011)(5660300002)(54906003)(110136005)(316002)(2906002)(4326008)(8676002)(41300700001)(70586007)(70206006)(7416002)(9686003)(16526019)(26005)(8936002)(83380400001)(336012)(478600001)(426003)(186003)(71626013)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2023 21:47:14.3081 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 40599279-a371-4446-dc3d-08db05670c09 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: CO1PEPF00001A60.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR12MB5479 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?1756757702956716942?= X-GMAIL-MSGID: =?utf-8?q?1756757702956716942?= 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 cccf3fb84b26..018a26b58154 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;