From nobody Tue Feb 10 04:03:18 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1601299213; cv=none; d=zohomail.com; s=zohoarc; b=DaW6Qbsd0p8vptDCzKupPa/1PpOUjnwPBB4hHeLpbSqJ0/v0wCKaLF3L8umgYta1IlOvFoB5kJhuy090iSZ0DYQ9HkweY2SqHdscvm9fzYFtQltBouuouimEiASzPy7o1RClQ1YFrHyRyjbCLCLl5K6zrDesF17EIWaVIwKNopI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1601299213; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=se/oNrbj72j7l4wWWeNKso7ox10vwm+7m/MBRp2oEp4=; b=cZzlvJjwnjpE4868firzAffrdBUuvfzNDDHkVVbopUkgY5UuC6wy49Em5CiP0me4nWK2iHg8UKzOwQH3EfXZ6y9Df4L5Lhm+cZ4oWP7XV/D6//LB/ligarowDjsVj93eiM/RHp76L+uzP8hJm4o7uer9aHCD/6EQifNJx5caMdg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1601299213464497.42649626063564; Mon, 28 Sep 2020 06:20:13 -0700 (PDT) Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-64-oYOjIvq_OQuAyNNrXr87XQ-1; Mon, 28 Sep 2020 09:20:10 -0400 Received: by mail-wr1-f71.google.com with SMTP id b7so408910wrn.6 for ; Mon, 28 Sep 2020 06:20:10 -0700 (PDT) Return-Path: Return-Path: Received: from localhost.localdomain (74.red-83-53-161.dynamicip.rima-tde.net. [83.53.161.74]) by smtp.gmail.com with ESMTPSA id y68sm1281318wmd.39.2020.09.28.06.20.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Sep 2020 06:20:08 -0700 (PDT) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601299212; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=se/oNrbj72j7l4wWWeNKso7ox10vwm+7m/MBRp2oEp4=; b=HQsnbO8IFM8xrEoDxlHpgNls8BwwmmlG3Q8665znSaVdYLcQcyovj+eb3vMsbwebcpcuTc FvJ79iMFCmpAH63QEzev0wPhkfz3lehOO2ZOgE5uKSYiz4qytG1sriDrzjzvqicz3acV12 zCBoyRSnE8xcJ1Su5WWmIYyvrwMlUco= X-MC-Unique: oYOjIvq_OQuAyNNrXr87XQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=se/oNrbj72j7l4wWWeNKso7ox10vwm+7m/MBRp2oEp4=; b=lXvmYjk1owskTWR/KVG9pCbrhXYUr5MxeidhdpLZpYFagYbvAWsrUUD8dQ1taWYEju nECEuNM5Gx1x9nrFuazTvxORTepuEqig0jkLAxSoNekuQWiYCTwc5QX1p35SBpNx3zvH 3ZkLYPCRYjjc7LWAj65LGYcYZUW3mPNr4pYFsX+1dBpiUHnGEVDGBmASsZ+M1K6cNiWO Tuc8tqFYpTpvGW6VS6oJ2eVqckRCJ5KvhNluR0aphx9+odBNZc/6116AamwfIMjfcBx5 v+fOyBmm1SCm6IDuoVBCWmo2yStg6Yv10QT+uip2zc4PgutHRICnIiNp0hVFL1TP9ceH Zfqw== X-Gm-Message-State: AOAM530DQLrPwtf9HQFjyzEc30ici2by8cEP4aYHU4x6Hte1h+degTip hde1fhl/VhxCrJCZ18IpmEguixz48llTV9kmVWiJtD8vb+0h/2mhAsKvRv6SfiNZd5h2/54egnd XaVelMgP9nKx6cw== X-Received: by 2002:adf:a29a:: with SMTP id s26mr1698403wra.197.1601299209070; Mon, 28 Sep 2020 06:20:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUE02FaPHU84DL31UVZTdkSiT6Kw4FelT6seiFl635D8xxNJTA2H9fSmXydnxs+8HeE17oUA== X-Received: by 2002:adf:a29a:: with SMTP id s26mr1698382wra.197.1601299208893; Mon, 28 Sep 2020 06:20:08 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Fam Zheng , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Richard Henderson , Kamil Rytarowski , Ed Maste Subject: [PATCH v2 6/8] qemu/bswap: Use compiler __builtin_bswap() on FreeBSD Date: Mon, 28 Sep 2020 15:19:32 +0200 Message-Id: <20200928131934.739451-7-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200928131934.739451-1-philmd@redhat.com> References: <20200928131934.739451-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Since commit efc6c070aca ("configure: Add a test for the minimum compiler version") the minimum compiler version required for GCC is 4.8, which supports __builtin_bswap(). Remove the FreeBSD specific ifdef'ry. This reverts commit de03c3164accc21311c39327601fcdd95da301f3 ("bswap: Fix build on FreeBSD 10.0"). Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Ed Maste --- Cc: Ed Maste --- include/qemu/bswap.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/qemu/bswap.h b/include/qemu/bswap.h index 719d620bfe6..1a297bfec22 100644 --- a/include/qemu/bswap.h +++ b/include/qemu/bswap.h @@ -6,8 +6,6 @@ #ifdef CONFIG_MACHINE_BSWAP_H # include # include -#elif defined(__FreeBSD__) -# include #else #undef bswap16 #define bswap16(_x) __builtin_bswap16(_x) --=20 2.26.2