[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC] [PATCHv10 09/31] aio / timers: Untangle include f
From: |
Jan Kiszka |
Subject: |
Re: [Qemu-devel] [RFC] [PATCHv10 09/31] aio / timers: Untangle include files |
Date: |
Mon, 12 Aug 2013 19:12:12 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
On 2013-08-12 19:04, Alex Bligh wrote:
> Jan,
>
> On 12 Aug 2013, at 17:40, Jan Kiszka wrote:
>
>> On 2013-08-11 18:43, Alex Bligh wrote:
>>> include/qemu/timer.h has no need to include main-loop.h and
>>> doing so causes an issue for the next patch. Unfortunately
>>> various files assume including timers.h will pull in main-loop.h.
>>> Untangle this mess.
>>>
>>
>> Hmm, this triggers a double typedef of AioContext for me. I've resolved
>> it like the QEMUTimer issue: moved the typedef to typedefs.h.
>
> For clarity, you mean in include/block/aio.h:
> typedef struct AioContext {
> becomes
> include/block/aio.h:struct AioContext {
>
> and then in include/qemu/typedefs.h add:
> typedef struct AioContext AioContext;
Yes, and remove the typedef from coroutine.h (that's the duplication).
>
> (just so I can get it right in v11 as I don't see your error here)
>
This can be an independent patch, in fact. You don't introduce the
issue, just expose it this way.
Jan
--
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux
- [Qemu-devel] [RFC] [PATCHv10 04/31] aio / timers: Consistent treatment of disabled clocks for deadlines, (continued)
- [Qemu-devel] [RFC] [PATCHv10 04/31] aio / timers: Consistent treatment of disabled clocks for deadlines, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 11/31] aio / timers: Add QEMUTimerListGroup to AioContext, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 10/31] aio / timers: Add QEMUTimerListGroup and helper functions, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 12/31] aio / timers: Add a notify callback to QEMUTimerList, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 14/31] aio / timers: Add aio_timer_init & aio_timer_new wrappers, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 13/31] aio / timers: aio_ctx_prepare sets timeout from AioContext timers, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 15/31] aio / timers: Convert aio_poll to use AioContext timers' deadline, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 09/31] aio / timers: Untangle include files, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 16/31] aio / timers: Convert mainloop to use timeout, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 18/31] aio / timers: Introduce new API timer_new and friends, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 17/31] aio / timers: On timer modification, qemu_notify or aio_notify, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 22/31] aio / timers: Remove legacy qemu_clock_deadline & qemu_timerlist_deadline, Alex Bligh, 2013/08/11
- [Qemu-devel] [RFC] [PATCHv10 19/31] aio / timers: Use all timerlists in icount warp calculations, Alex Bligh, 2013/08/11
[Qemu-devel] [RFC] [PATCHv10 23/31] aio / timers: Add qemu_clock_get_ms and qemu_clock_get_ms, Alex Bligh, 2013/08/11
[Qemu-devel] [RFC] [PATCHv10 08/31] aio / timers: Split QEMUClock into QEMUClock and QEMUTimerList, Alex Bligh, 2013/08/11