From mboxrd@z Thu Jan 1 00:00:00 1970 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 A103CC433F5 for ; Mon, 28 Feb 2022 19:12:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C43F583C75; Mon, 28 Feb 2022 20:11:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="adH2iQvK"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 374CD81DE9; Mon, 28 Feb 2022 20:09:37 +0100 (CET) Received: from mail-oo1-xc2b.google.com (mail-oo1-xc2b.google.com [IPv6:2607:f8b0:4864:20::c2b]) (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 0CA0F83C32 for ; Mon, 28 Feb 2022 20:09:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-oo1-xc2b.google.com with SMTP id i10-20020a4aab0a000000b002fccf890d5fso19873398oon.5 for ; Mon, 28 Feb 2022 11:09:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kkaxYo6Sypa1bJBZb6sOvx7Tfn7/nUtAZE6T00KY5hM=; b=adH2iQvKxBiyI0NxAWDlrryzDuSb40HsKp8C0SYQFPI2bFYlXalQrPzjlq8wREiyVo ysj1nBooiT856MQqDUvH9ZyHquyZxfTbVmgrfMbuZ8SpapzegzIf/91Hm505FEpQj/tB 8KAjLNoYvD1fFLBPs2+UprcD/1EQ8vDDGWS74= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kkaxYo6Sypa1bJBZb6sOvx7Tfn7/nUtAZE6T00KY5hM=; b=3HDgqyT+N52PnEpHtM2dhwnLVT82gL620oJngHGqUEbpldbmIpuPQgHvf4NRrkp9Xr vDglpTsx7XdVTCK3z4cWFsAgRKC+B5fQm5bEOe873pltsZADyY7XZNzghAVrlyviMHVG or/sgDlS5AMNr7KXS2WEHrLsLKbYkPrWg1Xxhn2T8Pj11EDDJA5cRUzYnBv/O1vRdnd/ QisJQ0W7+IfE8tiPu0ZaSNFwPAOYilKVE246kUV9a8kd03/3JIX2crXRbxjNLS/8lAyw 3ml8H/ukS5ApTiyM/zSmDT54hLz1zgkgSv7l9UF/vXmkWjZ/xBIDSGYp52GGeI+kd5sI 7PLg== X-Gm-Message-State: AOAM5338c+sfejEDJ1tjwkswD174hL5xkwHz2/wpriPkdRcd1gVya790 HOyS6ITqE7gNzJvBVVnfIhYi0WUfwIxQ3Q== X-Google-Smtp-Source: ABdhPJzvo8rMlUABTiJVjbGqquWNLE8iD1lhxq6uBKaY/z5tD8M2o07Pa6bENzFQibZZeAWGea6FIQ== X-Received: by 2002:a4a:8541:0:b0:31d:4ec4:703b with SMTP id l1-20020a4a8541000000b0031d4ec4703bmr5762875ooh.46.1646075354631; Mon, 28 Feb 2022 11:09:14 -0800 (PST) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id f188-20020a4a58c5000000b0031ccb8272f1sm5290577oob.33.2022.02.28.11.09.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 11:09:14 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH 15/18] stdint: Add a definition of UINT8_MAX Date: Mon, 28 Feb 2022 12:08:32 -0700 Message-Id: <20220228190835.1480772-16-sjg@chromium.org> X-Mailer: git-send-email 2.35.1.574.g5d30c73bfb-goog In-Reply-To: <20220228190835.1480772-1-sjg@chromium.org> References: <20220228190835.1480772-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 This is normally defined in stdint.h but is not used in U-Boot. When libraries (such as Chromium OS vboot) are built against U-Boot they may expect this value to be available. Add it to avoid build errors in this case. Signed-off-by: Simon Glass --- include/stdint.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/stdint.h b/include/stdint.h index 2e126d14bd..dea83c8226 100644 --- a/include/stdint.h +++ b/include/stdint.h @@ -5,3 +5,10 @@ * * U-Boot uses linux types (linux/types.h) so does not make use of stdint.h */ + +#ifndef __UB_STDINT_H +#define __UB_STDINT_H + +#define UINT8_MAX 0xff + +#endif -- 2.35.1.574.g5d30c73bfb-goog