From nobody Mon Feb 9 11:23:01 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=1767976706; cv=none; d=zohomail.com; s=zohoarc; b=mMlaMYTwUnLYNL57KMXCoMapRMzedzXBXFqIYpvG3bXqCXTZOCFq19+ZrINavM0wBr051JsTvwmDEovvrn4FSiRTgqEWVlPjy4ZiZrJXMEzvSjhZ/YO/mIn6LcJeaSCASP20cOwI816sW+xBNqSKPRIsX52Y5xxY1D6hMpBUF94= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1767976706; h=Content-Type:Content-Transfer-Encoding:Cc:Cc: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; bh=RTAOH/xq/3mecKgOFQc299O+6eUqLk/ATHdhAOXEHr4=; b=FxGX0iTIp8V3cb9ki3daTiu1YiPuz1ROTMbFq8CVAte/9/KTKksXpFk+v0m/62MB7jezMHFR19zUKrOFChdnTYCvKnXYuE2oMI/igfbZC6cW0okGimTZNOYZAS1WCHHydbQvO1MVE2l8CVu+kiLLtAToiododyBasemGmb+6Pls= 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 1767976706379509.98835530320775; Fri, 9 Jan 2026 08:38:26 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1veFUd-0001ZR-Uv; Fri, 09 Jan 2026 11:37:44 -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 1veFUc-0001YU-9V for qemu-devel@nongnu.org; Fri, 09 Jan 2026 11:37:42 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1veFUa-0005CA-Oz for qemu-devel@nongnu.org; Fri, 09 Jan 2026 11:37:42 -0500 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-47d493a9b96so26582265e9.1 for ; Fri, 09 Jan 2026 08:37:40 -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-47d7f68f686sm215346185e9.3.2026.01.09.08.37.38 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 09 Jan 2026 08:37:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767976659; x=1768581459; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RTAOH/xq/3mecKgOFQc299O+6eUqLk/ATHdhAOXEHr4=; b=CctMPBhtYjRCwN9Kr5EKxK+eQHboeohynCoMfWQf60pEPXe/i6YpOlyXMhrBXNtOob H5VLX6102X25h2b7HMVJbhGFJM3ws5wb3rLuUssnlm/qu8MOKUA2J+NAGPQN4UJ8W1Sk IPdnxyU6/HvkyVyQgiXe/5NiOWfDdR9uu5Ah1d+Lr5FhjrkKw8DWKrr/5YTwC6EEDK3z ScHe6VlWsJgwImvsznzjAuQfAyYNqCZhUR8Gc2uooPEUP5PoechLbRMj3nle3FW55dPp 1XOFfZzV7h1oAnI00KekvnWogJZnuqrWMCXTDKxhlxCTr3MarQKFruN3+t2xabEIMo15 GKlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767976659; x=1768581459; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=RTAOH/xq/3mecKgOFQc299O+6eUqLk/ATHdhAOXEHr4=; b=hAW6NBmRnrdzbOMzP9PiEjtjWwqOg6uekzxj7LIDGZCPPBRQ+jZUgVKeeKQzVgRKRq 6AzvJXQXtoQ+rtEvl9A3QUvyH1W3fqIO3yzHBttVK467IiLCxrTsfHwlFoXucLQz1TpX Q2xyR6MzZDEzix96UeaG6GEzPkjX75+JM6NcJmUGDIGUmSGr8jxsSOHHgFsN6Fnhth8F 808P5Y4Mrk0pajBbGLbWsTgpqJtxRCcUlIRyMZ+VD3oqtBpmDWD8C1kCRL5j/YGdGv8W PI0fmhbivYXTZ5caDn/qE7bgCbe2aoSxCcyIcMylATWfajAuW4cw6w9pN3lzXMzOeGw4 lqXA== X-Gm-Message-State: AOJu0YwQlZNAEiGs7imODEYh6JL6Sm5RWqvIZfiVNeMMmng9vm2KIqnw Ce73+PFJXopkg6BGqocUN2vuR2ZcMMj96a4lq0PqHFBRTiTHRH/2uelSTbEl3tI9ypPxuNb4lVV qAUDGmOo= X-Gm-Gg: AY/fxX4eN2vwG/76LIvzPbbpZ7N9kK0AHM1PchUTe3H2XBLj6nwPj32HPEfzQfe9g1w CkSlxSkJ64Si0sKf9I3stLJloEmi0t9yeQbsapgbscXCtghApLWtDRdE93rnAARmlg+evVcFmtp anhMIHbjxYxUs3mQyElIRXTuMh5cl3f+2ZHPC2CnjCNwhc4ViUY83L6WVtO2Zn3ZK0SKbbc9BCR QHiPCPOo/+kZGatBiicXoKqJ4MrT4TGDZOW8xPymwwvskUGwX9wbEFVpKgC666v/BdjhOLrZgrV IiGbjdkyYtfb9o3ThAXFgdxIOdw+WvTH7eCtD/0rEqACcVjVWf8pZRIC4amC+1mu+0f7CB4HX0I nGXfdXfb2GDVrRBM1ND/nzzSIsY1wxJBPvzREVzFnKrR/DPP0GzIdiw0SvJRqLlbv2ClhJLb6zD 4FbXtqX3pWoiOSTDiWn8Kq2TsH/DOMov1+NhNO/U1aGmQbOM9W32cMDY2PZF3QRspywCAB6M4= X-Google-Smtp-Source: AGHT+IE5cP4wnBd9LPgulSUJJsxRjTphjnG96PHMEZ6Bb70QYqFUNO60OQyKoF0lqqpm7fjdhibohQ== X-Received: by 2002:a05:600c:6385:b0:477:632a:fd67 with SMTP id 5b1f17b1804b1-47d84b1a166mr125617875e9.12.1767976658916; Fri, 09 Jan 2026 08:37:38 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Paolo Bonzini Subject: [PATCH 1/3] bswap: Use 'qemu/bswap.h' instead of 'qemu/host-utils.h' Date: Fri, 9 Jan 2026 17:37:28 +0100 Message-ID: <20260109163730.57087-2-philmd@linaro.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260109163730.57087-1-philmd@linaro.org> References: <20260109163730.57087-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::32c; envelope-from=philmd@linaro.org; helo=mail-wm1-x32c.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: 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: 1767976707771158500 These files only require "qemu/bswap.h", not "qemu/host-utils.h". Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/qtest/ahci-test.c | 2 +- tests/qtest/libqos/ahci.c | 2 +- tests/qtest/libqos/generic-pcihost.c | 2 +- tests/qtest/libqos/pci-spapr.c | 2 +- util/hbitmap.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/qtest/ahci-test.c b/tests/qtest/ahci-test.c index e8aabfc13f5..5c32ff20029 100644 --- a/tests/qtest/ahci-test.c +++ b/tests/qtest/ahci-test.c @@ -31,7 +31,7 @@ #include "libqos/pci-pc.h" =20 #include "qobject/qdict.h" -#include "qemu/host-utils.h" +#include "qemu/bswap.h" =20 #include "hw/pci/pci_ids.h" #include "hw/pci/pci_regs.h" diff --git a/tests/qtest/libqos/ahci.c b/tests/qtest/libqos/ahci.c index 34a75b7f43b..0621a6c4775 100644 --- a/tests/qtest/libqos/ahci.c +++ b/tests/qtest/libqos/ahci.c @@ -28,7 +28,7 @@ #include "ahci.h" #include "pci-pc.h" =20 -#include "qemu/host-utils.h" +#include "qemu/bswap.h" =20 #include "hw/pci/pci_ids.h" #include "hw/pci/pci_regs.h" diff --git a/tests/qtest/libqos/generic-pcihost.c b/tests/qtest/libqos/gene= ric-pcihost.c index 4bbeb5ff508..b77617524ca 100644 --- a/tests/qtest/libqos/generic-pcihost.c +++ b/tests/qtest/libqos/generic-pcihost.c @@ -15,7 +15,7 @@ #include "generic-pcihost.h" #include "qobject/qdict.h" #include "hw/pci/pci_regs.h" -#include "qemu/host-utils.h" +#include "qemu/bswap.h" =20 #include "qemu/module.h" =20 diff --git a/tests/qtest/libqos/pci-spapr.c b/tests/qtest/libqos/pci-spapr.c index 0f1023e4a73..3723cbb38db 100644 --- a/tests/qtest/libqos/pci-spapr.c +++ b/tests/qtest/libqos/pci-spapr.c @@ -13,7 +13,7 @@ =20 #include "hw/pci/pci_regs.h" =20 -#include "qemu/host-utils.h" +#include "qemu/bswap.h" #include "qemu/module.h" =20 /* diff --git a/util/hbitmap.c b/util/hbitmap.c index d9a1dabc630..3525bf7751a 100644 --- a/util/hbitmap.c +++ b/util/hbitmap.c @@ -10,8 +10,8 @@ */ =20 #include "qemu/osdep.h" +#include "qemu/bswap.h" #include "qemu/hbitmap.h" -#include "qemu/host-utils.h" #include "trace.h" #include "crypto/hash.h" =20 --=20 2.52.0 From nobody Mon Feb 9 11:23:01 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=1767976707; cv=none; d=zohomail.com; s=zohoarc; b=HQdy1jAgDiYpiNyMo9vROmXImXUtYDh7AIuCVD1ImCBsgovtrsysSx6tFmLkfe7WVWDn9St9REEWmg4Er3BpTMfQib8iW+bauSXRc4EpUzfUCINg4lH1kmvBvnNWF1BxnsDrrpgYfG7tcI4OxwqHh9OuKsOV2zIRpwuT0Sm9LOQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1767976707; h=Content-Type:Content-Transfer-Encoding:Cc:Cc: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; bh=F1/P6bOYZ8f7Bfc5Sf5j9BzLj2aTFC32Iz/tJ4FAap4=; b=R4fRI+N3BZfbV3icYiSWmsE+llIjDzXOLiS47T4xJhHcMHP8LL0XLr7lv93GDg1qZNM4EHWa7vKw6/3Ss42zTtlpH2KMKIDodOdOigMpZD1ZjpGHt5ReuZy/d0+MWqEOVzYEzrhsgNT0W4jJi0t0TfmWylVJaNWAHZVvvU+j+Y0= 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 1767976707315344.4714996881934; Fri, 9 Jan 2026 08:38:27 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1veFUm-0001ab-Bg; Fri, 09 Jan 2026 11:37:52 -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 1veFUk-0001a8-EC for qemu-devel@nongnu.org; Fri, 09 Jan 2026 11:37:50 -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 1veFUi-0005D7-4i for qemu-devel@nongnu.org; Fri, 09 Jan 2026 11:37:50 -0500 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-477ba2c1ca2so48629315e9.2 for ; Fri, 09 Jan 2026 08:37:47 -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-47d86372c92sm75012025e9.0.2026.01.09.08.37.44 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 09 Jan 2026 08:37:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767976666; x=1768581466; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=F1/P6bOYZ8f7Bfc5Sf5j9BzLj2aTFC32Iz/tJ4FAap4=; b=MtFFVU9emoQzmFyhwBXRtbeAB7dupMfGpiZ5GNn7Ib48rDA2oF2Zj3Hr6mlewIz7Bz KT4+dkXiW7bkurYr2gV67t1e0CQeARvLjEBRKi/od1Sk1whNsJKUy+hH8yvWlOQHpjlA YYkCFfa71xmKcYXmw2wNpPm/h9GEO8E9AfBva16hVETitOhkgkPMdIiszPYdsxzizt1S hRNFj/ORmI5cyDEReixzQuuVZtFmMt7X01uYdZzBCbF4FMeOWEX97gXymrt/WkExzIvS P+LZpY6PsyJGzePvDP/gGsZyq2GFccKl3ShI9zkZd/e2Y4RTMXDemUktHv8chxNEubm6 uulQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767976666; x=1768581466; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=F1/P6bOYZ8f7Bfc5Sf5j9BzLj2aTFC32Iz/tJ4FAap4=; b=T1XbBhnCyglnAzXdLnJTJIQ+3V7iXWw0EHOXjy2xAiPqHanPbTs4sA2XDo0AgZtrRI IuaDNrXQzU2UyK/dqHLZ825Zbm5mfSy7YyYNQNUglPJHoeqIoVyUxvSMaloLyiI1/tYl udbwAlDam6tChWj0VeU8HbyOIq4MXHA5+/7lG6EjAkKsM6dX5xsuRUb2PAZ+zk/aFNDJ SOCQXwBXWaO1/LBKuRJQUsSvvor0PVU1XCWkX9Rx4mNVq875EyqVcCDCkIkavdFtcwWf xTh+1eI+qt12iM+4smKMem8zRqfXqpgLfX5rm+5s8B/NEJAfwrLTX5yVy1yerOjePowZ K/oQ== X-Gm-Message-State: AOJu0YwacP0WIlHq9Lbz8rnvAmlEquu0k+YjgUosRtjhKxspHe5ETBEb 5Js/Vy36ljvBLWFl+yhvoGcamzYbRLm4fsm7wyim9ePaoVxurxdwPoDX71OakBhixHSrJcKyiVy IMWrAmoU= X-Gm-Gg: AY/fxX5MbCwMB2qUw2JIUKIPi+JG7+9zKf/WKtSq4nicdrv25Kfl5i6zKh1RdUumUyU lvHSRUrNIhOpbap3hIL9tUGT4RLCB5jEJysfP4vOIdpl8KegvRbERCAMeDuaDk0Coi7/84tY5zT dy1WEWQbaFwEhLET7zhiNEglUKhi9F9AwNSt2ybiaDmHXkROb1r3273409giK1lH78dWfiLTdBb wldJiDXeUvVn4S50X+0kwsMb57beNnFUfwOFLkRSUYXscfApnB+VMS9VkGIXOvgnOAAfecM5WND 7GpFZ0Kw4wUh/iDLUOcCzSzsl6JkfEtzH5GA4gJBAs1sCYCbm/u7jICSo9mB0b9emLwDf3wesLa lG+g09ZNWj62n/Byi80hFX/euXscjnCS5mS3g1bU48bd3aaOvT7tDST6FFTA/ZVEM4KZOsnp6+c ddWzF3kcw0H+IBkfxVKf/KEYe/d9hrxzV/jxabKCjDEZ55RP+siakTz8tFFDb+ X-Google-Smtp-Source: AGHT+IHdivgSy3RHLeRINNssFqoWjdxvrhc7N4wiOa9T3vBMhuWTQHiKqA3lw5f+6cZpX/cG6O9qFw== X-Received: by 2002:a05:600c:34c5:b0:47a:80f8:82ab with SMTP id 5b1f17b1804b1-47d84b3275fmr143708175e9.24.1767976665502; Fri, 09 Jan 2026 08:37:45 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Paolo Bonzini Subject: [PATCH 2/3] bswap: Include missing 'qemu/bswap.h' header Date: Fri, 9 Jan 2026 17:37:29 +0100 Message-ID: <20260109163730.57087-3-philmd@linaro.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260109163730.57087-1-philmd@linaro.org> References: <20260109163730.57087-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: 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: 1767976709877158500 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 --- 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 + 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/vmcoreinfo-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 31e216227cb..b0fa8394ce6 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 cdfc641aa6f..75cb49e4ffd 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/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 e35839c95f5..80b61b865ff 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/vmcoreinfo-test.c b/tests/qtest/vmcoreinfo-test.c index dcf3b5ae058..28da410505f 100644 --- a/tests/qtest/vmcoreinfo-test.c +++ b/tests/qtest/vmcoreinfo-test.c @@ -11,6 +11,7 @@ */ =20 #include "qemu/osdep.h" +#include "qemu/bswap.h" #include "qemu/units.h" #include "libqos/libqos-pc.h" #include "libqtest.h" 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 From nobody Mon Feb 9 11:23:01 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=1767976709; cv=none; d=zohomail.com; s=zohoarc; b=jSFkuwtqHUknFkRe1ggvRt2eLAswsLvu6PkUwz1hyRAIVhuLkq2/X3Svdi4ycKXOBGy3wCa3QyTk01bgHwDTSRL7CXdRtwa/7i5IYwSHm6pOS3yMzp2fzQcrCGPiJQzIIzsl9qSAnRme0onIhM60GJ/4IfJm7cUGC7OjTmKuCnM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1767976709; h=Content-Type:Content-Transfer-Encoding:Cc:Cc: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; bh=dXc5hcdRDOQRVV1w0BOluuYdMWqS1m8Oxjrrz11uXg4=; b=Ckds+Ebe1C6/XwgeDAohhYxozF7ST26pCtWNtTIlOIEWQQl7d4LRTlIpMvt0dvTbV4Fn8DfS5oPlKM5kEHQHtR9OmpeGLJMDbVoq06GmOr/dgR2NUSF+MWMBc93vzEIfz1sG15IqFxVpr+FcFDeyWPmHXkWp7HhkBMHAp5kVqaU= 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 1767976709676337.95662312217996; Fri, 9 Jan 2026 08:38:29 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1veFUs-0001bR-0c; Fri, 09 Jan 2026 11:37:58 -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 1veFUq-0001b1-54 for qemu-devel@nongnu.org; Fri, 09 Jan 2026 11:37:56 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1veFUo-0005Da-L6 for qemu-devel@nongnu.org; Fri, 09 Jan 2026 11:37:55 -0500 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-47775fb6cb4so25148725e9.0 for ; Fri, 09 Jan 2026 08:37:54 -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-47d7f41f5e0sm210899935e9.8.2026.01.09.08.37.51 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 09 Jan 2026 08:37:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767976673; x=1768581473; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dXc5hcdRDOQRVV1w0BOluuYdMWqS1m8Oxjrrz11uXg4=; b=hUbMxIJdLb7STiGDhwRpUKrVowRULfEtxNqhWe3+CIv1I7CChObp/qaAU0ln+G1GBW pBGW4Nm63EvYRZvagsbCpWtJ0tynv3/othdIsfpoV1cMU1kuaFz1mAy2zOARmu2l1zma 9VAQUib7jXwEoaZkE1CVqI8v1pjhKceqAZzvNLJBktq2p614KlmGGlta/oA1S0p+Hdi3 EBArVHFxNm/PO4PJsTDiu8slo1BZHWfJxpzjvD00APKMbZkI1WofyZZyNxbkVTcn6ozh XflC4ti0Adr6wdBuxsZ26uBHZUzDsnoveAf3c8jq8sWaNXQXQrzFC5Ztmh0o9j/Gcgu0 irPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767976673; x=1768581473; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=dXc5hcdRDOQRVV1w0BOluuYdMWqS1m8Oxjrrz11uXg4=; b=gYeRbjoy4m4KYxDBScd1VOPJa5W74WcdntbTsmhDrKCbcgam0P6gzOYY16iXqnJQlW UL3iAJB++Ki0QdOGbPjPeZ7yI/4H6s5pqtquUdg+zfKLBo816V4kacYMx5npgLRjIktg PCt6lnlOn62jlE7z0b5t8f8QLo/2PUVAE31KEq5mLYOI70kA3hidz8cCoDzN+hT/3XZ2 80x01NstSElddhRoX+bxJFb5JjkXDTv2pnpsd4GsPe1XiRH4xLMIme+mRTxtMt5Ri5WN Mwl47mIoXpTZ5JvVC1MN3HxIZOebh5PDSwGCnistHhlWAviKlMzj1mEyE4Rbz+EaT0J7 gkPg== X-Gm-Message-State: AOJu0Yy5iPiwh+dPwyIg8ZPqzjW2PEL8ENHcOQcoK3cRyofHd5H5CGBp 48UC2LGGRQEpNTbd7dcbwyGH8uELqp6qQbzgAMnEqEyMECiO6J+uVVC8lrmvuGq96J4dk/aexkb IeVBAm8U= X-Gm-Gg: AY/fxX7tDtmM5J4OuAnUnk62aqIB0YW373nlyJY79WhopwNiLbtkzA0sP3cdwinMB8Q otxAtpLhct+B2w1/g5bf5fmlb0KrMSUGI5TUITtHJimnO8aJGYVvA/jOae5TMkg/UN+6Vxmbrld 2CHpVZPN+kdo9W32jiTKCZHR3ic2soz3qvD9+9OIoWpjGHyDoqaG48aUJuBwo/9GHMvMBMTZqPG tckYW5DhbQpMiFgDJpcFMKvwqy2G0JcUaAwcVw+Jp+bK+r9csYUXAYe/Gp8qiVKx1CmB4suWYEC p2QbfVl/3Dzdz/ygGBsDMXLTaUWhzdAhhBCugSQV+ytUjP6nuUR+VAHTbI2H0956jxGIBLYvwYK e7mZg6KNnOwimKQqIsKubeI+Biku/JDLFTv6iya5sHMNxqD/pPz+fUt/dVaw+mVt5IK9tNX/45j g5EKWz0GgTUaPoS8BLysbrbGBbfjYDUVHucMdpoELTNb6np87A6i+5Zzmvygqp X-Google-Smtp-Source: AGHT+IFagfr1y0cejcWJgHm1lLPZkWY2+xDWhq8/pDcwb/yIwXzm8laCY8/5L2XR7VsTi9mclp5J8Q== X-Received: by 2002:a05:600c:6385:b0:477:632a:fd67 with SMTP id 5b1f17b1804b1-47d84b1a166mr125626785e9.12.1767976672747; Fri, 09 Jan 2026 08:37:52 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Paolo Bonzini Subject: [PATCH 3/3] bswap: Consistently use builtin bswap() functions Date: Fri, 9 Jan 2026 17:37:30 +0100 Message-ID: <20260109163730.57087-4-philmd@linaro.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260109163730.57087-1-philmd@linaro.org> References: <20260109163730.57087-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::32e; envelope-from=philmd@linaro.org; helo=mail-wm1-x32e.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: 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: 1767976711616158500 Since these headers use some __builtin_bswap*(), use it consistently in all the cases, allowing to remove the "qemu/bswap.h" inclusion (which only defines bswap* to the builtin equivalent). Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/qemu/host-utils.h | 7 +++---- include/qemu/int128.h | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/include/qemu/host-utils.h b/include/qemu/host-utils.h index dd558589cb5..181d026b6c7 100644 --- a/include/qemu/host-utils.h +++ b/include/qemu/host-utils.h @@ -30,7 +30,6 @@ #ifndef HOST_UTILS_H #define HOST_UTILS_H =20 -#include "qemu/bswap.h" #include "qemu/int128.h" =20 #ifdef CONFIG_INT128 @@ -380,7 +379,7 @@ static inline uint16_t revbit16(uint16_t x) return __builtin_bitreverse16(x); #else /* Assign the correct byte position. */ - x =3D bswap16(x); + x =3D __builtin_bswap16(x); /* Assign the correct nibble position. */ x =3D ((x & 0xf0f0) >> 4) | ((x & 0x0f0f) << 4); @@ -403,7 +402,7 @@ static inline uint32_t revbit32(uint32_t x) return __builtin_bitreverse32(x); #else /* Assign the correct byte position. */ - x =3D bswap32(x); + x =3D __builtin_bswap32(x); /* Assign the correct nibble position. */ x =3D ((x & 0xf0f0f0f0u) >> 4) | ((x & 0x0f0f0f0fu) << 4); @@ -426,7 +425,7 @@ static inline uint64_t revbit64(uint64_t x) return __builtin_bitreverse64(x); #else /* Assign the correct byte position. */ - x =3D bswap64(x); + x =3D __builtin_bswap64(x); /* Assign the correct nibble position. */ x =3D ((x & 0xf0f0f0f0f0f0f0f0ull) >> 4) | ((x & 0x0f0f0f0f0f0f0f0full) << 4); diff --git a/include/qemu/int128.h b/include/qemu/int128.h index 174bd7dafb8..7b3b071c512 100644 --- a/include/qemu/int128.h +++ b/include/qemu/int128.h @@ -1,8 +1,6 @@ #ifndef INT128_H #define INT128_H =20 -#include "qemu/bswap.h" - /* * With TCI, we need to use libffi for interfacing with TCG helpers. * But libffi does not support __int128_t, and therefore cannot pass @@ -189,7 +187,8 @@ static inline Int128 bswap128(Int128 a) #if __has_builtin(__builtin_bswap128) return __builtin_bswap128(a); #else - return int128_make128(bswap64(int128_gethi(a)), bswap64(int128_getlo(a= ))); + return int128_make128(__builtin_bswap64(int128_gethi(a)), + __builtin_bswap64(int128_getlo(a))); #endif } =20 @@ -451,7 +450,7 @@ static inline void int128_subfrom(Int128 *a, Int128 b) =20 static inline Int128 bswap128(Int128 a) { - return int128_make128(bswap64(a.hi), bswap64(a.lo)); + return int128_make128(__builtin_bswap64(a.hi), __builtin_bswap64(a.lo)= ); } =20 static inline int clz128(Int128 a) --=20 2.52.0