From patchwork Fri Nov 30 22:45:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 152614 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4212050ljp; Fri, 30 Nov 2018 14:46:04 -0800 (PST) X-Google-Smtp-Source: AFSGD/WtAs5+rFehcmXi97Y0grCp2B+EEoYqhvwMGSPThdlROUmSyJaT4UBUJM2oP3O28TD9fpji X-Received: by 2002:a63:f444:: with SMTP id p4mr6247495pgk.124.1543617964437; Fri, 30 Nov 2018 14:46:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543617964; cv=none; d=google.com; s=arc-20160816; b=AhGTDuESXcvl9dBxAeyQ/o2u0H/H+UtaD+8mJpkk4LtgK+h7bx7Sicthz8Vg4JI3lj yNucevNEPmzuNbql1kGQh8oM492XEWDooT4fk9VwEb7YUGWHDCwhqllrxbFX4y1FnJCx UJ9VPJkzFZbNfO7MdHzrtO8Au+VuLoMtaEbJgI4ymMJgwyWZWGrReE0K7oYSIEUTxZaW XUyK8XLb23wV77OdolDVn6/ePJBIBYxDYNNFtphFrC16+AjxE463Nz4BBzkSVAGL+dl0 tztKs2CyZT3qxHeubkaTbztyA4JqNmx0F0js6GuCQbS5nV5rl71g0ZmIbkxc2u/vRSa1 Ua0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=ExR8tt9T9nsGhb5rsWZBA2VUdDs91ljYQfrjL9C5o1k=; b=EuE7V1oPakHlj71R75E6yKdrIXfVi49v9BVkOi2PT38JAJiBMvU011r9BLlWhx4iol 5Df7/s5o3rKR/LG9R1TCC62fQwK9rfpmjNTr2gx/VjVaZc4QqDPd4ucbe+3MUsbaLXAT J8lervAIjhSkMriWF9V3qARwAaMo1F0v9y7czGBo7gwPjYA/73Rk3jl0z/2Hy8tkeE0h W0hiID4EBfYQGK+8MVcrXD4ttdMuepdjcGA4+EaLgDRrC0UgdvEEv5B1h3vC0CxLIqwQ xtjqLjQ+0zBNCeLK6Bmu+wHKNlYCeQf3RCUVd8qUE/+42m0a781Gd+wfWkrjgT39b9Ca nDAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="OPns/j6o"; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id u7si6914787pfu.270.2018.11.30.14.46.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Nov 2018 14:46:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="OPns/j6o"; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 8B87121196819; Fri, 30 Nov 2018 14:45:53 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::341; helo=mail-wm1-x341.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 82D0A21196819 for ; Fri, 30 Nov 2018 14:45:51 -0800 (PST) Received: by mail-wm1-x341.google.com with SMTP id r24so2634943wmh.0 for ; Fri, 30 Nov 2018 14:45:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ucnF6W0Y41p78RwIZ7h5fNgQbYsXHvpOMqUjE4y9c6c=; b=OPns/j6oMIrwWoxCt+hpGgSIq7wqPckqkrFKwNk0DCsZKzRQmEEE97IHd3uYenIC9Z he8BFuRd+haQPAwseZfEH0vmJzOofHr05a2Jz1a5zHfwmZ1Nk3jH6/vwi0HLQeOgfQ7t U8mcZCMPZFtFs5bzcfmNQx8P62PrKxay3UE3U= 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=ucnF6W0Y41p78RwIZ7h5fNgQbYsXHvpOMqUjE4y9c6c=; b=sS9O2R/5438vdlcBkj0B5ijVJprICZDba808C/k6M9zYrMbkM0LH2KsVOb268aCq7t 0q1rorv7uXcWJ5gi18BI3GA3d3jV/1xruZeaaHBI6+GctIzvM6hkK3WSp7Tc6ROBTvdg ha2pR+iyBq7pHbZb0jfYi5aMp4SFOId2l9KQkJvDsjH9H3Fk5N/GR9XGZAC83eR4yAxy jxit+UoFd5IEeRn9i6ApJqZIGhXVBDD1/cPRGx/pZCGKmqdfe5crqyzjDSN2owc91hGu Z48+lFD5w7G+u7HTrkzkrnVBRUrUc6DxQmctS5FBNRhIANYF5/E3+YORUsuLJyKDk5JL QhTQ== X-Gm-Message-State: AA+aEWb4PJzGupoZIRZalxZVPoEJOEsqfrBqxMqDMZ9jgMx+KWPKG2lu aDj/QpPMpJyRk3WgNOwUn/JyJUrwJJk= X-Received: by 2002:a7b:c8d7:: with SMTP id f23mr478061wml.121.1543617949641; Fri, 30 Nov 2018 14:45:49 -0800 (PST) Received: from harold.home ([2a01:cb1d:112:6f00:d895:e032:7b00:86cd]) by smtp.gmail.com with ESMTPSA id m6sm10561195wrv.24.2018.11.30.14.45.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Nov 2018 14:45:48 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Fri, 30 Nov 2018 23:45:37 +0100 Message-Id: <20181130224537.18936-7-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181130224537.18936-1-ard.biesheuvel@linaro.org> References: <20181130224537.18936-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Subject: [edk2] [PATCH v2 6/6] BaseTools/CommonLib: drop definition of MAX_UINTN X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Liming Gao , Jaben Carsey , Laszlo Ersek Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" The maximum value that can be represented by the native word size of the *target* should be irrelevant when compiling tools that run on the build *host*. So drop the definition of MAX_UINTN, now that we no longer use it. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel Reviewed-by: Jaben Carsey --- BaseTools/Source/C/Common/CommonLib.h | 1 - 1 file changed, 1 deletion(-) -- 2.19.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Laszlo Ersek diff --git a/BaseTools/Source/C/Common/CommonLib.h b/BaseTools/Source/C/Common/CommonLib.h index 6930d9227b87..b1c6c00a3478 100644 --- a/BaseTools/Source/C/Common/CommonLib.h +++ b/BaseTools/Source/C/Common/CommonLib.h @@ -22,7 +22,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #define MAX_LONG_FILE_PATH 500 -#define MAX_UINTN MAX_ADDRESS #define MAX_UINT64 ((UINT64)0xFFFFFFFFFFFFFFFFULL) #define MAX_UINT16 ((UINT16)0xFFFF) #define MAX_UINT8 ((UINT8)0xFF)