sched/rt: Fix build after c/s c3715dd8fb766
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 8 Mar 2018 11:10:52 +0000 (11:10 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 8 Mar 2018 18:41:09 +0000 (18:41 +0000)
Travis reports:

  sched_rt.c:241:30: error: unused function 'rt_dom' [-Werror,-Wunused-function]
  static inline struct rt_dom *rt_dom(const struct domain *dom)
                               ^
  1 error generated.

when compiling with Clang.  Drop the function.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
Reviewed-by: Meng Xu <mengxu@cis.upenn.edu>
xen/common/sched_rt.c

index 1c72ea831d80808a093edd370a423ec42dad2eb1..ac79f15dc3d04c67d367b54ab3c2d86b7df48308 100644 (file)
@@ -238,11 +238,6 @@ static inline struct rt_vcpu *rt_vcpu(const struct vcpu *vcpu)
     return vcpu->sched_priv;
 }
 
-static inline struct rt_dom *rt_dom(const struct domain *dom)
-{
-    return dom->sched_priv;
-}
-
 static inline struct list_head *rt_runq(const struct scheduler *ops)
 {
     return &rt_priv(ops)->runq;