sched/rt: Fix build after c/s c3715dd8fb766
PATCH 1/1 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.
---
CC: George Dunlap <[email protected]>
CC: Dario Faggioli <[email protected]>
CC: Meng Xu <[email protected]>
--- xen/common/sched_rt.c | 5 ----- 1 file changed, 5 deletions(-)
xen/common/sched_rt.c +0 -5
@@ -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;
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 10 lines · Andrew Cooper
Travis reports:
sched_rt.c:241:30: error: unused function '
rt_dom' [-Werror,-Wunused-function] static inline structrt_dom*rt_dom(const struct domain *dom)^1 error generated.
when compiling with Clang. Drop the function.
Signed-off-by Andrew Cooper <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 5 lines · Andrew Cooper
Travis reports:
sched_rt.c:241:30: error: unused function '
rt_dom' [-Werror,-Wunused-function] static inline structrt_dom*rt_dom(const struct domain *dom)
Quoted 7 lines
^1 error generated.
when compiling with Clang. Drop the function.
Signed-off-by Andrew Cooper <[email protected]>---
Thank you very much!
Meng
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel