From nobody Sun Jan 25 11:57:26 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1769072023; cv=none; d=zohomail.com; s=zohoarc; b=Y3Gx8wtl9PFkbbvxy5ZoVRWCxPw0ZeK+5ctuR8/axR8bAkqPkubfrE1mn5fxK1Wmzf51XhCZVPwcIuNG3iPqEjzOE/dMSO8xB1seBEmq0ZIR+i+ghVEQNEnfkt1XaETEkEztV+QfuuaYG6MB3sKEhwBquXHotFYkqe2uNddNa0E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1769072023; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=Lv8AKXTBCp2GXocNnU3J4GpBckPmYCG7TMRaowFXBUI=; b=Ntq1mg/VR4xbblErKE34TCXkF2vzgZ8L9I4OEspWskFqnW9JzcW3bcIobihTByQyNrDhB95KqfsOsEJ4bnHg5icEEqcFHLQERbQWZxioPo7iEKgy2YmfQq330S/uTNNls5sYiy4sBf+RSyCJ6sAvvkKrlp9K2Qx4rVGCw6wAY1I= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1769072023978912.4714054585065; Thu, 22 Jan 2026 00:53:43 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1viqRB-0004U4-GC; Thu, 22 Jan 2026 03:53:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1viqRA-0004Th-SI for qemu-devel@nongnu.org; Thu, 22 Jan 2026 03:53:08 -0500 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1viqR8-0005nc-Kf for qemu-devel@nongnu.org; Thu, 22 Jan 2026 03:53:08 -0500 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-47d59da3d81so11926715e9.0 for ; Thu, 22 Jan 2026 00:53:06 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4804705b29dsm51632135e9.10.2026.01.22.00.53.02 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 22 Jan 2026 00:53:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1769071984; x=1769676784; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Lv8AKXTBCp2GXocNnU3J4GpBckPmYCG7TMRaowFXBUI=; b=hzcqQURqstmUN/iToe2mNPINCb0xX55a7i7JeabLTVnSEpJF4wJPx1B+3JX1dsOhJ1 7iyjltrD2L1WR06KjrYAiAqdiy4ffr82yQZECP7ORKbgzoLmWUBK1hJ8bb2wA+gt+9Zc 7NnJ5mdXUOanR77ER/qch/Wd305nBRNy4Zy2ciXu8Prtu6gGdel6QN92kzXOcqru3/fu s5aTdrjJH2ffVhEWVp+zeb8SzlYA43ZQ2H00yXkzAMvt0E/KCxU9P0iOC8sAvtwMxw6G mh9yJLuPQUB3Y++5TwikpJF8JwFYZbxeYxq2qVoTbIvD/+YEWWvMIth0JeHw/Nf8u9QR izJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769071984; x=1769676784; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=Lv8AKXTBCp2GXocNnU3J4GpBckPmYCG7TMRaowFXBUI=; b=PKzx9U6eu1gLd63hKwEyBXI5YJpG4hqYMxv6DVwE6ccipDmfRgZkkflNa9H0MC27oZ MhjSM0SDle8kBPgOvJ9ogSDylpMECGH15vUa2CIrtzxyFAk/8qWkEGsZO4fiiLFLCoh+ ZDvjnmNIPL2qa9R3Cry0LQwuQNOrpMU95pFcJSar6u7lzqYCZE2EXn8YSXw7HKCyUm6x Poj8PMu8lM96/XFlGttPs6PSCeSbcJLRLcUZf3JVOl6Lw2ic4m8Zn46fxSXV1XqeMhQT yW4B9Dx/5FH9qVuIOUnN2GdE5qmdBZVlMLzgqPXDC5HXDMmdY7P/GgqYxtmcuv4m7D3D aIRw== X-Gm-Message-State: AOJu0Yy+JptDgTojFmfEQmEdffghXV9wW144e3qkd/mz9SC1bwCwq4ex UZt7MhECiJmMdAbzq+7p8Jojc11g9Iw2MFtzsP0PwQB6wzGdgLmQwSfZ92Y/cJAWqkzhlVV9y/j dOgPOvUo= X-Gm-Gg: AZuq6aLrvgGBe9HqwCAJjMV0BbGkIdTX7eESP8ocCXslZQtvJVQfLAIT7eBtfKOFo50 LY3I+NLPHAOFU5PEmU+rv6ZIMmz01Yvn+vm0Gu1c490OgGApa7+ZrV5jOEqg91xj8xod4TyAE9A oxf2KUhtg6RXm/vFG69WWQ1RTxVUbdHdcg9MFXgSPpLC9jwIfPS8u4CqfWEr/x7cghYtp6v0+Hn ZqxsnYdF1cnCeTL2/wghSObh18vxCevSF/XllUr1mylw56b1R72KmPn9JmSAQ83irCX+KLPB0rD 65cvNVDbPwHDPdMiQF88/J/SrVgEkecmz/ecVHVkqvRwDltRVVG1U3VYG6eywzwgDmDWTETi+XW JJqX+n3Xg90W5bZ5I0XBHadLp6vSMY7TkpEZzTSX28II1agSSv4w2Dk1DDgKM409Bqo7k1wfBFg 86flHm8NJTOmyNn5+E4aBGwp0FYWc6L3dOq0qYe+lbudbVN0EdjB31mGiZcDwk X-Received: by 2002:a05:600c:3495:b0:47e:e981:78b4 with SMTP id 5b1f17b1804b1-4804709599emr38255265e9.12.1769071983533; Thu, 22 Jan 2026 00:53:03 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 01/31] bswap: Include missing 'qemu/bswap.h' header Date: Thu, 22 Jan 2026 09:52:24 +0100 Message-ID: <20260122085255.95035-2-philmd@linaro.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260122085255.95035-1-philmd@linaro.org> References: <20260122085255.95035-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=philmd@linaro.org; helo=mail-wm1-x335.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1769072026265154100 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=C3=A9 Reviewed-by: Richard Henderson Message-ID: <20260109164742.58041-4-philmd@linaro.org> --- block/qcow2.h | 1 + audio/audio.c | 1 + block/blklogwrites.c | 1 + block/export/vduse-blk.c | 1 + block/export/vhost-user-blk-server.c | 1 + block/export/virtio-blk-handler.c | 1 + block/parallels-ext.c | 1 + hw/9pfs/9p-local.c | 1 + hw/block/cdrom.c | 1 + hw/block/hd-geometry.c | 1 + hw/net/can/ctucan_core.c | 1 + hw/nvram/xlnx-efuse.c | 1 + hw/scsi/scsi-generic.c | 1 + hw/sd/sd.c | 1 + hw/sd/ssi-sd.c | 1 + net/l2tpv3.c | 1 + qga/commands-linux.c | 1 + scsi/pr-manager-helper.c | 1 + target/arm/tcg/arith_helper.c | 1 + tests/qtest/acpi-utils.c | 1 + tests/qtest/aspeed-hace-utils.c | 1 + tests/qtest/bios-tables-test.c | 1 + tests/qtest/libqos/igb.c | 1 + tests/qtest/libqos/virtio-9p-client.c | 1 + tests/qtest/migration/framework.c | 1 + tests/qtest/npcm7xx_emc-test.c | 1 + tests/qtest/tpm-emu.c | 1 + tests/qtest/ufs-test.c | 1 + tests/qtest/vmgenid-test.c | 1 + tests/unit/test-hbitmap.c | 1 + util/bitmap.c | 1 + 31 files changed, 31 insertions(+) diff --git a/block/qcow2.h b/block/qcow2.h index 96db7c51ec2..192a45d596b 100644 --- a/block/qcow2.h +++ b/block/qcow2.h @@ -26,6 +26,7 @@ #define BLOCK_QCOW2_H =20 #include "crypto/block.h" +#include "qemu/bswap.h" #include "qemu/coroutine.h" #include "qemu/units.h" #include "block/block_int.h" diff --git a/audio/audio.c b/audio/audio.c index 86e674410ab..b7a28f79d4f 100644 --- a/audio/audio.c +++ b/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" diff --git a/block/blklogwrites.c b/block/blklogwrites.c index aa1f8888690..2490e91802c 100644 --- a/block/blklogwrites.c +++ b/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" diff --git a/block/export/vduse-blk.c b/block/export/vduse-blk.c index bd852e538dc..8af13b7f0bf 100644 --- a/block/export/vduse-blk.c +++ b/block/export/vduse-blk.c @@ -13,6 +13,7 @@ #include "qemu/osdep.h" #include =20 +#include "qemu/bswap.h" #include "qapi/error.h" #include "block/export.h" #include "qemu/error-report.h" diff --git a/block/export/vhost-user-blk-server.c b/block/export/vhost-user= -blk-server.c index d9d2014d9b7..a4d54e824f2 100644 --- a/block/export/vhost-user-blk-server.c +++ b/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 */ diff --git a/block/export/virtio-blk-handler.c b/block/export/virtio-blk-ha= ndler.c index bc1cec67570..3dd6c43af1a 100644 --- a/block/export/virtio-blk-handler.c +++ b/block/export/virtio-blk-handler.c @@ -13,6 +13,7 @@ */ =20 #include "qemu/osdep.h" +#include "qemu/bswap.h" #include "qemu/error-report.h" #include "virtio-blk-handler.h" =20 diff --git a/block/parallels-ext.c b/block/parallels-ext.c index 778b8f684ef..3410daa6206 100644 --- a/block/parallels-ext.c +++ b/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" =20 diff --git a/hw/9pfs/9p-local.c b/hw/9pfs/9p-local.c index 376b377698c..c3745f2839f 100644 --- a/hw/9pfs/9p-local.c +++ b/hw/9pfs/9p-local.c @@ -28,6 +28,7 @@ #include #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" diff --git a/hw/block/cdrom.c b/hw/block/cdrom.c index c6bfa50ad0c..70399a54601 100644 --- a/hw/block/cdrom.c +++ b/hw/block/cdrom.c @@ -26,6 +26,7 @@ here. */ =20 #include "qemu/osdep.h" +#include "qemu/bswap.h" #include "hw/scsi/scsi.h" =20 static void lba_to_msf(uint8_t *buf, int lba) diff --git a/hw/block/hd-geometry.c b/hw/block/hd-geometry.c index db221901cf4..a86f2b406b6 100644 --- a/hw/block/hd-geometry.c +++ b/hw/block/hd-geometry.c @@ -31,6 +31,7 @@ */ =20 #include "qemu/osdep.h" +#include "qemu/bswap.h" #include "system/block-backend.h" #include "qapi/qapi-types-block.h" #include "hw/block/block.h" diff --git a/hw/net/can/ctucan_core.c b/hw/net/can/ctucan_core.c index b6ad7cdb400..f6ff4ad2003 100644 --- a/hw/net/can/ctucan_core.c +++ b/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" diff --git a/hw/nvram/xlnx-efuse.c b/hw/nvram/xlnx-efuse.c index facbef3fc4c..34436705dde 100644 --- a/hw/nvram/xlnx-efuse.c +++ b/hw/nvram/xlnx-efuse.c @@ -27,6 +27,7 @@ #include "qemu/osdep.h" #include "hw/nvram/xlnx-efuse.h" =20 +#include "qemu/bswap.h" #include "qemu/error-report.h" #include "qemu/log.h" #include "qapi/error.h" diff --git a/hw/scsi/scsi-generic.c b/hw/scsi/scsi-generic.c index 0a676a16fa4..6acaf8831a3 100644 --- a/hw/scsi/scsi-generic.c +++ b/hw/scsi/scsi-generic.c @@ -13,6 +13,7 @@ =20 #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" diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 5a1fda38a7b..37f6e0702b0 100644 --- a/hw/sd/sd.c +++ b/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" diff --git a/hw/sd/ssi-sd.c b/hw/sd/ssi-sd.c index 1782fb74316..a3a9f0c7efd 100644 --- a/hw/sd/ssi-sd.c +++ b/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" =20 diff --git a/net/l2tpv3.c b/net/l2tpv3.c index 3044fa46081..68c95552687 100644 --- a/net/l2tpv3.c +++ b/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" diff --git a/qga/commands-linux.c b/qga/commands-linux.c index ae2c4d442a3..378f4d080c1 100644 --- a/qga/commands-linux.c +++ b/qga/commands-linux.c @@ -12,6 +12,7 @@ */ =20 #include "qemu/osdep.h" +#include "qemu/bswap.h" #include "qapi/error.h" #include "qga-qapi-commands.h" #include "qapi/error.h" diff --git a/scsi/pr-manager-helper.c b/scsi/pr-manager-helper.c index aea751fb047..f6454cd80de 100644 --- a/scsi/pr-manager-helper.c +++ b/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" =20 #include #include "qom/object.h" diff --git a/target/arm/tcg/arith_helper.c b/target/arm/tcg/arith_helper.c index 670139819df..97c6362992c 100644 --- a/target/arm/tcg/arith_helper.c +++ b/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 /* for crc32 */ =20 diff --git a/tests/qtest/acpi-utils.c b/tests/qtest/acpi-utils.c index 9dc24fbe5a0..28cca00b960 100644 --- a/tests/qtest/acpi-utils.c +++ b/tests/qtest/acpi-utils.c @@ -15,6 +15,7 @@ #include "qemu/osdep.h" #include #include "qemu/bitmap.h" +#include "qemu/bswap.h" #include "acpi-utils.h" #include "boot-sector.h" =20 diff --git a/tests/qtest/aspeed-hace-utils.c b/tests/qtest/aspeed-hace-util= s.c index 0f7f911e5eb..25450a296bf 100644 --- a/tests/qtest/aspeed-hace-utils.c +++ b/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" =20 /* diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c index 6b892ef23e1..e489d943312 100644 --- a/tests/qtest/bios-tables-test.c +++ b/tests/qtest/bios-tables-test.c @@ -59,6 +59,7 @@ #include #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" diff --git a/tests/qtest/libqos/igb.c b/tests/qtest/libqos/igb.c index ab3ef6f0c3b..64fdadac90a 100644 --- a/tests/qtest/libqos/igb.c +++ b/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" diff --git a/tests/qtest/libqos/virtio-9p-client.c b/tests/qtest/libqos/vir= tio-9p-client.c index 6ab4501c6e1..af01d4c3458 100644 --- a/tests/qtest/libqos/virtio-9p-client.c +++ b/tests/qtest/libqos/virtio-9p-client.c @@ -13,6 +13,7 @@ */ =20 #include "qemu/osdep.h" +#include "qemu/bswap.h" #include "virtio-9p-client.h" =20 #define QVIRTIO_9P_TIMEOUT_US (10 * 1000 * 1000) diff --git a/tests/qtest/migration/framework.c b/tests/qtest/migration/fram= ework.c index 57d3b9b7c5a..6a0063c322d 100644 --- a/tests/qtest/migration/framework.c +++ b/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" diff --git a/tests/qtest/npcm7xx_emc-test.c b/tests/qtest/npcm7xx_emc-test.c index eeedb27ee68..71505356b04 100644 --- a/tests/qtest/npcm7xx_emc-test.c +++ b/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" =20 /* Name of the emc device. */ diff --git a/tests/qtest/tpm-emu.c b/tests/qtest/tpm-emu.c index 9e4c2005d0e..189374a9cec 100644 --- a/tests/qtest/tpm-emu.c +++ b/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" diff --git a/tests/qtest/ufs-test.c b/tests/qtest/ufs-test.c index 4867ccf08a1..8cfdc41d3ce 100644 --- a/tests/qtest/ufs-test.c +++ b/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" =20 #define DWORD_BYTE 4 /* Test images sizes in Bytes */ diff --git a/tests/qtest/vmgenid-test.c b/tests/qtest/vmgenid-test.c index 33e96b7c559..2a159e24dd4 100644 --- a/tests/qtest/vmgenid-test.c +++ b/tests/qtest/vmgenid-test.c @@ -10,6 +10,7 @@ =20 #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" diff --git a/tests/unit/test-hbitmap.c b/tests/unit/test-hbitmap.c index a4fe0679178..d6e710b9cf6 100644 --- a/tests/unit/test-hbitmap.c +++ b/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" =20 #define LOG_BITS_PER_LONG (BITS_PER_LONG =3D=3D 32 ? 5 : 6) diff --git a/util/bitmap.c b/util/bitmap.c index 8d12e90a5a4..7095a0c398c 100644 --- a/util/bitmap.c +++ b/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" =20 /* --=20 2.52.0