Browse Source

bswap: Include missing 'qemu/bswap.h' header

All these files indirectly include the "qemu/bswap.h" header.
Make this inclusion explicit to avoid build errors when
refactoring unrelated headers.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20260109164742.58041-4-philmd@linaro.org>
pull/316/head
Philippe Mathieu-Daudé 7 months ago
parent
commit
3115691855
  1. 1
      audio/audio.c
  2. 1
      block/blklogwrites.c
  3. 1
      block/export/vduse-blk.c
  4. 1
      block/export/vhost-user-blk-server.c
  5. 1
      block/export/virtio-blk-handler.c
  6. 1
      block/parallels-ext.c
  7. 1
      block/qcow2.h
  8. 1
      hw/9pfs/9p-local.c
  9. 1
      hw/block/cdrom.c
  10. 1
      hw/block/hd-geometry.c
  11. 1
      hw/net/can/ctucan_core.c
  12. 1
      hw/nvram/xlnx-efuse.c
  13. 1
      hw/scsi/scsi-generic.c
  14. 1
      hw/sd/sd.c
  15. 1
      hw/sd/ssi-sd.c
  16. 1
      net/l2tpv3.c
  17. 1
      qga/commands-linux.c
  18. 1
      scsi/pr-manager-helper.c
  19. 1
      target/arm/tcg/arith_helper.c
  20. 1
      tests/qtest/acpi-utils.c
  21. 1
      tests/qtest/aspeed-hace-utils.c
  22. 1
      tests/qtest/bios-tables-test.c
  23. 1
      tests/qtest/libqos/igb.c
  24. 1
      tests/qtest/libqos/virtio-9p-client.c
  25. 1
      tests/qtest/migration/framework.c
  26. 1
      tests/qtest/npcm7xx_emc-test.c
  27. 1
      tests/qtest/tpm-emu.c
  28. 1
      tests/qtest/ufs-test.c
  29. 1
      tests/qtest/vmgenid-test.c
  30. 1
      tests/unit/test-hbitmap.c
  31. 1
      util/bitmap.c

1
audio/audio.c

@ -32,6 +32,7 @@
#include "qapi/qapi-visit-audio.h"
#include "qapi/qapi-commands-audio.h"
#include "qobject/qdict.h"
#include "qemu/bswap.h"
#include "qemu/error-report.h"
#include "qemu/log.h"
#include "qemu/module.h"

1
block/blklogwrites.c

@ -16,6 +16,7 @@
#include "block/block_int.h"
#include "qobject/qdict.h"
#include "qobject/qstring.h"
#include "qemu/bswap.h"
#include "qemu/cutils.h"
#include "qemu/module.h"
#include "qemu/option.h"

1
block/export/vduse-blk.c

@ -13,6 +13,7 @@
#include "qemu/osdep.h"
#include <sys/eventfd.h>
#include "qemu/bswap.h"
#include "qapi/error.h"
#include "block/export.h"
#include "qemu/error-report.h"

1
block/export/vhost-user-blk-server.c

@ -10,6 +10,7 @@
* later. See the COPYING file in the top-level directory.
*/
#include "qemu/osdep.h"
#include "qemu/bswap.h"
#include "qemu/error-report.h"
#include "block/block.h"
#include "subprojects/libvhost-user/libvhost-user.h" /* only for the type definitions */

1
block/export/virtio-blk-handler.c

@ -13,6 +13,7 @@
*/
#include "qemu/osdep.h"
#include "qemu/bswap.h"
#include "qemu/error-report.h"
#include "virtio-blk-handler.h"

1
block/parallels-ext.c

@ -30,6 +30,7 @@
#include "block/dirty-bitmap.h"
#include "parallels.h"
#include "crypto/hash.h"
#include "qemu/bswap.h"
#include "qemu/uuid.h"
#include "qemu/memalign.h"

1
block/qcow2.h

@ -26,6 +26,7 @@
#define BLOCK_QCOW2_H
#include "crypto/block.h"
#include "qemu/bswap.h"
#include "qemu/coroutine.h"
#include "qemu/units.h"
#include "block/block_int.h"

1
hw/9pfs/9p-local.c

@ -28,6 +28,7 @@
#include <sys/un.h>
#include "qemu/xattr.h"
#include "qapi/error.h"
#include "qemu/bswap.h"
#include "qemu/cutils.h"
#include "qemu/error-report.h"
#include "qemu/option.h"

1
hw/block/cdrom.c

@ -26,6 +26,7 @@
here. */
#include "qemu/osdep.h"
#include "qemu/bswap.h"
#include "hw/scsi/scsi.h"
static void lba_to_msf(uint8_t *buf, int lba)

1
hw/block/hd-geometry.c

@ -31,6 +31,7 @@
*/
#include "qemu/osdep.h"
#include "qemu/bswap.h"
#include "system/block-backend.h"
#include "qapi/qapi-types-block.h"
#include "hw/block/block.h"

1
hw/net/can/ctucan_core.c

@ -29,6 +29,7 @@
#include "qemu/osdep.h"
#include "qemu/log.h"
#include "qemu/bitops.h"
#include "qemu/bswap.h"
#include "hw/core/irq.h"
#include "migration/vmstate.h"
#include "net/can_emu.h"

1
hw/nvram/xlnx-efuse.c

@ -27,6 +27,7 @@
#include "qemu/osdep.h"
#include "hw/nvram/xlnx-efuse.h"
#include "qemu/bswap.h"
#include "qemu/error-report.h"
#include "qemu/log.h"
#include "qapi/error.h"

