[Qemu-devel] [RFC PATCH 0/2] ide/ahci: add missing includes

Philippe Mathieu-Daudé posted 2 patches 8 years, 4 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20170609150600.4654-1-f4bug@amsat.org
Test FreeBSD passed
Test checkpatch passed
Test docker passed
Test s390x passed
hw/arm/highbank.c     | 3 ++-
include/hw/ide/ahci.h | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
[Qemu-devel] [RFC PATCH 0/2] ide/ahci: add missing includes
Posted by Philippe Mathieu-Daudé 8 years, 4 months ago
Hi Eric, John.

The patch 07/11 "hw/arm: use defined type name instead of hard-coded string."
triggered this problem.

I split the previous series to only include the 2 commits involved to reproduce.

As you will see, calxeda_init() from highbank.c uses the sysbus type name
"sysbus-ahci" which is already defined in "hw/ide/ahci.h" as TYPE_SYSBUS_AHCI.
As mentioned in HACKING highbank.c first include is "qemu/osdep.h". However
compiling highbank.c fails (as reported in patch "04/11" commit comments).

I don't think appropriate to include "hw/ide/internal.h" and "sysemu/dma.h" in
highbank.c. Eventually another source including "hw/ide/ahci.h" will hit the
same error.

Do you see another place where those includes should go?

I think I did a mistake sending these both patchs in a series thinking they were
unrelated, I should have send them altogether, my bad :/

Regards,

Phil.

Philippe Mathieu-Daudé (2):
  arm/highbank: use defined type name instead of hard-coded string
  ide/ahci: add missing includes

 hw/arm/highbank.c     | 3 ++-
 include/hw/ide/ahci.h | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

-- 
2.11.0