Skip to contentSkip to conversation

PATCH: makes some implicit includes explicit

PATCH Tristan Gingold 1 participant 1 message Aug 18, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

during include/asm-ia64 cleanup, I noticed some includes (mostly xen/errno.h) were implicitly included (ie through other .h files).
I think it is better to make them explicit.

Tested on xen/ia64.

Tristan.

# HG changeset patch
# User gingold@virtu10
# Node ID 9db43ac6485fac8ed65d8dff2e644c42033ebe72 # Parent 8c6bb45901e7679462bb5edbfb69ee34d8616e95 Make some implicit includes explicit.

xen/common/elf.c +1 -0
diff -r 8c6bb45901e7 -r 9db43ac6485f xen/common/elf.c
@@ -10,6 +10,7 @@
 #include <xen/mm.h>
 #include <xen/elf.h>
 #include <xen/sched.h>
+#include <xen/errno.h>
 
 static void loadelfsymtab(struct domain_setup_info *dsi, int doload);
 static inline int is_loadable_phdr(Elf_Phdr *phdr)
xen/common/memory.c +1 -0
diff -r 8c6bb45901e7 -r 9db43ac6485f xen/common/memory.c
@@ -17,6 +17,7 @@
 #include <xen/shadow.h>
 #include <xen/iocap.h>
 #include <xen/guest_access.h>
+#include <xen/errno.h>
 #include <asm/current.h>
 #include <asm/hardirq.h>
 #include <public/memory.h>
xen/common/rangeset.c +1 -0
diff -r 8c6bb45901e7 -r 9db43ac6485f xen/common/rangeset.c
@@ -8,6 +8,7 @@
  */
 
 #include <xen/sched.h>
+#include <xen/errno.h>
 #include <xen/rangeset.h>
 
 /* An inclusive range [s,e] and pointer to next range in ascending order. */
xen/common/sched_bvt.c +1 -0
diff -r 8c6bb45901e7 -r 9db43ac6485f xen/common/sched_bvt.c
@@ -24,6 +24,7 @@
 #include <xen/perfc.h>
 #include <xen/sched-if.h>
 #include <xen/softirq.h>
+#include <xen/errno.h>
 
 /* all per-domain BVT-specific scheduling info is stored here */
 struct bvt_vcpu_info
xen/common/sched_credit.c +1 -1
diff -r 8c6bb45901e7 -r 9db43ac6485f xen/common/sched_credit.c
@@ -20,7 +20,7 @@
 #include <xen/sched-if.h>
 #include <xen/softirq.h>
 #include <asm/atomic.h>
-
+#include <xen/errno.h>
 
 /*
  * CSCHED_STATS
xen/common/sched_sedf.c +1 -0
diff -r 8c6bb45901e7 -r 9db43ac6485f xen/common/sched_sedf.c
@@ -12,6 +12,7 @@
 #include <xen/timer.h>
 #include <xen/softirq.h>
 #include <xen/time.h>
+#include <xen/errno.h>
 
 /*verbosity settings*/
 #define SEDFLEVEL 0
xen/common/schedule.c +1 -0
diff -r 8c6bb45901e7 -r 9db43ac6485f xen/common/schedule.c
@@ -27,6 +27,7 @@
 #include <xen/softirq.h>
 #include <xen/trace.h>
 #include <xen/mm.h>
+#include <xen/errno.h>
 #include <xen/guest_access.h>
 #include <public/sched.h>
 #include <public/sched_ctl.h>
xen/common/trace.c +1 -0
diff -r 8c6bb45901e7 -r 9db43ac6485f xen/common/trace.c
@@ -30,6 +30,7 @@
 #include <xen/event.h>
 #include <xen/softirq.h>
 #include <xen/init.h>
+#include <xen/mm.h>
 #include <xen/percpu.h>
 #include <asm/atomic.h>
 #include <public/dom0_ops.h>
xen/drivers/char/serial.c +1 -0
diff -r 8c6bb45901e7 -r 9db43ac6485f xen/drivers/char/serial.c
@@ -12,6 +12,7 @@
 #include <xen/irq.h>
 #include <xen/keyhandler.h> 
 #include <xen/sched.h>
+#include <xen/mm.h>
 #include <xen/serial.h>
 
 static struct serial_port com[2] = {
xen/include/xen/console.h +1 -0
diff -r 8c6bb45901e7 -r 9db43ac6485f xen/include/xen/console.h
@@ -9,6 +9,7 @@
 
 #include <xen/spinlock.h>
 #include <xen/guest_access.h>
+#include <public/xen.h>
 
 void set_printk_prefix(const char *prefix);
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel