diff --git a/xen/common/sched/private.h b/xen/common/sched/private.h index 459d1dfb11..c0e7c96d24 100644 --- a/xen/common/sched/private.h +++ b/xen/common/sched/private.h @@ -540,7 +540,7 @@ static inline void sched_unit_unpause(const struct sched_unit *unit) } #define REGISTER_SCHEDULER(x) static const struct scheduler *x##_entry \ - __used_section(".data.schedulers") = &x + __used_section(".data.schedulers") = &(x) struct cpupool {