1
hw/scsi/scsi-generic.c

@ -13,6 +13,7 @@
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "qemu/bswap.h"
#include "qemu/ctype.h"
#include "qemu/error-report.h"
#include "qemu/module.h"

1
hw/sd/sd.c

@ -35,6 +35,7 @@
#include "qemu/osdep.h"
#include "qemu/units.h"
#include "qemu/cutils.h"
#include "qemu/bswap.h"
#include "hw/core/irq.h"
#include "hw/core/registerfields.h"
#include "system/block-backend.h"

1
hw/sd/ssi-sd.c

@ -19,6 +19,7 @@
#include "hw/ssi/ssi.h"
#include "migration/vmstate.h"
#include "hw/sd/sd.h"
#include "qemu/bswap.h"
#include "qemu/crc-ccitt.h"
#include "qom/object.h"

1
net/l2tpv3.c

@ -29,6 +29,7 @@
#include "net/net.h"
#include "clients.h"
#include "qapi/error.h"
#include "qemu/bswap.h"
#include "qemu/error-report.h"
#include "qemu/option.h"
#include "qemu/sockets.h"

1
qga/commands-linux.c

@ -12,6 +12,7 @@
*/
#include "qemu/osdep.h"
#include "qemu/bswap.h"
#include "qapi/error.h"
#include "qga-qapi-commands.h"
#include "qapi/error.h"

1
scsi/pr-manager-helper.c

@ -19,6 +19,7 @@
#include "pr-helper.h"
#include "qapi/qapi-events-block.h"
#include "qemu/module.h"
#include "qemu/bswap.h"
#include <scsi/sg.h>
#include "qom/object.h"

1
target/arm/tcg/arith_helper.c

@ -6,6 +6,7 @@
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "qemu/osdep.h"
#include "qemu/bswap.h"
#include "qemu/crc32c.h"
#include <zlib.h> /* for crc32 */

1
tests/qtest/acpi-utils.c

@ -15,6 +15,7 @@
#include "qemu/osdep.h"
#include <glib/gstdio.h>
#include "qemu/bitmap.h"
#include "qemu/bswap.h"
#include "acpi-utils.h"
#include "boot-sector.h"

1
tests/qtest/aspeed-hace-utils.c

@ -8,6 +8,7 @@
#include "qemu/osdep.h"
#include "libqtest.h"
#include "qemu/bitops.h"
#include "qemu/bswap.h"
#include "aspeed-hace-utils.h"
/*

1
tests/qtest/bios-tables-test.c

@ -59,6 +59,7 @@
#include <glib/gstdio.h>
#include "hw/firmware/smbios.h"
#include "qemu/bitmap.h"
#include "qemu/bswap.h"
#include "acpi-utils.h"
#include "boot-sector.h"
#include "tpm-emu.h"

1
tests/qtest/libqos/igb.c

@ -27,6 +27,7 @@
#include "qemu/iov.h"
#include "qemu/module.h"
#include "qemu/bitops.h"
#include "qemu/bswap.h"
#include "libqos-malloc.h"
#include "qgraph.h"
#include "e1000e.h"

1
tests/qtest/libqos/virtio-9p-client.c

@ -13,6 +13,7 @@
*/
#include "qemu/osdep.h"
#include "qemu/bswap.h"
#include "virtio-9p-client.h"
#define QVIRTIO_9P_TIMEOUT_US (10 * 1000 * 1000)

1
tests/qtest/migration/framework.c

@ -21,6 +21,7 @@
#include "qapi/error.h"
#include "qobject/qjson.h"
#include "qobject/qlist.h"
#include "qemu/bswap.h"
#include "qemu/module.h"
#include "qemu/option.h"
#include "qemu/range.h"

1
tests/qtest/npcm7xx_emc-test.c

@ -19,6 +19,7 @@
#include "qobject/qdict.h"
#include "qobject/qnum.h"
#include "qemu/bitops.h"
#include "qemu/bswap.h"
#include "qemu/iov.h"
/* Name of the emc device. */

1
tests/qtest/tpm-emu.c

@ -16,6 +16,7 @@
#include "backends/tpm/tpm_ioctl.h"
#include "io/channel-socket.h"
#include "qapi/error.h"
#include "qemu/bswap.h"
#include "qobject/qlist.h"
#include "qobject/qstring.h"
#include "tpm-emu.h"

1
tests/qtest/ufs-test.c

@ -14,6 +14,7 @@
#include "scsi/constants.h"
#include "block/ufs.h"
#include "qemu/bitmap.h"
#include "qemu/bswap.h"
#define DWORD_BYTE 4
/* Test images sizes in Bytes */

1
tests/qtest/vmgenid-test.c

@ -10,6 +10,7 @@
#include "qemu/osdep.h"
#include "qemu/bitmap.h"
#include "qemu/bswap.h"
#include "qemu/uuid.h"
#include "hw/acpi/acpi-defs.h"
#include "boot-sector.h"

1
tests/unit/test-hbitmap.c

@ -12,6 +12,7 @@
#include "qemu/osdep.h"
#include "qemu/hbitmap.h"
#include "qemu/bitmap.h"
#include "qemu/bswap.h"
#include "block/block.h"
#define LOG_BITS_PER_LONG (BITS_PER_LONG == 32 ? 5 : 6)

1
util/bitmap.c

@ -12,6 +12,7 @@
#include "qemu/osdep.h"
#include "qemu/bitops.h"
#include "qemu/bitmap.h"
#include "qemu/bswap.h"
#include "qemu/atomic.h"
/*

Loading…
Cancel
Save