Skip to content

Commit

Permalink
Include exec/memory.h slightly less
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Markus Armbruster committed Aug 16, 2019
1 parent d645427 commit d484205
Show file tree
Hide file tree
Showing 26 changed files with 20 additions and 10 deletions.
1 change: 1 addition & 0 deletions hw/audio/lm4549.h
Expand Up @@ -13,6 +13,7 @@
#define HW_LM4549_H

#include "audio/audio.h"
#include "exec/hwaddr.h"

typedef void (*lm4549_callback)(void *opaque);

Expand Down
1 change: 1 addition & 0 deletions hw/display/edid-region.c
@@ -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)
Expand Down
1 change: 1 addition & 0 deletions hw/display/tc6393xb.c
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions hw/net/can/can_sja1000.h
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions hw/net/ne2000.c
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/xtensa/xtensa_memory.h
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion include/hw/arm/boot.h
Expand Up @@ -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"

Expand Down
1 change: 0 additions & 1 deletion include/hw/arm/fsl-imx7.h
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion include/hw/arm/soc_dma.h
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion include/hw/block/flash.h
Expand Up @@ -3,7 +3,7 @@

/* NOR flash devices */

#include "exec/memory.h"
#include "exec/hwaddr.h"

/* pflash_cfi01.c */

Expand Down
1 change: 1 addition & 0 deletions include/hw/boards.h
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion include/hw/char/parallel.h
@@ -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"

Expand Down
1 change: 1 addition & 0 deletions include/hw/display/milkymist_tmu2.h
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions include/hw/display/tc6393xb.h
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion include/hw/display/vga.h
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion include/hw/hw.h
Expand Up @@ -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);

Expand Down
1 change: 1 addition & 0 deletions include/hw/i2c/pm_smbus.h
@@ -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
Expand Down
1 change: 1 addition & 0 deletions include/hw/i2c/smbus_eeprom.h
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions include/hw/misc/auxbus.h
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions include/hw/ppc/xics.h
Expand Up @@ -28,6 +28,7 @@
#ifndef XICS_H
#define XICS_H

#include "exec/memory.h"
#include "hw/qdev.h"

#define XICS_IPI 0x2
Expand Down
1 change: 1 addition & 0 deletions include/hw/usb.h
Expand Up @@ -25,6 +25,7 @@
* THE SOFTWARE.
*/

#include "exec/memory.h"
#include "hw/qdev.h"
#include "qemu/iov.h"
#include "qemu/queue.h"
Expand Down
1 change: 1 addition & 0 deletions include/hw/virtio/virtio.h
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions migration/colo.c
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions migration/migration.h
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions migration/postcopy-ram.c
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions migration/rdma.c
Expand Up @@ -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"
Expand Down

0 comments on commit d484205

Please sign in to comment.