Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4C39EC433EF for ; Wed, 16 Mar 2022 15:40:49 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7AF24839D7; Wed, 16 Mar 2022 16:40:47 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="BYr4sWfX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D185380F78; Wed, 16 Mar 2022 16:40:44 +0100 (CET) Received: from mail-wm1-x349.google.com (mail-wm1-x349.google.com [IPv6:2a00:1450:4864:20::349]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A9D0282065 for ; Wed, 16 Mar 2022 16:40:36 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=38wQyYgUKBtwNRMQGEMMEJC.AMKS-9MMRJGQRQ.BCLV.BC@flex--ptosi.bounces.google.com Received: by mail-wm1-x349.google.com with SMTP id v67-20020a1cac46000000b00383e71bb26fso843828wme.1 for ; Wed, 16 Mar 2022 08:40:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc:content-transfer-encoding; bh=nv5ZbixU4252vD6xBlWCaZO8rfUei92koT9br9/ieLE=; b=BYr4sWfXWXpkM5mWPIQx4dNT5YDqrGWS5VmQ0b1kqVi6x1T4PO77t2IRpv4WWV/47a SA5WlMzJOyHPYymQ6kR3EvQYL/XDb9eNYPu6nBpYM8WYNZ4hqAkfUCzGlA1w+ktW8L7Z cJRDXeBXCcvWxh7+Y0Npjy8f3vXCDPZmGP6uU/O6VRC52a22k/EJMeCAlS7oywsKs4eH YALW9BTDMs9HDPujB+mX5W2AFfqVUbCEMJS/Y8EKiiJU6TUFvsh+jz6es5t/I4NhKHr+ bUQ0yeKLoAnrj+JItKU/W6L7Vz6LY24HLbIx/7871XePvwDngsP7QAlpZyAvF43jG7eq 1ypw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc:content-transfer-encoding; bh=nv5ZbixU4252vD6xBlWCaZO8rfUei92koT9br9/ieLE=; b=yEq7CdIoxiz+XVTHwV8HMtTKudbyhYNQWL3P+RRWMDGFilPhydSlEQOXGnLs+CthNO px7FE6ZKWwh6IGBTT1iMVr0s2nVOTSFVYgaRI62wowrKr2/yxCh3z3ZBV5IDYJoGv8aA s/IwXcO8SLkV6t+R6saT2QeJfUr4AjMglzTZ1ccCU4sfpapd2cihCBdMpqJCIkWhKo8n u0ENv0E4/FCVOdpW4mO9tXtn9Psz9+ta2K2CYo6eIAEx3n1gn3CSvITmSXH2dECkKzpv ZA66U8tExR7NSdELIzkFhyo45rYtNxYMOnVEmEqPqKxSZleKZltRKVbMvM/a3R9duADC 3qoA== X-Gm-Message-State: AOAM53292LEDS3oE8HxjVznLiaSRBqy4Kwel5g80GtieYslCHwhbuAdy ys6SgA0p90N0okY63Rfnt8zxTJLyzzpJRi2agJL3Oc11ouFEGjsjufS63QlexqiX/hZKkTIXzVz QF6qEHgMnClqNhe2OqER/QKaWQpX4yGFqVGkM9Cw5MiDSfA7RreYZCqF0 X-Google-Smtp-Source: ABdhPJz1OuQIsY7N2ybnX3oo8cvJdBctq0RMdrBPGb91uEgygxWAyKRbWcFvCaT8IwJ43NS8zbeI3tmrPg== X-Received: from ptosi1.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:afb]) (user=ptosi job=sendgmr) by 2002:a05:600c:418a:b0:384:224e:1817 with SMTP id p10-20020a05600c418a00b00384224e1817mr213047wmh.123.1647445235689; Wed, 16 Mar 2022 08:40:35 -0700 (PDT) Date: Wed, 16 Mar 2022 15:39:41 +0000 In-Reply-To: <20220316153948.197650-1-ptosi@google.com> Message-Id: <20220316153948.197650-2-ptosi@google.com> Mime-Version: 1.0 References: <20220316153948.197650-1-ptosi@google.com> X-Mailer: git-send-email 2.35.1.723.g4982287a31-goog Subject: [PATCH 2/9] lib: crypt: Avoid redefining static_assert From: "=?UTF-8?q?Pierre-Cl=C3=A9ment=20Tosi?=" To: u-boot@lists.denx.de Cc: "=?UTF-8?q?Pierre-Cl=C3=A9ment=20Tosi?=" , Simon Glass , Steffen Jaeckel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Use the macro introduced by commit ef0f4e834c66 ("build_bug.h: add wrapper for _Static_assert") by importing . Signed-off-by: Pierre-Cl=C3=A9ment Tosi Cc: Simon Glass Cc: Steffen Jaeckel --- lib/crypt/crypt-port.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/crypt/crypt-port.h b/lib/crypt/crypt-port.h index 6b9542d75b..e85d3c132c 100644 --- a/lib/crypt/crypt-port.h +++ b/lib/crypt/crypt-port.h @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0+ */ /* Copyright (C) 2020 Steffen Jaeckel */ =20 +#include #include #include =20 @@ -10,8 +11,6 @@ =20 #define ARG_UNUSED(x) (x) =20 -#define static_assert(a, b) _Static_assert(a, b) - #define strtoul(cp, endp, base) simple_strtoul(cp, endp, base) =20 extern const unsigned char ascii64[65]; --=20 2.35.1.723.g4982287a31-goog