[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] xen: fix null sched build with debug=n



The null_dom() static inline is just used when debug=y so it results in
a error with the default CFLAGS and debug=n.

Signed-off-by: Doug Goldstein <cardoe@xxxxxxxxxx>
---
sched_null.c:123:32: error: unused function 'null_dom' 
[-Werror,-Wunused-function]

Feel free to fix this better.
---
 xen/common/sched_null.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/xen/common/sched_null.c b/xen/common/sched_null.c
index 58e306a7ea..f914d3432c 100644
--- a/xen/common/sched_null.c
+++ b/xen/common/sched_null.c
@@ -120,10 +120,12 @@ static inline struct null_vcpu *null_vcpu(const struct 
vcpu *v)
     return v->sched_priv;
 }
 
+#ifndef NDEBUG
 static inline struct null_dom *null_dom(const struct domain *d)
 {
     return d->sched_priv;
 }
+#endif
 
 static inline bool vcpu_check_affinity(struct vcpu *v, unsigned int cpu,
                                        unsigned int balance_step)
-- 
2.16.1


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.