|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] xen: Sort includes
commit 8efaec38d87db34957a0b8650b42cd40c1e4cfb7
Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
AuthorDate: Fri Mar 7 17:28:35 2025 +0000
Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Tue Aug 4 17:32:23 2026 +0100
xen: Sort includes
Drop types.h when it's clearly not needed.
No functional change.
Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
---
xen/arch/x86/alternative.c | 12 ++++++------
xen/arch/x86/livepatch.c | 8 ++++----
xen/common/memory.c | 3 ++-
xen/common/page_alloc.c | 5 ++---
xen/include/xen/mm.h | 6 +++---
5 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/xen/arch/x86/alternative.c b/xen/arch/x86/alternative.c
index 5ed0c26725..95960b4a46 100644
--- a/xen/arch/x86/alternative.c
+++ b/xen/arch/x86/alternative.c
@@ -4,19 +4,19 @@
*/
#include <xen/delay.h>
-#include <xen/types.h>
+#include <xen/init.h>
+#include <xen/livepatch.h>
+
+#include <asm/alternative.h>
#include <asm/apic.h>
#include <asm/endbr.h>
+#include <asm/nmi.h>
+#include <asm/nops.h>
#include <asm/processor.h>
-#include <asm/alternative.h>
-#include <xen/init.h>
#include <asm/setup.h>
#include <asm/stubs.h>
#include <asm/system.h>
#include <asm/traps.h>
-#include <asm/nmi.h>
-#include <asm/nops.h>
-#include <xen/livepatch.h>
#define MAX_PATCH_LEN (255-1)
diff --git a/xen/arch/x86/livepatch.c b/xen/arch/x86/livepatch.c
index bdca355dc6..5158e91f7e 100644
--- a/xen/arch/x86/livepatch.c
+++ b/xen/arch/x86/livepatch.c
@@ -5,14 +5,14 @@
#include <xen/errno.h>
#include <xen/init.h>
#include <xen/lib.h>
+#include <xen/livepatch.h>
+#include <xen/livepatch_elf.h>
#include <xen/mm.h>
#include <xen/pfn.h>
-#include <xen/vmap.h>
-#include <xen/livepatch_elf.h>
-#include <xen/livepatch.h>
#include <xen/sched.h>
-#include <xen/vm_event.h>
#include <xen/virtual_region.h>
+#include <xen/vm_event.h>
+#include <xen/vmap.h>
#include <asm/endbr.h>
#include <asm/fixmap.h>
diff --git a/xen/common/memory.c b/xen/common/memory.c
index e245b160d4..9443e35a7f 100644
--- a/xen/common/memory.c
+++ b/xen/common/memory.c
@@ -26,14 +26,15 @@
#include <xen/sched.h>
#include <xen/sections.h>
#include <xen/trace.h>
-#include <xen/types.h>
#include <xen/xvmalloc.h>
#include <asm/current.h>
#include <asm/hardirq.h>
#include <asm/p2m.h>
#include <asm/page.h>
+
#include <public/memory.h>
+
#include <xsm/xsm.h>
#ifdef CONFIG_X86
diff --git a/xen/common/page_alloc.c b/xen/common/page_alloc.c
index 598222e2c2..1e47f38721 100644
--- a/xen/common/page_alloc.c
+++ b/xen/common/page_alloc.c
@@ -133,7 +133,6 @@
#include <xen/param.h>
#include <xen/perfc.h>
#include <xen/pfn.h>
-#include <xen/types.h>
#include <xen/sched.h>
#include <xen/scrub.h>
#include <xen/sections.h>
@@ -145,14 +144,14 @@
#include <asm/flushtlb.h>
#include <asm/page.h>
-#include <public/sysctl.h>
#include <public/sched.h>
+#include <public/sysctl.h>
#ifdef CONFIG_X86
#include <asm/guest.h>
#include <asm/p2m.h>
-#include <asm/setup.h> /* for highmem_start only */
#include <asm/paging.h>
+#include <asm/setup.h>
#else
#define p2m_pod_offline_or_broken_hit(pg) 0
#define p2m_pod_offline_or_broken_replace(pg) BUG_ON(pg)
diff --git a/xen/include/xen/mm.h b/xen/include/xen/mm.h
index b80bec00c1..fd8b0ba3f5 100644
--- a/xen/include/xen/mm.h
+++ b/xen/include/xen/mm.h
@@ -63,12 +63,12 @@
#include <xen/bug.h>
#include <xen/compiler.h>
+#include <xen/list.h>
#include <xen/mm-frame.h>
#include <xen/mm-types.h>
-#include <xen/types.h>
-#include <xen/list.h>
-#include <xen/spinlock.h>
#include <xen/perfc.h>
+#include <xen/spinlock.h>
+
#include <public/memory.h>
struct page_info;
--
generated by git-patchbot for /home/xen/git/xen.git#staging
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |