qemu-common: stop including qemu/bswap.h from qemu-common.h

Move it to the actual users.  There are still a few includes of
qemu/bswap.h in headers; removing them is left for future work.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2016-03-15 17:22:36 +01:00
parent a7d6039cb3
commit 58369e22cf
31 changed files with 30 additions and 2 deletions

View File

@ -24,6 +24,7 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/bswap.h"
#include "audio.h" #include "audio.h"
#define AUDIO_CAP "mixeng" #define AUDIO_CAP "mixeng"

View File

@ -27,6 +27,7 @@
#include "qemu-common.h" #include "qemu-common.h"
#include "block/block_int.h" #include "block/block_int.h"
#include "qemu/module.h" #include "qemu/module.h"
#include "qemu/bswap.h"
/**************************************************************/ /**************************************************************/

View File

@ -26,6 +26,7 @@
#include "qemu-common.h" #include "qemu-common.h"
#include "block/block_int.h" #include "block/block_int.h"
#include "qemu/module.h" #include "qemu/module.h"
#include "qemu/bswap.h"
#include <zlib.h> #include <zlib.h>
/* Maximum compressed block size */ /* Maximum compressed block size */

View File

@ -33,6 +33,7 @@
#include "block/block_int.h" #include "block/block_int.h"
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "qemu/module.h" #include "qemu/module.h"
#include "qemu/bswap.h"
#include "qemu/bitmap.h" #include "qemu/bitmap.h"
#include "qapi/util.h" #include "qapi/util.h"

View File

@ -28,6 +28,7 @@
#include "block/block_int.h" #include "block/block_int.h"
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "qemu/module.h" #include "qemu/module.h"
#include "qemu/bswap.h"
#include <zlib.h> #include <zlib.h>
#include "qapi/qmp/qerror.h" #include "qapi/qmp/qerror.h"
#include "crypto/cipher.h" #include "crypto/cipher.h"

View File

@ -29,6 +29,7 @@
#include "qemu-common.h" #include "qemu-common.h"
#include "block/block_int.h" #include "block/block_int.h"
#include "block/qcow2.h" #include "block/qcow2.h"
#include "qemu/bswap.h"
#include "trace.h" #include "trace.h"
int qcow2_grow_l1_table(BlockDriverState *bs, uint64_t min_size, int qcow2_grow_l1_table(BlockDriverState *bs, uint64_t min_size,

View File

@ -28,6 +28,7 @@
#include "block/block_int.h" #include "block/block_int.h"
#include "block/qcow2.h" #include "block/qcow2.h"
#include "qemu/range.h" #include "qemu/range.h"
#include "qemu/bswap.h"
static int64_t alloc_clusters_noref(BlockDriverState *bs, uint64_t size); static int64_t alloc_clusters_noref(BlockDriverState *bs, uint64_t size);
static int QEMU_WARN_UNUSED_RESULT update_refcount(BlockDriverState *bs, static int QEMU_WARN_UNUSED_RESULT update_refcount(BlockDriverState *bs,

View File

@ -26,6 +26,7 @@
#include "qapi/error.h" #include "qapi/error.h"
#include "block/block_int.h" #include "block/block_int.h"
#include "block/qcow2.h" #include "block/qcow2.h"
#include "qemu/bswap.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "qemu/cutils.h" #include "qemu/cutils.h"

View File

@ -36,6 +36,7 @@
#include "trace.h" #include "trace.h"
#include "qemu/option_int.h" #include "qemu/option_int.h"
#include "qemu/cutils.h" #include "qemu/cutils.h"
#include "qemu/bswap.h"
/* /*
Differences with QCOW: Differences with QCOW:

View File

@ -16,6 +16,7 @@
#include "trace.h" #include "trace.h"
#include "qemu/sockets.h" /* for EINPROGRESS on Windows */ #include "qemu/sockets.h" /* for EINPROGRESS on Windows */
#include "qed.h" #include "qed.h"
#include "qemu/bswap.h"
typedef struct { typedef struct {
GenericCB gencb; GenericCB gencb;

View File

@ -15,6 +15,7 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "qapi/error.h" #include "qapi/error.h"
#include "qemu/timer.h" #include "qemu/timer.h"
#include "qemu/bswap.h"
#include "trace.h" #include "trace.h"
#include "qed.h" #include "qed.h"
#include "qapi/qmp/qerror.h" #include "qapi/qmp/qerror.h"

View File

@ -54,6 +54,7 @@
#include "block/block_int.h" #include "block/block_int.h"
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "qemu/module.h" #include "qemu/module.h"
#include "qemu/bswap.h"
#include "migration/migration.h" #include "migration/migration.h"
#include "qemu/coroutine.h" #include "qemu/coroutine.h"
#include "qemu/cutils.h" #include "qemu/cutils.h"

View File

@ -18,6 +18,7 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "block/block_int.h" #include "block/block_int.h"
#include "qemu/bswap.h"
#include "block/vhdx.h" #include "block/vhdx.h"
#include <uuid/uuid.h> #include <uuid/uuid.h>

View File

@ -23,6 +23,7 @@
#include "block/block_int.h" #include "block/block_int.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "qemu/module.h" #include "qemu/module.h"
#include "qemu/bswap.h"
#include "block/vhdx.h" #include "block/vhdx.h"

View File

@ -22,6 +22,7 @@
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "qemu/module.h" #include "qemu/module.h"
#include "qemu/crc32c.h" #include "qemu/crc32c.h"
#include "qemu/bswap.h"
#include "block/vhdx.h" #include "block/vhdx.h"
#include "migration/migration.h" #include "migration/migration.h"

View File

@ -30,6 +30,7 @@
#include "qapi/qmp/qerror.h" #include "qapi/qmp/qerror.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "qemu/module.h" #include "qemu/module.h"
#include "qemu/bswap.h"
#include "migration/migration.h" #include "migration/migration.h"
#include "qemu/cutils.h" #include "qemu/cutils.h"
#include <zlib.h> #include <zlib.h>

View File

@ -29,6 +29,7 @@
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "qemu/module.h" #include "qemu/module.h"
#include "migration/migration.h" #include "migration/migration.h"
#include "qemu/bswap.h"
#if defined(CONFIG_UUID) #if defined(CONFIG_UUID)
#include <uuid/uuid.h> #include <uuid/uuid.h>
#endif #endif

View File

@ -27,6 +27,7 @@
#include "qapi/error.h" #include "qapi/error.h"
#include "block/block_int.h" #include "block/block_int.h"
#include "qemu/module.h" #include "qemu/module.h"
#include "qemu/bswap.h"
#include "migration/migration.h" #include "migration/migration.h"
#include "qapi/qmp/qint.h" #include "qapi/qmp/qint.h"
#include "qapi/qmp/qbool.h" #include "qapi/qmp/qbool.h"

View File

@ -24,6 +24,7 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "qemu/bswap.h"
#include "crypto/afsplit.h" #include "crypto/afsplit.h"
#include "crypto/random.h" #include "crypto/random.h"

View File

@ -20,6 +20,7 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "qapi/error.h" #include "qapi/error.h"
#include "qemu/bswap.h"
#include "crypto/block-luks.h" #include "crypto/block-luks.h"

View File

@ -20,6 +20,7 @@
#include "qapi/error.h" #include "qapi/error.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "qemu/bswap.h"
#include "sysemu/device_tree.h" #include "sysemu/device_tree.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "hw/loader.h" #include "hw/loader.h"

View File

@ -21,6 +21,7 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "qapi/error.h" #include "qapi/error.h"
#include "qemu/cutils.h" #include "qemu/cutils.h"
#include "qemu/bswap.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "hw/arm/omap.h" #include "hw/arm/omap.h"
#include "hw/arm/arm.h" #include "hw/arm/arm.h"

View File

@ -32,6 +32,7 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "qemu/bswap.h"
#include "hw/block/block.h" #include "hw/block/block.h"
#include "trace.h" #include "trace.h"

View File

@ -22,6 +22,7 @@
#include "qemu-common.h" #include "qemu-common.h"
#include "sysemu/char.h" #include "sysemu/char.h"
#include "qemu/timer.h" #include "qemu/timer.h"
#include "qemu/bswap.h"
#include "hw/irq.h" #include "hw/irq.h"
#include "sysemu/bt.h" #include "sysemu/bt.h"
#include "hw/bt.h" #include "hw/bt.h"

View File

@ -20,6 +20,7 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/timer.h" #include "qemu/timer.h"
#include "qemu/bswap.h"
#include "hw/bt.h" #include "hw/bt.h"
#define L2CAP_CID_MAX 0x100 /* Between 0x40 and 0x10000 */ #define L2CAP_CID_MAX 0x100 /* Between 0x40 and 0x10000 */

View File

@ -23,8 +23,6 @@
#include "qemu/option.h" #include "qemu/option.h"
#include "qemu/host-utils.h" #include "qemu/host-utils.h"
#include "qemu/bswap.h"
/* FIXME: Remove NEED_CPU_H. */ /* FIXME: Remove NEED_CPU_H. */
#ifdef NEED_CPU_H #ifdef NEED_CPU_H
#include "cpu.h" #include "cpu.h"

View File

@ -20,6 +20,7 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "qapi/error.h" #include "qapi/error.h"
#include "qemu/bswap.h"
#include "io/channel-websock.h" #include "io/channel-websock.h"
#include "crypto/hash.h" #include "crypto/hash.h"
#include "trace.h" #include "trace.h"

View File

@ -27,6 +27,7 @@
#include <linux/fs.h> #include <linux/fs.h>
#endif #endif
#include "qemu/bswap.h"
#include "qemu/queue.h" #include "qemu/queue.h"
#include "qemu/main-loop.h" #include "qemu/main-loop.h"

View File

@ -26,6 +26,7 @@
#include "qemu/main-loop.h" #include "qemu/main-loop.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "qemu/config-file.h" #include "qemu/config-file.h"
#include "qemu/bswap.h"
#include "block/snapshot.h" #include "block/snapshot.h"
#include "qapi/util.h" #include "qapi/util.h"
#include "qapi/qmp/qstring.h" #include "qapi/qmp/qstring.h"

View File

@ -32,6 +32,7 @@
#include "libqos/malloc-pc.h" #include "libqos/malloc-pc.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/bswap.h"
#include "hw/pci/pci_ids.h" #include "hw/pci/pci_ids.h"
#include "hw/pci/pci_regs.h" #include "hw/pci/pci_regs.h"

View File

@ -22,6 +22,7 @@
#include "qapi/error.h" #include "qapi/error.h"
#include "vnc.h" #include "vnc.h"
#include "io/channel-websock.h" #include "io/channel-websock.h"
#include "qemu/bswap.h"
static void vncws_tls_handshake_done(Object *source, static void vncws_tls_handshake_done(Object *source,
Error *err, Error *err,