Include exec/memory.h slightly less

Drop unnecessary inclusions from headers.  Downgrade a few more to
exec/hwaddr.h.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190812052359.30071-17-armbru@redhat.com>
This commit is contained in:
Markus Armbruster 2019-08-12 07:23:46 +02:00
parent d645427057
commit d484205210
26 changed files with 20 additions and 10 deletions

View File

@ -13,6 +13,7 @@
#define HW_LM4549_H
#include "audio/audio.h"
#include "exec/hwaddr.h"
typedef void (*lm4549_callback)(void *opaque);

View File

@ -1,4 +1,5 @@
#include "qemu/osdep.h"
#include "exec/memory.h"
#include "hw/display/edid.h"
static uint64_t edid_region_read(void *ptr, hwaddr addr, unsigned size)

View File

@ -17,6 +17,7 @@
#include "hw/hw.h"
#include "hw/irq.h"
#include "hw/display/tc6393xb.h"
#include "exec/memory.h"
#include "hw/block/flash.h"
#include "ui/console.h"
#include "ui/pixel_ops.h"

View File

@ -27,6 +27,7 @@
#ifndef HW_CAN_SJA1000_H
#define HW_CAN_SJA1000_H
#include "exec/hwaddr.h"
#include "net/can_emu.h"
#define CAN_SJA_MEM_SIZE 128

View File

@ -25,6 +25,7 @@
#include "qemu/osdep.h"
#include "net/eth.h"
#include "qemu/module.h"
#include "exec/memory.h"
#include "hw/irq.h"
#include "migration/vmstate.h"
#include "ne2000.h"

View File

@ -29,7 +29,6 @@
#define XTENSA_MEMORY_H
#include "cpu.h"
#include "exec/memory.h"
void xtensa_create_memory_regions(const XtensaMemory *memory,
const char *name,

View File

@ -11,7 +11,6 @@
#ifndef HW_ARM_BOOT_H
#define HW_ARM_BOOT_H
#include "exec/memory.h"
#include "target/arm/cpu-qom.h"
#include "qemu/notify.h"

View File

@ -38,7 +38,6 @@
#include "hw/net/imx_fec.h"
#include "hw/pci-host/designware.h"
#include "hw/usb/chipidea.h"
#include "exec/memory.h"
#include "cpu.h"
#define TYPE_FSL_IMX7 "fsl,imx7"

View File

@ -21,7 +21,7 @@
#ifndef HW_SOC_DMA_H
#define HW_SOC_DMA_H
#include "exec/memory.h"
#include "exec/hwaddr.h"
struct soc_dma_s;
struct soc_dma_ch_s;

View File

@ -3,7 +3,7 @@
/* NOR flash devices */
#include "exec/memory.h"
#include "exec/hwaddr.h"
/* pflash_cfi01.c */

View File

@ -3,6 +3,7 @@
#ifndef HW_BOARDS_H
#define HW_BOARDS_H
#include "exec/memory.h"
#include "sysemu/blockdev.h"
#include "sysemu/accel.h"
#include "hw/qdev.h"

View File

@ -1,7 +1,6 @@
#ifndef HW_PARALLEL_H
#define HW_PARALLEL_H
#include "exec/memory.h"
#include "hw/isa/isa.h"
#include "chardev/char.h"

View File

@ -27,6 +27,7 @@
#ifndef HW_DISPLAY_MILKYMIST_TMU2_H
#define HW_DISPLAY_MILKYMIST_TMU2_H
#include "exec/hwaddr.h"
#include "hw/qdev.h"
#if defined(CONFIG_X11) && defined(CONFIG_OPENGL)

View File

@ -12,8 +12,6 @@
#ifndef HW_DISPLAY_TC6393XB_H
#define HW_DISPLAY_TC6393XB_H
#include "exec/memory.h"
typedef struct TC6393xbState TC6393xbState;
TC6393xbState *tc6393xb_init(struct MemoryRegion *sysmem,

View File

@ -9,7 +9,7 @@
#ifndef QEMU_HW_DISPLAY_VGA_H
#define QEMU_HW_DISPLAY_VGA_H
#include "exec/memory.h"
#include "exec/hwaddr.h"
enum vga_retrace_method {
VGA_RETRACE_DUMB,

View File

@ -7,7 +7,6 @@
#endif
#include "qom/object.h"
#include "exec/memory.h"
void QEMU_NORETURN hw_error(const char *fmt, ...) GCC_FMT_ATTR(1, 2);

View File

@ -1,6 +1,7 @@
#ifndef PM_SMBUS_H
#define PM_SMBUS_H
#include "exec/memory.h"
#include "hw/i2c/smbus_master.h"
#define PM_SMBUS_MAX_MSG_SIZE 32

View File

@ -23,6 +23,7 @@
#ifndef HW_SMBUS_EEPROM_H
#define HW_SMBUS_EEPROM_H
#include "exec/cpu-common.h"
#include "hw/i2c/i2c.h"
void smbus_eeprom_init_one(I2CBus *bus, uint8_t address, uint8_t *eeprom_buf);

View File

@ -25,6 +25,7 @@
#ifndef HW_MISC_AUXBUS_H
#define HW_MISC_AUXBUS_H
#include "exec/memory.h"
#include "hw/qdev.h"
typedef struct AUXBus AUXBus;

View File

@ -28,6 +28,7 @@
#ifndef XICS_H
#define XICS_H
#include "exec/memory.h"
#include "hw/qdev.h"
#define XICS_IPI 0x2

View File

@ -25,6 +25,7 @@
* THE SOFTWARE.
*/
#include "exec/memory.h"
#include "hw/qdev.h"
#include "qemu/iov.h"
#include "qemu/queue.h"

View File

@ -14,6 +14,7 @@
#ifndef QEMU_VIRTIO_H
#define QEMU_VIRTIO_H
#include "exec/memory.h"
#include "hw/hw.h"
#include "net/net.h"
#include "hw/qdev.h"

View File

@ -23,6 +23,7 @@
#include "io/channel-buffer.h"
#include "trace.h"
#include "qemu/error-report.h"
#include "qemu/rcu.h"
#include "migration/failover.h"
#ifdef CONFIG_REPLICATION
#include "replication.h"

View File

@ -14,6 +14,7 @@
#ifndef QEMU_MIGRATION_H
#define QEMU_MIGRATION_H
#include "exec/cpu-common.h"
#include "qapi/qapi-types-migration.h"
#include "qemu/thread.h"
#include "qemu/coroutine_int.h"

View File

@ -25,6 +25,7 @@
#include "ram.h"
#include "qapi/error.h"
#include "qemu/notify.h"
#include "qemu/rcu.h"
#include "sysemu/sysemu.h"
#include "sysemu/balloon.h"
#include "qemu/error-report.h"

View File

@ -25,6 +25,7 @@
#include "qemu/error-report.h"
#include "qemu/main-loop.h"
#include "qemu/module.h"
#include "qemu/rcu.h"
#include "qemu/sockets.h"
#include "qemu/bitmap.h"
#include "qemu/coroutine.h"