From nobody Mon Feb 9 03:31:04 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=1767977323; cv=none; d=zohomail.com; s=zohoarc; b=Xcsb6zF8KOo6LeGEy+bqga8K0fjenDfSeFx78kf9i0raq1x+OgpVLSJBxmsSQrySVc7WxSrQ2lJvYv9PARV6pY8kbLDoqh3gsBeHDvKC6bRaokVueFV6G4tMXVAdjxMI5Dty5jo1G7GI5Xcqf7Gh4f4RgMBwAAHORPHPC73VOoU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1767977323; 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=END3tMzR7ssOor5FcuUSvBVigCMVRMcaU3O2EW3YawA=; b=Q8L7W22Z8S7VnNR8nDLKkl8if3sHTzWVeQCP2R1ARp+9McHafQDoCVL/bzjNNlOYjCGKA8thHPQt78aaHgj71LM+HyC65Ze9vbVxLU1h4q1MIiFqnteK9d6khrHwdRYdl6cxboc1UPdQkFmHMyml0ORdwD9cOIDI2VL/erhev9E= 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 1767977323078604.8238438138176; Fri, 9 Jan 2026 08:48:43 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1veFet-00084X-6H; Fri, 09 Jan 2026 11:48:19 -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 1veFeV-00081m-E8 for qemu-devel@nongnu.org; Fri, 09 Jan 2026 11:47:57 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1veFeS-0006ft-Ct for qemu-devel@nongnu.org; Fri, 09 Jan 2026 11:47:53 -0500 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-47bdbc90dcaso32833695e9.1 for ; Fri, 09 Jan 2026 08:47:52 -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-47d7f68f686sm215771675e9.3.2026.01.09.08.47.49 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 09 Jan 2026 08:47:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767977271; x=1768582071; 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=END3tMzR7ssOor5FcuUSvBVigCMVRMcaU3O2EW3YawA=; b=n8iPOmoEO+LH77Q8HfOOWMMTWkYGOhf6ysJFsQ/X191ito935KflwcXKIfxaHuMOqH Ks/Y8c20jdShGzSSOFHVtBCSnXSUAnFkR/OSfPHnD4bOu+fXrOcpI8FX4XcHq2IT+CkW pPsg0sNaTqiSu8VOr75hczillpyZAycM3B3KggTCrJQrbNjAu6iPoK2+zxLys5ulJ2j4 atOzuQ9VWs+LQwGR6bTfbo61ODNROgjGeW73yol/zq8bt6LmOSyCsmObdyBtOT+CiSG4 15MNBW/sLIx175ZJRcoDbrtsyQ1XM+M8QGkbAvs9SkxcZY3kVB9olkyh02DyIZEZ8YQl 7a9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767977271; x=1768582071; 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=END3tMzR7ssOor5FcuUSvBVigCMVRMcaU3O2EW3YawA=; b=WPyz1aUaoDOQSkThMTAqyutKcp15yBM1IotUcbPmBwJx43SZHfwJGQdifbRDvX2+2e 775X8IBwjJtn1ignnljs2+hFDNO88d4Q6/f1detnKjsgy8SWXe/qg/FGJjPskVHlyDvg /VhlurdhMqrltpYp1ff1EcXZd3ThF79eaADrFU4myQmqaKZwWJ8kNMNahqo5XPQqURNy ZZmQ05wMFriWNWED6NOl98vIy5uyViDYVws9c3VQ+U+6rSpBM3rv06H4B4lP4cNYxUNF P41dZKHtE9gnMkD6TuuAz0cU6bGcpEHCsFKMo0vnhgwUdP8uL2lHysNYXBSQl2Ro0a+c 8Mdw== X-Gm-Message-State: AOJu0YzSHALZD9Ga2yzsXjIk9Eo1MZoTd3lPRArvqLfOXQzupKBizQN+ g02AqMklvhjMbSwM2Up0QNmkCVvEt5kWkN+KhgeF7UD7YvU0+YwbTmknpD4lYydu+lfE2vFFi+m Aj3uuXmE= X-Gm-Gg: AY/fxX6vyBaacPgxRqPfPxPe2zzDZRmyvqYB7TtLbTpVKIQeDxmRtP2PROJWzRlHY6u /gVFjDcv3g1i9JtiPj/jgm0fekVnu9wfwRX9mBwOqrAHzDRoccWCSFJTYKZwCvwQD8wUxfv2kan BmF2XQOopUSvqBlGObqMshdrrt9d8MzttFdXgcg6bPsPIHdxOm4rvhcprJlYYnCuvPPxklyUc8P p3QfkPwthLRUDYMbD7TrR9QQZonaHYCbxnihj6rjK/leGvIHyCge6YSJAdwBQ98fSIp9BhJe4Rp Q2Du/vpe0BIMk4FHOPXR9N5yKtxUQsznD2FPenNHnvwhohK+8U5aXNNcw7ddiYkp9383CDtBs/W muuf85wmn39QYDBZT3RwZYtaZ1FWowjKgo2Q0oMSJhAl5czvPPXwtw6KcsE5KBIOGYT6XETxRNv raNE5AdkkpWzYCnx9Zj/vGHPkE4//Saxc4BQFXvcRZUOU58LQtAKoqNk8pn/cF X-Google-Smtp-Source: AGHT+IGIKxwPJNkSmcKLtUGHI1seUh2RngrxnMme36+yfsMuOPLnzF85ukGKRclmYDwS+9AG4uRx5Q== X-Received: by 2002:a05:600c:4447:b0:477:3e0b:c0e3 with SMTP id 5b1f17b1804b1-47d84b3b8b9mr111320605e9.32.1767977270585; Fri, 09 Jan 2026 08:47:50 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson Subject: [PATCH v2 1/4] tests/qtest: Remove unnecessary 'qemu/bswap.h' include Date: Fri, 9 Jan 2026 17:47:39 +0100 Message-ID: <20260109164742.58041-2-philmd@linaro.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260109164742.58041-1-philmd@linaro.org> References: <20260109164742.58041-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::32a; envelope-from=philmd@linaro.org; helo=mail-wm1-x32a.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: 1767977324467158500 None of these files use API declared in "qemu/bswap.h", remove the unnecessary inclusion. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: C=C3=A9dric Le Goater Reviewed-by: Manos Pitsidianakis Reviewed-by: Richard Henderson --- tests/qtest/pnv-xive2-common.h | 1 - tests/qtest/aspeed_smc-test.c | 1 - tests/qtest/ast2700-smc-test.c | 1 - tests/qtest/libqos/fw_cfg.c | 1 - tests/qtest/libqos/i2c-omap.c | 1 - tests/qtest/pnv-spi-seeprom-test.c | 1 - 6 files changed, 6 deletions(-) diff --git a/tests/qtest/pnv-xive2-common.h b/tests/qtest/pnv-xive2-common.h index 2077c05ebc7..3b842274243 100644 --- a/tests/qtest/pnv-xive2-common.h +++ b/tests/qtest/pnv-xive2-common.h @@ -15,7 +15,6 @@ #define PPC_BITMASK(bs, be) ((PPC_BIT(bs) - PPC_BIT(be)) | PPC_BIT(bs)) #define PPC_BITMASK32(bs, be) ((PPC_BIT32(bs) - PPC_BIT32(be)) | \ PPC_BIT32(bs)) -#include "qemu/bswap.h" #include "hw/intc/pnv_xive2_regs.h" #include "hw/ppc/xive_regs.h" #include "hw/ppc/xive2_regs.h" diff --git a/tests/qtest/aspeed_smc-test.c b/tests/qtest/aspeed_smc-test.c index 50a87e62500..39af1df0ed7 100644 --- a/tests/qtest/aspeed_smc-test.c +++ b/tests/qtest/aspeed_smc-test.c @@ -24,7 +24,6 @@ */ =20 #include "qemu/osdep.h" -#include "qemu/bswap.h" #include "libqtest-single.h" #include "qemu/bitops.h" #include "aspeed-smc-utils.h" diff --git a/tests/qtest/ast2700-smc-test.c b/tests/qtest/ast2700-smc-test.c index 62d538d8a3a..33fc47230ee 100644 --- a/tests/qtest/ast2700-smc-test.c +++ b/tests/qtest/ast2700-smc-test.c @@ -7,7 +7,6 @@ */ =20 #include "qemu/osdep.h" -#include "qemu/bswap.h" #include "libqtest-single.h" #include "qemu/bitops.h" #include "aspeed-smc-utils.h" diff --git a/tests/qtest/libqos/fw_cfg.c b/tests/qtest/libqos/fw_cfg.c index 0ab3959171b..8611f648c14 100644 --- a/tests/qtest/libqos/fw_cfg.c +++ b/tests/qtest/libqos/fw_cfg.c @@ -17,7 +17,6 @@ #include "malloc-pc.h" #include "libqos-malloc.h" #include "../libqtest.h" -#include "qemu/bswap.h" #include "hw/nvram/fw_cfg.h" =20 void qfw_cfg_select(QFWCFG *fw_cfg, uint16_t key) diff --git a/tests/qtest/libqos/i2c-omap.c b/tests/qtest/libqos/i2c-omap.c index 6f98f54820b..71f70c64f85 100644 --- a/tests/qtest/libqos/i2c-omap.c +++ b/tests/qtest/libqos/i2c-omap.c @@ -10,7 +10,6 @@ #include "i2c.h" =20 =20 -#include "qemu/bswap.h" #include "../libqtest.h" =20 enum OMAPI2CRegisters { diff --git a/tests/qtest/pnv-spi-seeprom-test.c b/tests/qtest/pnv-spi-seepr= om-test.c index 8033261758b..44e0b92730b 100644 --- a/tests/qtest/pnv-spi-seeprom-test.c +++ b/tests/qtest/pnv-spi-seeprom-test.c @@ -7,7 +7,6 @@ */ #include "qemu/osdep.h" #include "libqtest.h" -#include "qemu/bswap.h" #include "hw/ssi/pnv_spi_regs.h" #include "pnv-xscom.h" =20 --=20 2.52.0 From nobody Mon Feb 9 03:31:04 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=1767977334; cv=none; d=zohomail.com; s=zohoarc; b=hb6TxNuKaJpp6i7fwFI/J9l8y921teXMrms2a9cQWR/gBMjqZKc/KNMOzx74lm75JOr8iM2tz94+dSr+EolP9Y/8/tSWwf0QOtT6Tuz4eGZ/VNMUWDe1Ak6mHrfcw7UjQWhTSM3Tfh7YfSnS8KZmFIcz8n/TuVO3gAlU3mBzXXA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1767977334; 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=B7nBBC4WAtAU05Xp6t4I2K18+IU73KIQGfkvAdAWckWBlGz9jl+tGsqYTpAwfcywCLt9Z3M7LDXj/nQMsIzEKRWMNfJXQFB/05pCHtzn9Eiab5Bj+D+b0tI9wZ1nKbqj+2uz7h20wEvFqCaE0sTHiJsHa0Up66i75+VrcA6yi0U= 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 1767977334718763.8572099124945; Fri, 9 Jan 2026 08:48:54 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1veFeu-00088x-QA; Fri, 09 Jan 2026 11:48:21 -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 1veFec-000831-K1 for qemu-devel@nongnu.org; Fri, 09 Jan 2026 11:48:06 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1veFeZ-0006hy-03 for qemu-devel@nongnu.org; Fri, 09 Jan 2026 11:48:01 -0500 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-4775ae5684fso21436865e9.1 for ; Fri, 09 Jan 2026 08:47:58 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-432bd5ff0b2sm23298148f8f.42.2026.01.09.08.47.56 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 09 Jan 2026 08:47:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767977277; x=1768582077; 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=CkQAQIu0gJMwxpr+RivN9KvUt3PtinGIu+7qbDdxB55O7/NUuS6q46UGZ0Xd/Q34gL PZnob4J3m70yreQ+PrMZt8pmqMG3rDM2SMGoP913Q9Lu/XOUmtq9dr3/RoyfL5JMCE8O kHMrtonBTeWF1ZiEQMYVvr2TmFGPEsJkwx2zz2HBsXjTC79BqMQuzxmsPZ8GrQ095DY5 r4prrqWNNGLn670vCvi/mkq2jeae3F4/v5y8Mu8acCg7fQdq66qO6sRyr4T0tMvSR+YV sPUBEv6je206f3Iz9/+RSUcqCVniYK1x5deAY3mVpBh8Hh776k4oP/854voc/XkiYatU okkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767977277; x=1768582077; 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=Snnkx1rN0bjYlL/sBqrZK1Ohavjv3swfZHGcLO/fa/iMxYjNC9VmySAZhkuuZrlIX1 zylaiJZMjlMJsWYdaA87j+2ds862OrS9P29lf6wBNZK35IcufXluj+SELGdY2mt3w/4O SLRSu6+PA1fLVJ4X7t/YSgYVqRqyFjmfbej4bmHiwzeIxoK0MZitGanb51LecSi6YN6F rVKgBhG1eL+IdnnIcHVccPTzt8TxllhBRSyQ/mgGQTQvRP+KmPbXsy5GUN5p6dGmB2ea 5sI+YK7kdDpsBBjChbvRGGWjxJsQyPkX1T/ty5BbG34mHXioxZo7NxTG4SDE9EuIyYHl bK3Q== X-Gm-Message-State: AOJu0YwieLh+fVyJoN89M2Fds5D1OvtTH92M4j/PE0eRo20HPtI0+B9u hQ+3Op8N6vFDvAnkhI0hmG2CwH6hGZ31t5gJSGGia0j7GDuK9L9L5UaE8Uhof9n5PmYNioozt/B uFwUDCqA= X-Gm-Gg: AY/fxX6AZAt9IpzpQz+U6u7Bm7lxIVAdXZYIVaccXKbNMZrGsb0/QcpDqj95C46xfXC yCTYG0pLt8ZQ+0TXTPFuLShiGYnlw41kEYG0Pxhk5gNmoqVVGNPV2LeSCF428j7zuohyjaoHmt7 P4yUHeB6ddZjGSOF0+8V5EwBigoOsAEYTAsNSd0m49SDZnhYK/xSrSugJTxFtCGAnFqNN4OfBNi YEMcX+KtZV1DMjVy7qz1m6ytWhzdA+u2QXkCYPnya502fKBHcnXAeQ6Zyzl++d60leBZpfRDtNf DetrwLg8HakXKB882BIaOuG7D9cH97JSAMrazM/7TmbcM97Gee92u+tDqwhzDTEeLWIYjdorEHe KYw5OeNx3RXHcfYLypM9YCpdBIab9mHl7gnoZFAIroteXd0MMOyYF4fsWDUkm4PrsfA4X5EFc/0 lM9mWg75tfJB0u8pbbGPt6OAnkmugV4Rwx2bLf1Xqlirhi1UrEfPxg/iJ7gwiN X-Google-Smtp-Source: AGHT+IHIpCZzd0tKnWh0EcDxsMW9Q08s6epKdJyRuraP5/6yc16tLpIWI+2dUba2R38HCbUmXF28bQ== X-Received: by 2002:a05:6000:1448:b0:431:a0:7dea with SMTP id ffacd0b85a97d-432c374ff61mr13406525f8f.40.1767977277121; Fri, 09 Jan 2026 08:47:57 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson Subject: [PATCH v2 2/4] bswap: Use 'qemu/bswap.h' instead of 'qemu/host-utils.h' Date: Fri, 9 Jan 2026 17:47:40 +0100 Message-ID: <20260109164742.58041-3-philmd@linaro.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260109164742.58041-1-philmd@linaro.org> References: <20260109164742.58041-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::32a; envelope-from=philmd@linaro.org; helo=mail-wm1-x32a.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: 1767977336503158500 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 03:31:04 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=1767977323; cv=none; d=zohomail.com; s=zohoarc; b=ejYwozzy1IZU9HZIg6Tam1Ygen70Tt0TW8lc1rVeYSEVZzkRmF3oWSOYM78m7QejwN61WYt8Y0Nz3knctGErevUWO/4P6FT8oWH4mRv3YcMrOk5TICQq7EOQ/L81rFOl83Py+RMkuSAWvhcRsVw/PPQ8osVpOOiivwT/J3U+D84= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1767977323; 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=9tcDXjZ2dG1eWOioYHhx1WNKmR+Tb09Qcalm5Ux4qcs=; b=JB7R/N3w/XiPlR844rAmbYek0RMqqXQJKe7Nwq7UJkQu1kXyRuawfTd/5gLC2a6ZG42NnPlHGbWQM4vNTU1oH2ORQ52odZaV4pV2adGqdj2gjzE69fNSra6Og9Fw0lAAXZkcGEb4ohyS//pGKm+9kl9uTvWaZGwTc2C78tcFHHo= 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 1767977323072849.8495842135544; Fri, 9 Jan 2026 08:48:43 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1veFex-0008Dm-RW; Fri, 09 Jan 2026 11:48:23 -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 1veFei-00083v-1E for qemu-devel@nongnu.org; Fri, 09 Jan 2026 11:48:15 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1veFef-0006iU-GP for qemu-devel@nongnu.org; Fri, 09 Jan 2026 11:48:07 -0500 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-47d3ffa6720so45522705e9.0 for ; Fri, 09 Jan 2026 08:48:05 -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-47d870dd5b1sm74012805e9.4.2026.01.09.08.48.02 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 09 Jan 2026 08:48:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767977284; x=1768582084; 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=9tcDXjZ2dG1eWOioYHhx1WNKmR+Tb09Qcalm5Ux4qcs=; b=pZRkDsWoULJU6/Y+8V1A3wGPwBuOblY0g76MCBL+TS/Fu5okBo7r5koZQXvNhKYoKx WdNLMwM65klmXX66aLvMyxLmpfmPNvEKZnQ7FtIhCZQqfvN2LMEzSexQbWz9MNMsMG3F XMew5UbPrg5nghjL7s9zDEPfGMPlEAXQLCpxrm1dGE7zhFmPZP5fiNUNCVMXRnFZjkfC lP8NLT80K21RdTUbJUbytwICO1TWflSW5Eg/jHJrBPgh14GbbIxplftyHPSc74B9XXQS M9VxzkSJIshEpO0kNrKdNojF7F7I6mPkxPy4qJuPG5M84cz58lVPaTVVa+mjt4NELOx8 va+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767977284; x=1768582084; 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=9tcDXjZ2dG1eWOioYHhx1WNKmR+Tb09Qcalm5Ux4qcs=; b=CpHIV6/M5Ydy5I4w4GxMHdHviv6SVk+Nv7UYo3b0FAWARNw/NuCnp3UAm5eMYBZbFx iKbLg5fNJ0sPRlcJL3ObvCbSsAHVn8840/FvIZJF/LrBLmTRT4EyF44oRuErzXrn4xK9 LfpnZxiLfZHSBrpRumYMJiw8UNtmQEbBom2/ZrR/Bza8VIaj1BD5fzRcWt9G++ZUjepP 8BQFmRvfB92VGbYXs7HIuwGuA5DUmdcmjaym6BKQAKKRhbKp57SYMwaN0Ytp7x8tnPm0 ZeD7DSglz+d96r1JzFTIKDpENuFsoL2Lz84DMWqKNqRxFRxuaPBc29keEg1kU95gEgmy 5hdA== X-Gm-Message-State: AOJu0YykIQvWfx3lmSch5kcCr/vWgRPMLP2gpRsvrgw45+8FkSiIBLxJ 5f8ja5XkM1LeLGFvygZJ+6bcvBCY4Chv6VwhmLBwxTlnJbHoLFJvmjhU68aLWSZVjCYPfqKD7fj AsuhnTjU= X-Gm-Gg: AY/fxX6/k1iRKN8Zj4+egoqFA1GE5V8itBe0PxRV7uPOC6MQ0vy7X9a8qqXbaESmfA4 TcWlc8Iu9p8FcxAFvzy960c5fYRgIakz7LZd0pQoCmmetDKzMJkDNtHV4Kl3W99b9UNJ12QOk45 VKJavydZf+jVn26ruu/Hnyn81fYqrbeb6J7CCywhzS5NgMegGTM8jlftyEcl5PQCTNbnCMh2Bv+ 8T09alv0SHsBzmKU9cGpdsHniSNUBhYgQTp3oeZEmOL/BM5F03oKQ6DtQk0R4LVj6gsQhO8NPoe HfG3MhL1hNGIExpcRSJg0TxEUtHeyXESOzuLVhoZt09R5KRn0Du8S40ySf51hi8kYU6+0JtI5/K cyYYgU+mxjLUZsyVTcw9A+uZHPQ4Znp0RWDxHyj8k0D30LA2mBdMQVpO5PEPBoma7fOLYB5yAh7 hQVn/9VEK+cRod6Skj4oLMF0X+2esmUTJ24ZgCTEK7wCrcCVN0O/B6CLA725vX X-Google-Smtp-Source: AGHT+IH016p8OeKVS22HlfN9wSh2Y+24/WjeF4ZQntv1woNi5QV9mdDasHJiBNXjGHoBYxBCreL2Lg== X-Received: by 2002:a05:600c:46c4:b0:47d:403e:4eaf with SMTP id 5b1f17b1804b1-47d84b18ef7mr132979205e9.10.1767977283678; Fri, 09 Jan 2026 08:48:03 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson Subject: [PATCH v2 3/4] bswap: Include missing 'qemu/bswap.h' header Date: Fri, 9 Jan 2026 17:47:41 +0100 Message-ID: <20260109164742.58041-4-philmd@linaro.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260109164742.58041-1-philmd@linaro.org> References: <20260109164742.58041-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::32a; envelope-from=philmd@linaro.org; helo=mail-wm1-x32a.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: 1767977324629158500 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 + 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 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/qga/commands-linux.c b/qga/commands-linux.c index c639a60a941..c962b115c83 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 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/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 03:31:04 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=1767977322; cv=none; d=zohomail.com; s=zohoarc; b=VMirJYIDH6be9iuYl13NhjVilUQ6KcU1eDCBqZdlb/P+HPHLm4470EUvTIsZ0rWScPg2zmP9P5bPs84kbmCqZAnFVLySbZdM4k1Bm4ZU7dglMMWxAvXPT+Cxc3/YJr5HAX5cGuwJo6RWPvfDS7sJ46vqo6MdWM/NwXZLi9xmCN4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1767977322; 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=FAChzZF62QRZRDlq2JkntAit0zdiHfaGcVC7grbPb0ZTKIo6zMSaUj+VZiiy2r24JPF3Y+MkSV1PzdhzFf+ylwSsnKlgya9m46n68CWYPz3lUncJQ+Kwt4C2dNothJn9b7p9FO5/q5uOeHXAgXH0hN5i2N3saHy+owP+aMkIznc= 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 1767977322553808.799973722488; Fri, 9 Jan 2026 08:48:42 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1veFf0-0008Gk-Uh; Fri, 09 Jan 2026 11:48:26 -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 1veFen-00084I-Ip for qemu-devel@nongnu.org; Fri, 09 Jan 2026 11:48:15 -0500 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1veFel-0006k8-TX for qemu-devel@nongnu.org; Fri, 09 Jan 2026 11:48:13 -0500 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-47d493a9b96so26645785e9.1 for ; Fri, 09 Jan 2026 08:48:11 -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-47d7f668e03sm227215895e9.14.2026.01.09.08.48.09 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 09 Jan 2026 08:48:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767977290; x=1768582090; 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=XasPYLJJq8UKvF42kxxgF28bSZo16V6gn8YE64gdeklam4EhCyn3y3fAJPi6ZaOED4 O5QyoxOYudWtzO82yBvCokpZWh8J1doOtoKUJjbZGreS1pwMVrq7d2T+DcH6KPUGNMHh RTgxbacdzCGeMMHFmhqpTIa4Eg5o3whsiKKCnvZr1rJa7syeMpn+9Z2v3KigUTbWjFLi fLjpxKSsT+i+zOYA2fgzrHaOcrqCkPLvXEYh9LyeF6cp9ZnIBJ3/eid2dUIU86iT1WP/ 8ekdonX6i8fKjue9MJjbMiswkn9UHzOjFzVoYjFH6pLDJugcv9o41BMtQZ7jhliVb6Hf qx8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767977290; x=1768582090; 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=cTxe9XGW/gkK6R5hWGIJqWxTS0J9BhkeQ/zwdbVxX5S+tkJ2RNJSrLqzXdCFZyYpwE 7GdjWbhpkooDL9EK5T8q+E558VsTiFsB9M1C4LWeMGuskH46Ub+pwZ0+D+FF3an3Ku8S GoQRZzqLEv12VBRrpAFeib1XQqBBi066FcaLVs6BDZCjioHPb3MYYG/xmy+sRoDxSSpR SL9OkjMb8bVsM88O22Ec2N5d8HE2M8SwiJunb7CzA/D5k5ZAiCXmUFYs/3ba/R4Gd737 Nt9eHE7GRSTqAcKLotr07jZQGqpLrFvmPCq4ve3q8KunCgrsFggQLf6ZIeP5ss+bienO Z62Q== X-Gm-Message-State: AOJu0YyWjTTE7BG6PlWJQhekcx/RheMhbmaurEkslJ1zghDQ3rfpCvJ6 ZEOyCP+M8ElrWO+PRn9XZSBE5apq7YPW3TBo8EaevV1zE5coqpmvg1bnRFoX9ErFPSv4M88J6kc LVLpE2+s= X-Gm-Gg: AY/fxX7zFAj5l7DUTGkX4rEOhsJ6g1mCDRv4HU6p3mk+TiVx/vz7QaG7+vc2mqmrTWM qZuaffoaSr8PtB4ir+9NKZqEn0z0i/ShjJAT2wsOPPVauBHQUe2ypu8ArdYMfgMlpPJKN7IZ4M1 pEy3IFZikuRM+77YFKDcyP7kXcEG5Cjp/o25Rqn+CiKNMKik5xdjG0QsCsd/C5kDKLRsb+XaUqg wcVQRw8RsUPIubF53oy8OYZgYsE8QLwyJsKWlp2+Sstmq9U6wQpGlnOsj7PL3lAqSCyXXpm9ACB 5QOeIngc1+LAx+9tXF5fKl3t+M2r1s3JFxyT3zIQ20z767ktMuEQIgHkDLe84sGE260JwmDACaK TSCNHxOwKrIuMzllIfiU8tBrx8s9PcbB3zY7yNbZPE/lj/DWgSObXpDDoomnK1p0PuHpatVhBhV i9cno9EEn7oVq+Mzj+zB4wfsk8akMYLahe+jEXsXCNhWZymEwEVMSqxdzuM2+Z X-Google-Smtp-Source: AGHT+IHNn0rzJon3y3WGWkePTOpXyXl3TkEHJnHVUwJybm3GZ19wK90UqfTyyF8zi/UQMxwmzM1Jeg== X-Received: by 2002:a05:600c:3e8f:b0:477:5897:a0c4 with SMTP id 5b1f17b1804b1-47d84b0b315mr115590995e9.4.1767977290096; Fri, 09 Jan 2026 08:48:10 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson Subject: [PATCH v2 4/4] bswap: Consistently use builtin bswap() functions Date: Fri, 9 Jan 2026 17:47:42 +0100 Message-ID: <20260109164742.58041-5-philmd@linaro.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260109164742.58041-1-philmd@linaro.org> References: <20260109164742.58041-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::32b; envelope-from=philmd@linaro.org; helo=mail-wm1-x32b.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: 1767977324462158500 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 Reviewed-by: Richard Henderson --- 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