Skip to contentSkip to conversation

sched/rt: Fix build after c/s c3715dd8fb766

PATCH In review Andrew Cooper 3 participants 3 messages Mar 8, 2018

lore
Share & tools
lore
#0 lore raw

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
index 1c72ea8..ac79f15 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Andrew Cooper

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.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reviewed-by on v1 1/1
#2 lore raw
In reply to Andrew Cooper
Quoted 5 lines · Andrew Cooper

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)

Quoted 7 lines
                               ^

1 error generated.

when compiling with Clang. Drop the function.

---

Thank you very much!

Meng

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel