All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Snow <jsnow@redhat.com>
To: "Eric Blake" <eblake@redhat.com>,
	"Philippe Mathieu-Daudé" <f4bug@amsat.org>,
	qemu-devel@nongnu.org, qemu-trivial@nongnu.org,
	qemu-block@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 04/11] ide/ahci: add missing includes
Date: Tue, 9 May 2017 09:49:45 -0400	[thread overview]
Message-ID: <80969f61-38d4-20ac-d850-5e90c8852b40@redhat.com> (raw)
In-Reply-To: <56387911-b587-adf0-c65b-ed12374d604d@redhat.com>



On 05/08/2017 07:58 PM, Eric Blake wrote:
> On 05/08/2017 06:39 PM, Philippe Mathieu-Daudé wrote:
>> qemu/include/hw/ide/ahci.h:260:16: error: field ‘sglist’ has incomplete type
>>      QEMUSGList sglist;
>>                 ^~~~~~
> 
> What are you doing to get this compilation error (configure options,
> platform, compiler, etc)?  I can't reproduce it. Is it something that
> pops up later when you remove includes from somewhere else, and you're
> just pre-emptively adding includes here to allow removal of includes later?
> 

"What he said," but if I had to guess, Philippe is testing that each
header can be compiled separately.

>> /qemu/include/hw/ide/ahci.h:272:5: error: unknown type name ‘IDEDMA’
>>      IDEDMA dma;
>>      ^~~~~~
>> qemu/include/hw/ide/ahci.h:273:5: error: unknown type name ‘IDEBus’
>>      IDEBus port;
>>      ^~~~~~
>> qemu/include/hw/ide/ahci.h:305:15: error: field ‘parent_obj’ has incomplete type
>>      PCIDevice parent_obj;
>>                ^~~~~~~~~~
>>
>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
>> ---
>>  include/hw/ide/ahci.h | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/include/hw/ide/ahci.h b/include/hw/ide/ahci.h
>> index 0ca7c65820..293f9ebcd0 100644
>> --- a/include/hw/ide/ahci.h
>> +++ b/include/hw/ide/ahci.h
>> @@ -25,6 +25,8 @@
>>  #define HW_IDE_AHCI_H
>>  
>>  #include "hw/sysbus.h"
>> +#include "hw/ide/internal.h">> +#include "sysemu/dma.h"
>>  
>>  #define AHCI_MEM_BAR_SIZE         0x1000
>>  #define AHCI_MAX_PORTS            32
>>
> 

  reply	other threads:[~2017-05-09 13:50 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-08 23:39 [Qemu-devel] [PATCH 00/11] various easy cleanups Philippe Mathieu-Daudé
2017-05-08 23:39 ` [Qemu-devel] [PATCH 01/11] hw/net: removed obsolete comments Philippe Mathieu-Daudé
2017-05-09  7:27   ` Alex Bennée
2017-05-08 23:39 ` [Qemu-devel] [RFC PATCH 02/11] hw/pci: define msi_nonbroken in pci-stub Philippe Mathieu-Daudé
2017-05-09  5:19   ` Thomas Huth
2017-05-09 16:49     ` Philippe Mathieu-Daudé
2017-05-09 18:24       ` Thomas Huth
2017-05-08 23:39 ` [Qemu-devel] [PATCH 03/11] hw/misc: add missing includes Philippe Mathieu-Daudé
2017-05-08 23:56   ` Eric Blake
2017-05-09  0:56     ` Philippe Mathieu-Daudé
2017-05-09 17:20       ` Philippe Mathieu-Daudé
2017-05-09 17:24         ` Eric Blake
2017-09-05  9:35     ` Philippe Mathieu-Daudé
2017-09-05  9:39       ` Peter Maydell
2017-05-08 23:39 ` [Qemu-devel] [PATCH 04/11] ide/ahci: " Philippe Mathieu-Daudé
2017-05-08 23:58   ` Eric Blake
2017-05-09 13:49     ` John Snow [this message]
2017-06-09 15:05       ` [Qemu-devel] [RFC PATCH 0/2] " Philippe Mathieu-Daudé
2017-06-09 15:05       ` [Qemu-devel] [RFC PATCH 1/2] arm/highbank: use defined type name instead of hard-coded string Philippe Mathieu-Daudé
2017-06-23 22:18         ` John Snow
2017-06-26  4:32           ` Philippe Mathieu-Daudé
2017-06-09 15:06       ` [Qemu-devel] [RFC PATCH 2/2] ide/ahci: add missing includes Philippe Mathieu-Daudé
2017-05-08 23:39 ` [Qemu-devel] [PATCH 05/11] hw/mips: add missing include Philippe Mathieu-Daudé
2017-05-08 23:55   ` Aurelien Jarno
2017-05-23 15:00   ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
2017-05-08 23:39 ` [Qemu-devel] [PATCH 06/11] hw/arm: removed unnecessary include Philippe Mathieu-Daudé
2017-05-23 14:58   ` Michael Tokarev
2017-06-09 21:28     ` Philippe Mathieu-Daudé
2017-05-08 23:39 ` [Qemu-devel] [PATCH 08/11] hw/sparc: use ARRAY_SIZE() macro Philippe Mathieu-Daudé
2017-05-09  7:25   ` Alex Bennée
2017-05-23 14:56   ` Michael Tokarev
2017-05-08 23:39 ` [Qemu-devel] [PATCH 09/11] target/sparc: fix DEBUG_MMU DPRINTF() arguments Philippe Mathieu-Daudé
2017-05-09  0:00   ` Eric Blake
2017-05-09  0:54     ` Philippe Mathieu-Daudé
2017-05-08 23:39 ` [Qemu-devel] [PATCH 10/11] register: display register prefix (name) since it is available Philippe Mathieu-Daudé
2017-05-09  0:05   ` Alistair Francis
2017-05-23 14:56   ` Michael Tokarev
2017-05-08 23:39 ` [Qemu-devel] [PATCH 11/11] MAINTAINERS: self-appoint me as reviewer of the Register API Philippe Mathieu-Daudé
2017-05-23 15:03 ` [Qemu-devel] [PATCH 00/11] various easy cleanups Michael Tokarev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=80969f61-38d4-20ac-d850-5e90c8852b40@redhat.com \
    --to=jsnow@redhat.com \
    --cc=eblake@redhat.com \
    --cc=f4bug@amsat.org \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.