From patchwork Thu Sep 12 06:01:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 173655 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp1695470ilq; Wed, 11 Sep 2019 22:59:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxi245mE8Z2TQlG3ML7mLSgX8hGNqkOyJsBCewtV3O7NquwDatVBcE6BkKfCEi1SBDD4WH3 X-Received: by 2002:a05:6402:1447:: with SMTP id d7mr39952955edx.146.1568267986320; Wed, 11 Sep 2019 22:59:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568267986; cv=none; d=google.com; s=arc-20160816; b=mQT/d+Ppg0cqLHLmzIvr++iVV1SsLqcGEqH5EZNy0kvGLDVO9co3JLHbbJAH1D5gaK 7WCSW7HqXOtGhwKn/6OZ3VSaMoTRUNUL3eNq9qoHuNXOPofVCGX6KbP4QzoJDuK3wzrn YsqhERaJVgMyuEGds2+8bqsTMnXhus85rOQn7DC5B0YVUbWkJPG+YDc2Ip2BgqXMtRCx EU2LDiT1jm1DkRKWLyBLwVZgH37JcValeyjrFzIOM/gpkj4IfnHUaJMU2solILK3exAg jDJKLLwk3+Z0gsMPud2p3SRBLfNgFA18H5udYASw/dm5uc+c89ELGbZj8G3OQDmel2S4 FXQQ== 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=hwye5rZeCSnIXAVVIFhx3WzuEtIgJnJcnfATuN1qrCzxQ1RQjrUqGM7c1Ag95I5jtS mnUzYU/aSHwGGRuJlx73rt0FWqvLw23qbMgWW2rXpfnP1ytnWLrak82S1tiZ2uo1UJDV GlKvEG2pYCeEHekFlGk+FHy6gPeFAiEhe/doGKCWjRjJGAj0CyA2jjc4fwfBClkOZkXr gachu8n4lneFTRlY/ALSo4J6WDTbq8lPKd6W/R/6ohr7A7RvrgyC2PbohSlm9qfEb/M+ PMPF5jhH2bVV8r5ScQ3wjOvPuRZ92+iPEpilYsknEm8LAR0GEoas4VR/h0La0X/B3WcX K4tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a1izBfJN; 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 d4si5858231ejk.327.2019.09.11.22.59.46; Wed, 11 Sep 2019 22:59:46 -0700 (PDT) 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=a1izBfJN; 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 S1728947AbfILF7l (ORCPT + 27 others); Thu, 12 Sep 2019 01:59:41 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:40547 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725775AbfILF7k (ORCPT ); Thu, 12 Sep 2019 01:59:40 -0400 Received: by mail-pf1-f193.google.com with SMTP id x127so15237990pfb.7 for ; Wed, 11 Sep 2019 22:59:40 -0700 (PDT) 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=a1izBfJNPh0xpl62rBUom1TVz4AD5siG6EraiJHLvL4gUGp0cW8alx2ORZ9jzKbGFX xWVqVXev/nHzAR9H/cEc2LKR9JLK9zWH6tIwAT1lb2tISj+ZgqjofZOR/0iNeBECZ+BS ISy/kii4aozfEQv4ehzP1Rh7lrkusxFuiyJiIHyoj0SKN/QmGlgCB2U1T/hLXT+RwfrE OjtbsEXNz20nDjM751kbB4MqoXEIxqUq9mykMCgRPGxRnkJkL0PwVvQIHk1sCR/Sg/iX 26r3FUpGtVGk0UXhPg5W9g5oLCXS8RwCvpYAKtspZr+l8KYQFGoiKt+yEy4nJVAuVrfd UMLw== 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=lTjpc3DHGlyi5kNA/IK9iDRuz42Gc99QAiRSfz0/+g2ZrlsZ+ShPs4Fu4WIF83gxNT MCwyl1GP1lHWVeBHHYuhrqzTjdbT5qWUG0iBhgNJQa14ISEX8pwCckKB6nJXzsFSDSme MVIsFp8Y3xG9TsYAACsUYNnjnjKvLctAGBX5bM1I2dma8zAUQW3voXmThKVYNMjt0fF4 8lD/pLOvuxTN2aV+WZ8mhYXTZeGPHxh5jQ78lYhQjQ58EW7zn8Rsw6RMkJ/qfu80KhSs IRonuzKI44cDluSafl49/aM3Wz8PEKjfpolRaYfP2DWu240XJyVgBvHQ7trGxUJ8rU0e 9fOQ== X-Gm-Message-State: APjAAAUB58vDX37LqWCWLBUzLp7QQ22y2T0tIjnq0kSKRE3ODTnwh3v3 VslVYWnaZVJpgS0CIyvwVcJ6RmuVOaw= X-Received: by 2002:aa7:9a48:: with SMTP id x8mr45589514pfj.201.1568267980014; Wed, 11 Sep 2019 22:59:40 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id x9sm11590512pje.27.2019.09.11.22.59.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Sep 2019 22:59:39 -0700 (PDT) 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 1/3] libfdt: define UINT32_MAX in libfdt_env.h Date: Thu, 12 Sep 2019 15:01:48 +0900 Message-Id: <20190912060150.10818-2-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190912060150.10818-1-takahiro.akashi@linaro.org> References: <20190912060150.10818-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)