Re: [PATCH 4/4] coroutine: Break inclusion loop

2022-12-18 Thread Markus Armbruster
Paolo Bonzini writes: > On 12/15/22 07:49, Markus Armbruster wrote: >>> linux-user/ does not use coroutines, so I'd like to avoid that it >>> includes qemu/coroutine.h. >> They include it even before the patch, via lockable.h. > > They do but there's a difference between "including lockable.h and

Re: [PATCH 4/4] coroutine: Break inclusion loop

2022-12-17 Thread Philippe Mathieu-Daudé
On 13/12/22 01:34, Paolo Bonzini wrote: On 12/8/22 15:23, Markus Armbruster wrote: > qemu/coroutine.h and qemu/lockable.h include each other.  Neither > header actually needs the other one. qemu/lockable.h wants qemu/coroutine.h because of the reference to qemu_co_mutex_loc

Re: [PATCH 4/4] coroutine: Break inclusion loop

2022-12-17 Thread Paolo Bonzini
On 12/15/22 07:49, Markus Armbruster wrote: linux-user/ does not use coroutines, so I'd like to avoid that it includes qemu/coroutine.h. They include it even before the patch, via lockable.h. They do but there's a difference between "including lockable.h and implictly getting coroutine.h due

Re: [PATCH 4/4] coroutine: Break inclusion loop

2022-12-14 Thread Markus Armbruster
Paolo Bonzini writes: > dropped qemu-devel by mistake. > > Paolo > > > Il lun 12 dic 2022, 23:16 Paolo Bonzini ha scritto: > >> On 12/8/22 15:23, Markus Armbruster wrote: >> > qemu/coroutine.h and qemu/lockable.h include each other. Neither >> > header actually needs the other one. >> >> qemu/l

Re: [PATCH 4/4] coroutine: Break inclusion loop

2022-12-12 Thread Paolo Bonzini
dropped qemu-devel by mistake. Paolo Il lun 12 dic 2022, 23:16 Paolo Bonzini ha scritto: > On 12/8/22 15:23, Markus Armbruster wrote: > > qemu/coroutine.h and qemu/lockable.h include each other. Neither > > header actually needs the other one. > > qemu/lockable.h wants qemu/coroutine.h becaus

Re: [PATCH 4/4] coroutine: Break inclusion loop

2022-12-08 Thread Stefan Hajnoczi
Reviewed-by: Stefan Hajnoczi

[PATCH 4/4] coroutine: Break inclusion loop

2022-12-08 Thread Markus Armbruster
qemu/coroutine.h and qemu/lockable.h include each other. Neither header actually needs the other one. Drop #include "qemu/coroutine.h" from qemu/lockable.h to break the loop. All users of lockable.h actually need qemu/coroutine.h, so adjust their #include directives. I'm not dropping the #inclu