ia64/xen-unstable

changeset 18061:675fb031df88

xen: Small cleanups towards allowing stricter compile warnings.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jul 15 16:13:46 2008 +0100 (2008-07-15)
parents b5bfe3515f65
children 64d8a24d28f6
files 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
line diff
     1.1 --- a/xen/common/sched_sedf.c	Tue Jul 15 15:36:50 2008 +0100
     1.2 +++ b/xen/common/sched_sedf.c	Tue Jul 15 16:13:46 2008 +0100
     1.3 @@ -287,18 +287,18 @@ static inline void list_insert_sort(
     1.4      list_add(element, cur->prev);
     1.5  }
     1.6  
     1.7 -#define DOMAIN_COMPARER(name, field, comp1, comp2)          \
     1.8 -int name##_comp(struct list_head* el1, struct list_head* el2) \
     1.9 -{                                                           \
    1.10 -    struct sedf_vcpu_info *d1, *d2;                     \
    1.11 -    d1 = list_entry(el1,struct sedf_vcpu_info, field);  \
    1.12 -    d2 = list_entry(el2,struct sedf_vcpu_info, field);  \
    1.13 -    if ( (comp1) == (comp2) )                             \
    1.14 -        return 0;                                   \
    1.15 -    if ( (comp1) < (comp2) )                              \
    1.16 -        return -1;                                  \
    1.17 -    else                                                \
    1.18 -        return 1;                                   \
    1.19 +#define DOMAIN_COMPARER(name, field, comp1, comp2)                      \
    1.20 +static int name##_comp(struct list_head* el1, struct list_head* el2)    \
    1.21 +{                                                                       \
    1.22 +    struct sedf_vcpu_info *d1, *d2;                                     \
    1.23 +    d1 = list_entry(el1,struct sedf_vcpu_info, field);                  \
    1.24 +    d2 = list_entry(el2,struct sedf_vcpu_info, field);                  \
    1.25 +    if ( (comp1) == (comp2) )                                           \
    1.26 +        return 0;                                                       \
    1.27 +    if ( (comp1) < (comp2) )                                            \
    1.28 +        return -1;                                                      \
    1.29 +    else                                                                \
    1.30 +        return 1;                                                       \
    1.31  }
    1.32  
    1.33  /* adds a domain to the queue of processes which wait for the beginning of the
    1.34 @@ -1067,7 +1067,7 @@ static inline int should_switch(struct v
    1.35      return 1;
    1.36  }
    1.37  
    1.38 -void sedf_wake(struct vcpu *d)
    1.39 +static void sedf_wake(struct vcpu *d)
    1.40  {
    1.41      s_time_t              now = NOW();
    1.42      struct sedf_vcpu_info* inf = EDOM_INFO(d);
     2.1 --- a/xen/common/stop_machine.c	Tue Jul 15 15:36:50 2008 +0100
     2.2 +++ b/xen/common/stop_machine.c	Tue Jul 15 16:13:46 2008 +0100
     2.3 @@ -25,6 +25,7 @@
     2.4  #include <xen/sched.h>
     2.5  #include <xen/spinlock.h>
     2.6  #include <xen/softirq.h>
     2.7 +#include <xen/stop_machine.h>
     2.8  #include <xen/errno.h>
     2.9  #include <xen/smp.h>
    2.10  #include <asm/current.h>
     3.1 --- a/xen/common/version.c	Tue Jul 15 15:36:50 2008 +0100
     3.2 +++ b/xen/common/version.c	Tue Jul 15 16:13:46 2008 +0100
     3.3 @@ -1,4 +1,5 @@
     3.4  #include <xen/compile.h>
     3.5 +#include <xen/version.h>
     3.6  
     3.7  const char *xen_compile_date(void)
     3.8  {
     4.1 --- a/xen/drivers/acpi/reboot.c	Tue Jul 15 15:36:50 2008 +0100
     4.2 +++ b/xen/drivers/acpi/reboot.c	Tue Jul 15 16:13:46 2008 +0100
     4.3 @@ -1,5 +1,6 @@
     4.4  #include <xen/config.h>
     4.5  #include <xen/pci.h>
     4.6 +#include <xen/acpi.h>
     4.7  #include <acpi/acpi.h>
     4.8  
     4.9  void acpi_reboot(void)
     5.1 --- a/xen/drivers/passthrough/amd/iommu_intr.c	Tue Jul 15 15:36:50 2008 +0100
     5.2 +++ b/xen/drivers/passthrough/amd/iommu_intr.c	Tue Jul 15 16:13:46 2008 +0100
     5.3 @@ -25,7 +25,7 @@
     5.4  DEFINE_SPINLOCK(int_remap_table_lock);
     5.5  void *int_remap_table = NULL;
     5.6  
     5.7 -u8* get_intremap_entry(u8 vector, u8 dm)
     5.8 +static u8 *get_intremap_entry(u8 vector, u8 dm)
     5.9  {
    5.10      u8 *table;
    5.11      int offset = 0;