The null_dom() static inline is just used when debug=y so with clang it
results in an error with the default CFLAGS and debug=n. This function
is used in only one place and it a one line helper so remove it until we
actually need it.
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Acked-by: Dario Faggioli <dfaggioli@suse.com>
return v->sched_priv;
}
-static inline struct null_dom *null_dom(const struct domain *d)
-{
- return d->sched_priv;
-}
-
static inline bool vcpu_check_affinity(struct vcpu *v, unsigned int cpu,
unsigned int balance_step)
{
static inline void null_vcpu_check(struct vcpu *v)
{
struct null_vcpu * const nvc = null_vcpu(v);
- struct null_dom * const ndom = null_dom(v->domain);
+ struct null_dom * const ndom = v->domain->sched_priv;
BUG_ON(nvc->vcpu != v);