]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
common: sched_sedf: Remove unused functions
authorJulien Grall <julien.grall@linaro.org>
Wed, 26 Mar 2014 14:34:29 +0000 (15:34 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 26 Mar 2014 14:34:29 +0000 (15:34 +0100)
Clang 3.5 will fail to compile xen/common/sched_sedf.c because some function
are not used:

sched_sedf.c:141:20: error: unused function 'extraq_add_head' [-Werror,-Wunused-function]
static inline void extraq_add_head(struct vcpu *d, int i)
                       ^
sched_sedf.c:147:20: error: unused function 'extraq_add_tail' [-Werror,-Wunused-function]
static inline void extraq_add_tail(struct vcpu *d, int i)

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/common/sched_sedf.c

index 7c24171e9ea01054be1ab98f0adf0e1a1a79fd57..0c9011a54e810e26430634308221bb2f0ac4f95e 100644 (file)
@@ -138,18 +138,6 @@ static inline int extraq_on(struct vcpu *d, int i)
             (EXTRALIST(d,i)->next != EXTRALIST(d,i)));
 }
 
-static inline void extraq_add_head(struct vcpu *d, int i)
-{
-    list_add(EXTRALIST(d,i), EXTRAQ(d->processor,i));
-    ASSERT(extraq_on(d, i));
-}
-
-static inline void extraq_add_tail(struct vcpu *d, int i)
-{
-    list_add_tail(EXTRALIST(d,i), EXTRAQ(d->processor,i));
-    ASSERT(extraq_on(d, i));
-}
-
 static inline void extraq_del(struct vcpu *d, int i)
 {
     struct list_head *list = EXTRALIST(d,i);