On 12/4/25 18:03, Philippe Mathieu-Daudé wrote:
QEMUBH *aio_bh_new_full(AioContext *ctx, QEMUBHFunc *cb, void
*opaque,
- const char *name, MemReentrancyGuard
*reentrancy_guard);
+ const char *name, struct MemReentrancyGuard
*reentrancy_guard);
I suppose these changes were before you move the declarations to their
own "qemu/mem-reentrancy.h" header?
Yes, but also qemu/mem-reentrancy.h is not included here.
We want to also include it instead, right? (No need to forward declare)
Why? The struct is opaque, and as a general principle avoiding
header-from-header inclusions reduces compile times.
Paolo