From: Andrew Cooper Date: Thu, 8 Mar 2018 11:10:52 +0000 (+0000) Subject: sched/rt: Fix build after c/s c3715dd8fb766 X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~445 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5175ce39d8ff0b36e981a7a261f9196aa1879918;p=xen.git sched/rt: Fix build after c/s c3715dd8fb766 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 Reviewed-by: George Dunlap Reviewed-by: Meng Xu --- diff --git a/xen/common/sched_rt.c b/xen/common/sched_rt.c index 1c72ea831d..ac79f15dc3 100644 --- a/xen/common/sched_rt.c +++ b/xen/common/sched_rt.c @@ -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;