]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
bswap: Include missing 'qemu/bswap.h' header
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 9 Jan 2026 14:48:51 +0000 (15:48 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 22 Jan 2026 09:48:45 +0000 (10:48 +0100)
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>

31 files changed:
audio/audio.c
block/blklogwrites.c
block/export/vduse-blk.c
block/export/vhost-user-blk-server.c
block/export/virtio-blk-handler.c
block/parallels-ext.c
block/qcow2.h
hw/9pfs/9p-local.c
hw/block/cdrom.c
hw/block/hd-geometry.c
hw/net/can/ctucan_core.c
hw/nvram/xlnx-efuse.c
hw/scsi/scsi-generic.c
hw/sd/sd.c
hw/sd/ssi-sd.c
net/l2tpv3.c
qga/commands-linux.c
scsi/pr-manager-helper.c
target/arm/tcg/arith_helper.c
tests/qtest/acpi-utils.c
tests/qtest/aspeed-hace-utils.c
tests/qtest/bios-tables-test.c
tests/qtest/libqos/igb.c
tests/qtest/libqos/virtio-9p-client.c
tests/qtest/migration/framework.c
tests/qtest/npcm7xx_emc-test.c
tests/qtest/tpm-emu.c
tests/qtest/ufs-test.c
tests/qtest/vmgenid-test.c
tests/unit/test-hbitmap.c
util/bitmap.c

index 86e674410abb8a22c5665b51d17da546d5f6bfbc..b7a28f79d4fa1bf7fc828922c87feaf23ea9ac54 100644 (file)
@@ -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"
index aa1f8888690f81e3808b11a6a1be64750567edc1..2490e91802c6fed14c141bf6fca1836481ee874e 100644 (file)
@@ -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"
index bd852e538dc403f1e80d365e9620f1dfc1c824c8..8af13b7f0bf3e38e76cdb990a93f547d1443e846 100644 (file)
@@ -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"
index d9d2014d9b7f66e50288a9f1e63c5e8572d81eae..a4d54e824f260ee0fb6976b8e57bc67175deafa8 100644 (file)
@@ -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 */
index bc1cec6757090205b4c81cfc4d5e0e6ef5329ab2..3dd6c43af1a85c89a4596719ffe09acf572972e6 100644 (file)
@@ -13,6 +13,7 @@
  */
 
 #include "qemu/osdep.h"
+#include "qemu/bswap.h"
 #include "qemu/error-report.h"
 #include "virtio-blk-handler.h"
 
index 778b8f684ef8d3040ba408065c9aca19e150eddc..3410daa62067b0a946d797ae7275991151572e85 100644 (file)
@@ -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"
 
index 96db7c51ec2bf7610fdce28b956d038d879e0bd5..192a45d596b324eaaacaf22c86136d31f0d86ed5 100644 (file)
@@ -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"
index 376b377698c540b59e3e2f21488db16f1b2b6859..c3745f2839f26c69d85486ddb757c06d0711bda6 100644 (file)
@@ -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"
index c6bfa50ad0c307bea3a5c56b857cd0550a833552..70399a546013673241894e6f103ed8b2f68b524a 100644 (file)
@@ -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)
index db221901cf4b290b5090571503e623826c7a74cc..a86f2b406b679550fe2344411b75b03c67cf5528 100644 (file)
@@ -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"
index b6ad7cdb40056a0fe59c0afe62289017183f672c..f6ff4ad2003d96132f4067851529464fc4e37188 100644 (file)
@@ -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"
index facbef3fc4c5e2f1d79aa5faf9db46edac20ca3d..34436705ddeee5a24725ec1f9556b24571eda501 100644 (file)
@@ -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"
index 0a676a16fa48c12718300e9d45a0d95bb2340fd1..6acaf8831a30cc607a5da52f0591602192b4b18c 100644 (file)
@@ -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"
index 5a1fda38a7b263b600576e0a500c1ab11ed5b88d..37f6e0702b0bce85915ef727ba1ec05f02f9c32c 100644 (file)
@@ -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"
index 1782fb74316b67fe3e3acbb15182c64fdfd7a8cf..a3a9f0c7efd852e1f7d33e8d0acf3027e3ab146f 100644 (file)
@@ -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"
 
index 3044fa460810d8df6087dd066cc0e121c037fe18..68c9555268754d30b1403295c434b412ee250227 100644 (file)
@@ -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"
index ae2c4d442a3d0f4610c382cb343b94302b2154b9..378f4d080c1720568ed3f636357a46e8d3dec1c4 100644 (file)
@@ -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"
index aea751fb047d783d72e8b488b326328bd777f6b9..f6454cd80de7bffd0046e581441b3c18690011de 100644 (file)
@@ -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"
index 670139819df53fdbb9e5334f53fcfedd8d539cb8..97c6362992c0c9646540b6ffa572564550eb0919 100644 (file)
@@ -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 */
 
index 9dc24fbe5a09a059dd022350b84d35c6eeb01474..28cca00b960926e2ed312e414330d1c6962d25a8 100644 (file)
@@ -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"
 
index 0f7f911e5eb643ba13557f92d44dbfafe53ee3f3..25450a296bf45a2f8b2e4b6a94eb716b9ff19623 100644 (file)
@@ -8,6 +8,7 @@
 #include "qemu/osdep.h"
 #include "libqtest.h"
 #include "qemu/bitops.h"
+#include "qemu/bswap.h"
 #include "aspeed-hace-utils.h"
 
 /*
index 6b892ef23e1a767b29e221b4c41b98475b7545bc..e489d9433126e8c39c492b776570b448f5e8490a 100644 (file)
@@ -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"
index ab3ef6f0c3b1f97a7a3b1b0cdd2a9874c2af908d..64fdadac90a74aa5d19f212c69bb7fc74d378e56 100644 (file)
@@ -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"
index 6ab4501c6e1a06e628e2459dbd0095f4876b3971..af01d4c3458dc2b8d43a62500c461eacd690a948 100644 (file)
@@ -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)
index 57d3b9b7c5a269d31659971e308367bd916d28f6..6a0063c322d1a71bd7876aab82ffcfabc64504bf 100644 (file)
@@ -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"
index eeedb27ee68d777443ad2d7e378578769a4a0101..71505356b0415362ab11d0dec2e5bffe2d57cf38 100644 (file)
@@ -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. */
index 9e4c2005d0edd3f17bec98e937ae0386631adb4a..189374a9cecf54ae4c4cc4911a49dd27cca4613a 100644 (file)
@@ -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"
index 4867ccf08a12c2ac728112c21aee6c7a8e6ae5ba..8cfdc41d3ce2f5cfa4f44f8aca14536842eb83c8 100644 (file)
@@ -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 */
index 33e96b7c5592b240453b0553d7f41f0db1f5d3d4..2a159e24dd4ec4d3ac8126cac166334cf2239b83 100644 (file)
@@ -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"
index a4fe0679178d99b953b4a85883db90140c5b533e..d6e710b9cf6395fa07d2512802e33a7c2c34f9e0 100644 (file)
@@ -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)
index 8d12e90a5a42290b866f99b3b9fd5552ed7eaa91..7095a0c398ca8b01746ccb735ee07829189413d3 100644 (file)
@@ -12,6 +12,7 @@
 #include "qemu/osdep.h"
 #include "qemu/bitops.h"
 #include "qemu/bitmap.h"
+#include "qemu/bswap.h"
 #include "qemu/atomic.h"
 
 /*