xen: Small cleanups towards allowing stricter compile warnings.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 15 Jul 2008 15:13:46 +0000 (16:13 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 15 Jul 2008 15:13:46 +0000 (16:13 +0100)
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
xen/common/sched_sedf.c
xen/common/stop_machine.c
xen/common/version.c
xen/drivers/acpi/reboot.c
xen/drivers/passthrough/amd/iommu_intr.c

index 8a1223a03b0f6ebc5fb36904cc2901f50f40b1e4..7b4eafb63212ca8ffe16bde41d62ee59be4daf09 100644 (file)
@@ -287,18 +287,18 @@ static inline void list_insert_sort(
     list_add(element, cur->prev);
 }
 
-#define DOMAIN_COMPARER(name, field, comp1, comp2)          \
-int name##_comp(struct list_head* el1, struct list_head* el2) \
-{                                                           \
-    struct sedf_vcpu_info *d1, *d2;                     \
-    d1 = list_entry(el1,struct sedf_vcpu_info, field);  \
-    d2 = list_entry(el2,struct sedf_vcpu_info, field);  \
-    if ( (comp1) == (comp2) )                             \
-        return 0;                                   \
-    if ( (comp1) < (comp2) )                              \
-        return -1;                                  \
-    else                                                \
-        return 1;                                   \
+#define DOMAIN_COMPARER(name, field, comp1, comp2)                      \
+static int name##_comp(struct list_head* el1, struct list_head* el2)    \
+{                                                                       \
+    struct sedf_vcpu_info *d1, *d2;                                     \
+    d1 = list_entry(el1,struct sedf_vcpu_info, field);                  \
+    d2 = list_entry(el2,struct sedf_vcpu_info, field);                  \
+    if ( (comp1) == (comp2) )                                           \
+        return 0;                                                       \
+    if ( (comp1) < (comp2) )                                            \
+        return -1;                                                      \
+    else                                                                \
+        return 1;                                                       \
 }
 
 /* adds a domain to the queue of processes which wait for the beginning of the
@@ -1067,7 +1067,7 @@ static inline int should_switch(struct vcpu *cur,
     return 1;
 }
 
-void sedf_wake(struct vcpu *d)
+static void sedf_wake(struct vcpu *d)
 {
     s_time_t              now = NOW();
     struct sedf_vcpu_info* inf = EDOM_INFO(d);
index 1411b9f1979ff6d4c134d002213e4741d6dc6a81..f7d9071b6668434e7a8511090a472860a0184a3b 100644 (file)
@@ -25,6 +25,7 @@
 #include <xen/sched.h>
 #include <xen/spinlock.h>
 #include <xen/softirq.h>
+#include <xen/stop_machine.h>
 #include <xen/errno.h>
 #include <xen/smp.h>
 #include <asm/current.h>
index 6afa128cd024ec99d13de2727af56a770e43a120..b152e27c6882229a42dcdae47aed951d9813dc43 100644 (file)
@@ -1,4 +1,5 @@
 #include <xen/compile.h>
+#include <xen/version.h>
 
 const char *xen_compile_date(void)
 {
index ae03526f1754703d9e5d9076d4a994ef54956650..95edc1eb327e736f09b75950f49e738da0c92aa6 100644 (file)
@@ -1,5 +1,6 @@
 #include <xen/config.h>
 #include <xen/pci.h>
+#include <xen/acpi.h>
 #include <acpi/acpi.h>
 
 void acpi_reboot(void)
index 5dfdff084e07ab02eed959fc74183ef66316e87a..ef31c5dd6e1dcf2f06d0c119cde9bb2344203c92 100644 (file)
@@ -25,7 +25,7 @@
 DEFINE_SPINLOCK(int_remap_table_lock);
 void *int_remap_table = NULL;
 
-u8* get_intremap_entry(u8 vector, u8 dm)
+static u8 *get_intremap_entry(u8 vector, u8 dm)
 {
     u8 *table;
     int offset = 0;