[PATCH] x86/setup: Trim includes

Andrew Cooper posted 1 patch 5 months ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20250527151302.63291-1-andrew.cooper3@citrix.com
xen/arch/x86/setup.c | 7 -------
1 file changed, 7 deletions(-)
[PATCH] x86/setup: Trim includes
Posted by Andrew Cooper 5 months ago
None of these are used by setup.c today.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
CC: Jan Beulich <JBeulich@suse.com>
CC: Roger Pau Monné <roger.pau@citrix.com>
---
 xen/arch/x86/setup.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c
index 1f5cb67bd0ee..4181df97754a 100644
--- a/xen/arch/x86/setup.c
+++ b/xen/arch/x86/setup.c
@@ -3,14 +3,11 @@
 #include <xen/bitops.h>
 #include <xen/console.h>
 #include <xen/cpu.h>
-#include <xen/cpuidle.h>
 #include <xen/dmi.h>
 #include <xen/domain.h>
-#include <xen/domain_page.h>
 #include <xen/efi.h>
 #include <xen/err.h>
 #include <xen/grant_table.h>
-#include <xen/hypercall.h>
 #include <xen/init.h>
 #include <xen/kexec.h>
 #include <xen/keyhandler.h>
@@ -25,7 +22,6 @@
 #include <xen/sections.h>
 #include <xen/serial.h>
 #include <xen/softirq.h>
-#include <xen/trace.h>
 #include <xen/version.h>
 #include <xen/vga.h>
 #include <xen/virtual_region.h>
@@ -36,12 +32,10 @@
 #include <asm/bootinfo.h>
 #include <asm/bzimage.h>
 #include <asm/cpu-policy.h>
-#include <asm/desc.h>
 #include <asm/e820.h>
 #include <asm/edd.h>
 #include <asm/genapic.h>
 #include <asm/guest.h>
-#include <asm/invpcid.h>
 #include <asm/io_apic.h>
 #include <asm/mc146818rtc.h>
 #include <asm/microcode.h>
@@ -62,7 +56,6 @@
 
 #include <xsm/xsm.h>
 
-#include <public/version.h>
 #ifdef CONFIG_COMPAT
 #include <compat/platform.h>
 #include <compat/xen.h>
-- 
2.34.1


Re: [PATCH] x86/setup: Trim includes
Posted by Roger Pau Monné 5 months ago
On Tue, May 27, 2025 at 04:13:02PM +0100, Andrew Cooper wrote:
> None of these are used by setup.c today.
> 
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>

Acked-by: Roger Pau Monné <roger.pau@citrix.com>

Thanks, Roger.