From nobody Fri Dec 19 17:18:35 2025 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5AEAF212B3F for ; Fri, 25 Apr 2025 17:40:37 +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=1745602838; cv=none; b=lSNl1Q9Z4Kw4QVXkBU6/y/xoviBTdDMwllU7+/8eUMesVJ2Yh/QTAkXdQPteo5SDHEXRvh6YVBI7CMz1/kJir8y+JihiML2KVWUE6qGKJCXWiK4XX+/B6ULrsYUbcGjeKTOVwhOFb7s63+2muJJ33iAjizqolgHLK8cZagDX7pI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745602838; c=relaxed/simple; bh=iPUhh/O6Vx+kijCSJWixTGoKNdG4o/++7z0WdnJxBlc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=AuaPPL0DCzF3+CROnuytnUnR3kg/Nd9mO/tiE2L7SgcW5PmY1v0vFh20pPjfPLyWXZ8nHKcf2jV4R0uWz/Z02diAw2my8Jkq/LNzsvhX0bf/jifC0hCSNt5TQxWxGL2a/DMmDwZgIbFDgqmOTr82ZLQHOnNqAYKubO6L/vZ5yug= 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 83F6322FC; Fri, 25 Apr 2025 10:40:31 -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 EA8813F59E; Fri, 25 Apr 2025 10:40:32 -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 v9 24/27] fs/resctrl: Remove unnecessary includes Date: Fri, 25 Apr 2025 17:38:06 +0000 Message-Id: <20250425173809.5529-25-james.morse@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20250425173809.5529-1-james.morse@arm.com> References: <20250425173809.5529-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 Reviewed-by: Fenghua Yu Reviewed-by: Reinette Chatre --- 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 c0a04fe2bcd9..3936bab81411 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 0bbb88ca1d2f..06173b5f0a47 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 e95eee28b7d7..07f91d18c1b8 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.39.5