qemu-devel
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]