Message ID | 1571243245-4991-4-git-send-email-bmeng.cn@gmail.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="aIBo5hMN"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46td5M2Lkgz9sP7 for <incoming@patchwork.ozlabs.org>; Thu, 17 Oct 2019 03:28:23 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 0534AC21E30; Wed, 16 Oct 2019 16:27:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 7A37BC21DB5; Wed, 16 Oct 2019 16:27:45 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D919CC21DB6; Wed, 16 Oct 2019 16:27:38 +0000 (UTC) Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by lists.denx.de (Postfix) with ESMTPS id 562B7C21DB5 for <u-boot@lists.denx.de>; Wed, 16 Oct 2019 16:27:36 +0000 (UTC) Received: by mail-pg1-f195.google.com with SMTP id p1so14591027pgi.4 for <u-boot@lists.denx.de>; Wed, 16 Oct 2019 09:27:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=uEPl3LKFvbugFwvUVWKiEBMUKMCBe630AbYxdgOEkt4=; b=aIBo5hMNmFBQTifp4vVrw5DBSa9CtHrjHkvm1rsUs55TLUWIKaz5EeXO7mDxwzxFZ9 PzRTYYSuYWtLsN2wDZPDyN+0BC51cE/7i9wKtNzgqz/jMJCtgaEOlQLa9+wwFzYPzUSj R8pTJ2ZpL6axbMu0rn+YWJAFubnRfOo1e/jTXfdPrVNdIV+l2bAIYF1pkPRtGzhUzWlj ubNd7ifdeP173v39ws+O+Aco0q54Iayqoo+dFWnXcBB8AfnWSNhze8bOYliK9Vw9OpP+ fGLPVI5K/lToLs4DQ4WExhrt/H9lvlOkfPzdAwEYdvbQc8/P//cnM3I3CwVe84v35jxg C1XA== 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; bh=uEPl3LKFvbugFwvUVWKiEBMUKMCBe630AbYxdgOEkt4=; b=RBFkLnEmFrl64FdMVxwqHQPHKNbHwcYRrgVmmMUPi4F4aO+8frF1RxhqPJtIcc6JZC sh6jdY8ID9un0H2wOQE+U0EBR+2uxkhXfIE6rgmVX/YNnMZPSVLLobKM0+NEpOct3I1E 24vX5UN+XSHF/VQGtn4QTAzUaZzlvFelI2FTtt5c8xH+aWA4kHmBpor2cTY1xkaRkEtl 2LbiQ2ELiEKJI4bnwwcKazkmNRxdhCPsJAbJd3wdIhILSNoavsyxroDYAyuP5lrSd6Rk GAw9kI7Wbe1qrHad337ZeU900fUY+e1t8YtEyBzOq2PaTFsCLQG5Rld+LPmNpnHyFRkc qg/w== X-Gm-Message-State: APjAAAUgdi7gN/Y0dGaWjtT5ZNPHiElpywzQbeMKuXj8wNuMRNnmlPVU Ef1o6xqGYckm/WB4IrR6LGk= X-Google-Smtp-Source: APXvYqwpyVYHbnvonAIkyQfp8EePkrZZ7BNKbN92/nfhmB7zcT6EAziPKluJYZSAjL3d1XyiiJRPRA== X-Received: by 2002:a17:90a:ba8b:: with SMTP id t11mr6137946pjr.143.1571243255061; Wed, 16 Oct 2019 09:27:35 -0700 (PDT) Received: from localhost.localdomain (unknown-224-80.windriver.com. [147.11.224.80]) by smtp.gmail.com with ESMTPSA id o15sm2921709pjs.14.2019.10.16.09.27.32 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 16 Oct 2019 09:27:34 -0700 (PDT) From: Bin Meng <bmeng.cn@gmail.com> To: Tom Rini <trini@konsulko.com>, U-Boot Mailing List <u-boot@lists.denx.de> Date: Wed, 16 Oct 2019 09:27:23 -0700 Message-Id: <1571243245-4991-4-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1571243245-4991-1-git-send-email-bmeng.cn@gmail.com> References: <1571243245-4991-1-git-send-email-bmeng.cn@gmail.com> Cc: Remy Bohmer <linux@bohmer.net>, Peter Tyser <ptyser@xes-inc.com>, Mike Frysinger <vapier@gentoo.org>, Vladimir Yakovlev <nagos@inbox.ru> Subject: [U-Boot] [PATCH 3/5] tools: zynqmpbif: Use compiler builtin instead of linux-specific __swab32 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
tools: Support building U-Boot host tools for Windows via MSYS2
|
expand
|
diff --git a/tools/zynqmpbif.c b/tools/zynqmpbif.c index 8c47107..82ce0ac 100644 --- a/tools/zynqmpbif.c +++ b/tools/zynqmpbif.c @@ -517,7 +517,7 @@ static int bif_add_bit(struct bif_entry *bf) debug("Bitstream Length: 0x%x\n", bitlen); for (i = 0; i < bitlen; i += sizeof(uint32_t)) { uint32_t *bitbin32 = (uint32_t *)&bitbin[i]; - *bitbin32 = __swab32(*bitbin32); + *bitbin32 = __builtin_bswap32(*bitbin32); } if (!bf->dest_dev)
__swab32() is a Linux specific macro defined in linux/swab.h. Let's use the compiler equivalent builtin function __builtin_bswap32() for better portability. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> --- tools/zynqmpbif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)