[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xen: Small cleanups towards allowing stricter compile warnings.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1216134826 -3600 # Node ID 675fb031df88f08cbe7abb277bd2cafbc340ec2d # Parent b5bfe3515f65831c1d243c439e88507cc3e11a38 xen: Small cleanups towards allowing stricter compile warnings. Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx> --- xen/common/sched_sedf.c | 26 +++++++++++++------------- xen/common/stop_machine.c | 1 + xen/common/version.c | 1 + xen/drivers/acpi/reboot.c | 1 + xen/drivers/passthrough/amd/iommu_intr.c | 2 +- 5 files changed, 17 insertions(+), 14 deletions(-) diff -r b5bfe3515f65 -r 675fb031df88 xen/common/sched_sedf.c --- a/xen/common/sched_sedf.c Tue Jul 15 15:36:50 2008 +0100 +++ b/xen/common/sched_sedf.c Tue Jul 15 16:13:46 2008 +0100 @@ -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 v 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); diff -r b5bfe3515f65 -r 675fb031df88 xen/common/stop_machine.c --- a/xen/common/stop_machine.c Tue Jul 15 15:36:50 2008 +0100 +++ b/xen/common/stop_machine.c Tue Jul 15 16:13:46 2008 +0100 @@ -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> diff -r b5bfe3515f65 -r 675fb031df88 xen/common/version.c --- a/xen/common/version.c Tue Jul 15 15:36:50 2008 +0100 +++ b/xen/common/version.c Tue Jul 15 16:13:46 2008 +0100 @@ -1,4 +1,5 @@ #include <xen/compile.h> +#include <xen/version.h> const char *xen_compile_date(void) { diff -r b5bfe3515f65 -r 675fb031df88 xen/drivers/acpi/reboot.c --- a/xen/drivers/acpi/reboot.c Tue Jul 15 15:36:50 2008 +0100 +++ b/xen/drivers/acpi/reboot.c Tue Jul 15 16:13:46 2008 +0100 @@ -1,5 +1,6 @@ #include <xen/config.h> #include <xen/pci.h> +#include <xen/acpi.h> #include <acpi/acpi.h> void acpi_reboot(void) diff -r b5bfe3515f65 -r 675fb031df88 xen/drivers/passthrough/amd/iommu_intr.c --- a/xen/drivers/passthrough/amd/iommu_intr.c Tue Jul 15 15:36:50 2008 +0100 +++ b/xen/drivers/passthrough/amd/iommu_intr.c Tue Jul 15 16:13:46 2008 +0100 @@ -25,7 +25,7 @@ DEFINE_SPINLOCK(int_remap_table_lock); 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; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |