From patchwork Thu Nov 14 05:15:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 179365 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp10573037ilf; Wed, 13 Nov 2019 21:14:45 -0800 (PST) X-Google-Smtp-Source: APXvYqyOmhVtXZdBNCwF0/PjEbGnOPbOdrbGR2FLxkFYAkaWu8j72y2+D/9XOm0RV50JHLBfQdWt X-Received: by 2002:a17:906:6093:: with SMTP id t19mr6544466ejj.50.1573708485420; Wed, 13 Nov 2019 21:14:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573708485; cv=none; d=google.com; s=arc-20160816; b=FcKgCBg8loKX1XPV6DwOjpDtCsKMQZTyLF6tKoq9UTui+MROWTKET2YCcH08sKAsj4 +YCg70p1bcAXGhznjeF8RWuQfr1O7KAU/NpcWMw7qOVwsNDMiTo7x+cE8ohI02T7yx0s n0fQHzgTvQIpGGqqvZefZdUt/FKGTv+H+eZsHLHdn0scjo1UW7vqulj703WmDf0rwOTS 6BsJITF6aWQTYryYl7lS/dkdxUCsccv27KBJVG5DQTTw+2ULGF5nZv0lW4PZsdZwbWJt dHOYTvUJ3/xUKpA8aob0pQUU4oSIncCazQksb30On7ytFpiTiJqJsOpw7Lqngr6BR7Up 5JIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=K2wlRR3w/KTNdVqCYnrEwvs7sg2WubrsMP6gUzcCK3w=; b=0VtxR0Pe63NAiuIuoneN5K/3UlSgMGP92GIlscunEPcSCcEOYJ3gxiNTqWRwq/rNiT lil8gxretm4esAsHMDaDSxQgUt6XxlARnfMQQcVM3Zd29L3vxPpSoOZ7d4R5ZVhCF5Fa Ug1V6uKqTlfcu6FN1pxL8uwX4mOUry9Opxg6LUAbkvlo//8XaAJkdSeJWxzwq9bjXepL D5lh5yOND1LB8+T2HGZs52kH2pH4gKJH8UPIZFcUcJVQTZE2nDpJN+pGqu1+bIRBXgrR 7n23uHexQnLeK8KBPW66B8YWt/Ki2j8RaOktYTT1hy8hmbEjfvQgt1kuJEpXfZWdnCQi yOmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zppns9CQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z15si3146989edd.8.2019.11.13.21.14.45; Wed, 13 Nov 2019 21:14:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zppns9CQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727363AbfKNFOo (ORCPT + 26 others); Thu, 14 Nov 2019 00:14:44 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:41129 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725914AbfKNFOl (ORCPT ); Thu, 14 Nov 2019 00:14:41 -0500 Received: by mail-pg1-f194.google.com with SMTP id h4so2919193pgv.8 for ; Wed, 13 Nov 2019 21:14:41 -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=K2wlRR3w/KTNdVqCYnrEwvs7sg2WubrsMP6gUzcCK3w=; b=zppns9CQ9NJAosr/LOsW1qDHdqq9EqFz5ZPBd7ZGpXbY79fJ2UVFUjsC9feu+OeRHH jtupVXzvx24ZZtmezz8rILhUwtykHm72bbXRADz/wG5Xyooq0ab2j+kPJKt4jiwKJl2d FH2/0qcxqyE1pxV4oVsrEIrqwNllLXxa5i0qQnqNr1U07RISfVBVpvjI8JKBOtAyQMtG TPcfcF9CbhRNOJM8m+sCcSigAOWit4iAi+t6k1O8M6SDs42jo6jnMYYpF+IBAn8AYM/g LA6GbbSwny1FrxmFPJ0PUtas1pgDTEqsAhyHs9QWGcgeXZClDrz4iDqFg1KfJvQXdYx3 Qp5Q== 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=K2wlRR3w/KTNdVqCYnrEwvs7sg2WubrsMP6gUzcCK3w=; b=a2eXJAOwPu27/dx2fbmI6uCGHRI5EERwOG2zYLWoSxyJBF4oMEeScOHfbpXP1FTwML QsXN08VNtW2v9cxEEGPbG9zd65HgN0kcgXIfARFmRAeHBHw741vCBea3Vmfsz/Oe79O7 KPOGjGgmoJ2d1cN2mM8V/86cyvzVM337ADY224QInryOhs6bB6opxZwc9OQn9H2FFg/4 RGVG3ILTfUuMBLueMgfKM/VlQf39CgTGBFf/VM5ERdzjHcO9hsyt2ncg+O97fnyDssCj 89kdGM3w4kBMKkFAF5FfL5g8fKmAEyj43SDcXa9ilKArKKAYjydYKWNmq9FrHdyyko10 fUvA== X-Gm-Message-State: APjAAAUVWMCRTxhUw9rpAai2yarnZNFL6SNMwD8ylsWIKMMm5BI1gTJ7 /3zC3/t8WnrtNBOV2fI46hhk+Q== X-Received: by 2002:a62:5e04:: with SMTP id s4mr8967673pfb.63.1573708481126; Wed, 13 Nov 2019 21:14:41 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id f5sm7329049pjp.1.2019.11.13.21.14.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Nov 2019 21:14:40 -0800 (PST) From: AKASHI Takahiro To: catalin.marinas@arm.com, will.deacon@arm.com, robh+dt@kernel.org, frowand.list@gmail.com Cc: james.morse@arm.com, kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, AKASHI Takahiro Subject: [PATCH v2 1/3] libfdt: define UINT32_MAX in libfdt_env.h Date: Thu, 14 Nov 2019 14:15:08 +0900 Message-Id: <20191114051510.17037-2-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191114051510.17037-1-takahiro.akashi@linaro.org> References: <20191114051510.17037-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In the implementation of kexec_file_load-based kdump for arm64, fdt_appendprop_addrrange() will be used, but fdt_addresses.c will fail to compile due to missing UINT32_MAX. So just define it in libfdt_env.h. Signed-off-by: AKASHI Takahiro Cc: Rob Herring Cc: Frank Rowand --- include/linux/libfdt_env.h | 3 +++ 1 file changed, 3 insertions(+) -- 2.21.0 diff --git a/include/linux/libfdt_env.h b/include/linux/libfdt_env.h index edb0f0c30904..9ca00f11d9b1 100644 --- a/include/linux/libfdt_env.h +++ b/include/linux/libfdt_env.h @@ -3,6 +3,7 @@ #define LIBFDT_ENV_H #include /* For INT_MAX */ +#include /* For UINT32_MAX */ #include #include @@ -11,6 +12,8 @@ typedef __be16 fdt16_t; typedef __be32 fdt32_t; typedef __be64 fdt64_t; +#define UINT32_MAX U32_MAX + #define fdt32_to_cpu(x) be32_to_cpu(x) #define cpu_to_fdt32(x) cpu_to_be32(x) #define fdt64_to_cpu(x) be64_to_cpu(x)