[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] xen/events: fix build
On 11.11.20 08:20, Jan Beulich wrote: On 11.11.2020 06:49, Juergen Gross wrote:--- a/xen/common/event_channel.c +++ b/xen/common/event_channel.c @@ -61,7 +61,9 @@ static inline void evtchn_write_lock(struct evtchn *evtchn) { write_lock(&evtchn->lock);+#ifndef NDEBUGevtchn->old_state = evtchn->state; +#endif }static inline void evtchn_write_unlock(struct evtchn *evtchn)diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h index 7251b3ae3e..95f96e7a33 100644 --- a/xen/include/xen/sched.h +++ b/xen/include/xen/sched.h @@ -114,9 +114,7 @@ struct evtchn u16 virq; /* state == ECS_VIRQ */ } u; u8 priority; -#ifndef NDEBUG u8 old_state; /* State when taking lock in write mode. */ -#endif u8 last_priority; u16 last_vcpu_id; #ifdef CONFIG_XSMDid you mean just either of the two changes (and then the former), not both? If so Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx> and I'll be happy to drop the other half for committing. The header fix is required for NDEBUG builds, while the other one is removing a write with no accompanied read for NDEBUG builds. Juergen Attachment:
OpenPGP_0xB0DE9DD628BF132F.asc Attachment:
OpenPGP_signature
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |