From nobody Fri Dec 19 11:29:38 2025 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA92E21D5AA for ; Fri, 11 Apr 2025 16:44:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744389864; cv=none; b=e8S69sM28B+wQv7Kp+kWH7B/3lSMeNFx8zbs+8ytFTh3FhuazjR/d9WCCPkWurU3F5Q4x1CZWJFmYywI2XJCLWSB837FySG/HTbUoHcRIFpBM9oNMi5f44ci31v+tWojg/D6JHYz3Igj5qHrHOjVi7qT5sIpOEaqIW4PKPehwzI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744389864; c=relaxed/simple; bh=kFyofD7ekXXpEXrsGkLjon+V7N2Z6ze3lEMuEXqRbOY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=n7oTEQ69I1k8Wd+dkWKDgng/bBNUq1gLpU2WKuhYItii1gswZb86ulnJCeFh0gg4b0fAh+lCIP164RIYsvdvg8AhZwLAIpqSDTWF+6AKI85KH3TfUF+CZ03Vxm3LiK0rackaTqSrir6N/Ej+idwO8BL/T4KK+kovtVReENjxh3E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 A3BE42437; Fri, 11 Apr 2025 09:44:21 -0700 (PDT) Received: from merodach.members.linode.com (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B739A3F694; Fri, 11 Apr 2025 09:44:18 -0700 (PDT) From: James Morse To: x86@kernel.org, linux-kernel@vger.kernel.org Cc: Reinette Chatre , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Babu Moger , James Morse , shameerali.kolothum.thodi@huawei.com, D Scott Phillips OS , carl@os.amperecomputing.com, lcherian@marvell.com, bobo.shaobowang@huawei.com, tan.shaopeng@fujitsu.com, baolin.wang@linux.alibaba.com, Jamie Iles , Xin Hao , peternewman@google.com, dfustini@baylibre.com, amitsinght@marvell.com, David Hildenbrand , Rex Nie , Dave Martin , Koba Ko , Shanker Donthineni , fenghuay@nvidia.com Subject: [PATCH v8 19/21] fs/resctrl: Remove unnecessary includes Date: Fri, 11 Apr 2025 16:42:27 +0000 Message-Id: <20250411164229.23413-20-james.morse@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20250411164229.23413-1-james.morse@arm.com> References: <20250411164229.23413-1-james.morse@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" When splitting and moving the resctrl code to live in fs/resctrl and arch/x86, some code was duplicated. This was done to keep the parser in the script that does the moving simple. This results in unnecessary includes in the arch and filesystem code. Remove them. Signed-off-by: James Morse --- Changes since v7: * Expanded the scope, removed many more includes. --- arch/x86/kernel/cpu/resctrl/ctrlmondata.c | 4 ---- arch/x86/kernel/cpu/resctrl/internal.h | 5 ----- arch/x86/kernel/cpu/resctrl/monitor.c | 3 --- arch/x86/kernel/cpu/resctrl/pseudo_lock.c | 7 ------- fs/resctrl/internal.h | 2 -- fs/resctrl/monitor.c | 3 --- fs/resctrl/pseudo_lock.c | 6 ------ fs/resctrl/rdtgroup.c | 2 -- 8 files changed, 32 deletions(-) diff --git a/arch/x86/kernel/cpu/resctrl/ctrlmondata.c b/arch/x86/kernel/cp= u/resctrl/ctrlmondata.c index 0164d769aeca..1189c0df4ad7 100644 --- a/arch/x86/kernel/cpu/resctrl/ctrlmondata.c +++ b/arch/x86/kernel/cpu/resctrl/ctrlmondata.c @@ -16,10 +16,6 @@ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt =20 #include -#include -#include -#include -#include =20 #include "internal.h" =20 diff --git a/arch/x86/kernel/cpu/resctrl/internal.h b/arch/x86/kernel/cpu/r= esctrl/internal.h index 521db28efb3f..5e3c41b36437 100644 --- a/arch/x86/kernel/cpu/resctrl/internal.h +++ b/arch/x86/kernel/cpu/resctrl/internal.h @@ -3,11 +3,6 @@ #define _ASM_X86_RESCTRL_INTERNAL_H =20 #include -#include -#include -#include -#include -#include =20 #define L3_QOS_CDP_ENABLE 0x01ULL =20 diff --git a/arch/x86/kernel/cpu/resctrl/monitor.c b/arch/x86/kernel/cpu/re= sctrl/monitor.c index 800e52845b1d..182f0514cc88 100644 --- a/arch/x86/kernel/cpu/resctrl/monitor.c +++ b/arch/x86/kernel/cpu/resctrl/monitor.c @@ -18,10 +18,7 @@ #define pr_fmt(fmt) "resctrl: " fmt =20 #include -#include #include -#include -#include =20 #include =20 diff --git a/arch/x86/kernel/cpu/resctrl/pseudo_lock.c b/arch/x86/kernel/cp= u/resctrl/pseudo_lock.c index 99c34a0610a4..241d0d7e1cb5 100644 --- a/arch/x86/kernel/cpu/resctrl/pseudo_lock.c +++ b/arch/x86/kernel/cpu/resctrl/pseudo_lock.c @@ -12,17 +12,10 @@ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt =20 #include -#include #include -#include -#include -#include -#include #include #include #include -#include -#include =20 #include #include diff --git a/fs/resctrl/internal.h b/fs/resctrl/internal.h index ee9b95122872..8a5c692142cd 100644 --- a/fs/resctrl/internal.h +++ b/fs/resctrl/internal.h @@ -3,10 +3,8 @@ #define _ASM_X86_RESCTRL_INTERNAL_H =20 #include -#include #include #include -#include #include =20 #define CQM_LIMBOCHECK_INTERVAL 1000 diff --git a/fs/resctrl/monitor.c b/fs/resctrl/monitor.c index a76bfaa8d43e..bde2801289d3 100644 --- a/fs/resctrl/monitor.c +++ b/fs/resctrl/monitor.c @@ -18,13 +18,10 @@ #define pr_fmt(fmt) "resctrl: " fmt =20 #include -#include #include #include #include =20 -#include - #include "internal.h" =20 #define CREATE_TRACE_POINTS diff --git a/fs/resctrl/pseudo_lock.c b/fs/resctrl/pseudo_lock.c index 7305b232384e..ccc2f9213b4b 100644 --- a/fs/resctrl/pseudo_lock.c +++ b/fs/resctrl/pseudo_lock.c @@ -11,23 +11,17 @@ =20 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt =20 -#include #include #include #include #include #include #include -#include #include #include #include #include =20 -#include -#include - -#include "../../events/perf_event.h" /* For X86_CONFIG() */ #include "internal.h" =20 /* diff --git a/fs/resctrl/rdtgroup.c b/fs/resctrl/rdtgroup.c index 4b1c8881a4a8..9fa4c2024249 100644 --- a/fs/resctrl/rdtgroup.c +++ b/fs/resctrl/rdtgroup.c @@ -21,10 +21,8 @@ #include #include #include -#include #include #include -#include #include =20 #include --=20 2.20.1