aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/sched_sedf.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-07-15 16:13:46 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-07-15 16:13:46 +0100
commitcd99b8bf59292e3359dc65e32944226181792998 (patch)
treeba224ad621a9e967bcae38b1a92bfd64295cc8ec /xen/common/sched_sedf.c
parentae1810b32664570e469c751313df8ab2e2eadc4e (diff)
downloadxen-cd99b8bf59292e3359dc65e32944226181792998.tar.gz
xen-cd99b8bf59292e3359dc65e32944226181792998.tar.bz2
xen-cd99b8bf59292e3359dc65e32944226181792998.zip
xen: Small cleanups towards allowing stricter compile warnings.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Diffstat (limited to 'xen/common/sched_sedf.c')
-rw-r--r--xen/common/sched_sedf.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/xen/common/sched_sedf.c b/xen/common/sched_sedf.c
index 8a1223a03b..7b4eafb632 100644
--- a/xen/common/sched_sedf.c
+++ b/xen/common/sched_sedf.c
@@ -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);