hw/ppc/vof: Add missing includes
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 28 Jan 2022 12:15:03 +0000 (13:15 +0100)
committerCédric Le Goater <clg@kaod.org>
Fri, 28 Jan 2022 12:15:03 +0000 (13:15 +0100)
vof.h requires "qom/object.h" for DECLARE_CLASS_CHECKERS(),
"exec/memory.h" for address_space_read/write(),
"exec/address-spaces.h" for address_space_memory
and more importantly "cpu.h" for target_ulong.

vof.c doesn't need "exec/ram_addr.h".

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220122003104.84391-1-f4bug@amsat.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/ppc/vof.c
include/hw/ppc/vof.h

index 73adc44ec212693dbd4b21c6af1f1338ed6856e6..2b63a62875612ff7a9ce2110edbc17d6a2753e88 100644 (file)
@@ -16,7 +16,6 @@
 #include "qemu/units.h"
 #include "qemu/log.h"
 #include "qapi/error.h"
-#include "exec/ram_addr.h"
 #include "exec/address-spaces.h"
 #include "hw/ppc/vof.h"
 #include "hw/ppc/fdt.h"
index 97fdef758bf22eada3f9b5a474a80dde7aacdf6f..f8c0effcaf881d529a252219aab18087ecddb2d8 100644 (file)
@@ -6,6 +6,11 @@
 #ifndef HW_VOF_H
 #define HW_VOF_H
 
+#include "qom/object.h"
+#include "exec/address-spaces.h"
+#include "exec/memory.h"
+#include "cpu.h"
+
 typedef struct Vof {
     uint64_t top_addr; /* copied from rma_size */
     GArray *claimed; /* array of SpaprOfClaimed */