Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1149809imm; Thu, 13 Sep 2018 13:33:35 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZrKR2TyCilKMVpwp6LbHAu1nNeA9JgPloMDk3JJRBGuX1ALo84nX/i0KjN1q15IBknmK7l X-Received: by 2002:a17:902:4401:: with SMTP id k1-v6mr8549730pld.97.1536870815885; Thu, 13 Sep 2018 13:33:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536870815; cv=none; d=google.com; s=arc-20160816; b=hz2VLweUy04sCN/HkKUDZ56LxWYEDlm01kc+P+5/w5GlB2iFqdcnhPOi6g8xjMSqP+ AEkciwWOfDHFBHKDb0A5cd2GCYzl4tR2JchJmEFE+d5wPidWX8ND+vIUMEKoFRdoghAn pg3DU2N2DsEFIL6gOB+XypCWutb9joMj/hVoLLAwFZwgKP1BC747ksiCwd5IpORy+U4Z 07EZu4NGM7KVaOQ56N+ZBEmX8J8/Pq0UAeUrMMfcRRVLQd0+0jojTlvDZ+/CEucL4nrm wLe6o8FIYFvqW1VmJyEew2Bey0tUvub+lj+Mh30WNkJ+jtDJ58o/I2nB45IZ8MQzraxt q+sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=Ine3I2LJVb7aK1NudtLxCUAku4mC991Izt/kipSue3A=; b=mdrCbcp60njPMtVZD0XEHnMx+qhFLJPd5t+mCtvFLWGG6Yx7J8ZEAwGAqcqNuo3Soj 9E5ju8/Va/ErNBTOGriNQGZuR0oXaCNK3lfkWYCzWuSneCOc6tEm98Hofl1hzLZ9XJwM cjArT/+J/hr0mhutqKIeTbdOMfYWU1Nqure/c157LC2rQWJwMHSQ77fzQ4rXh8VRa6LR 4FVi/pQ/WH45dmXAeFj+HKAFoIzUDpAj4ZNSnCkFowGA2uEplurHUO6SSOjFgUmv2xBM rKP9qv350K1oYIPBABDAADwrIQFP9V0dsMXHv6GdS36I1dhQ0G0JJF3YAoJB00QZu7x4 EPBw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c17-v6si4740621pgg.628.2018.09.13.13.33.20; Thu, 13 Sep 2018 13:33:35 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727693AbeINBjg (ORCPT + 99 others); Thu, 13 Sep 2018 21:39:36 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:35899 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726445AbeINBjf (ORCPT ); Thu, 13 Sep 2018 21:39:35 -0400 Received: by mail-oi0-f65.google.com with SMTP id r69-v6so10750135oie.3; Thu, 13 Sep 2018 13:28:31 -0700 (PDT) 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; bh=Ine3I2LJVb7aK1NudtLxCUAku4mC991Izt/kipSue3A=; b=hMSigNknvbB1iR9XLhAVVP9VGu7pztdVHwUC8Lsd9i0GQtP5kvzBVlSxFVaFG2TxSA GXBAOML4Kxqr3TnGgG7PhL5KMHc60ELeLG6FFOtxcwTENqn79OgE55l864jcOqKuvcic XkTMAW/p9DiD/52s/2MuGhjoAugOTHaAl4UkUT6AIhdTflppLyIdD5IwFi94ScIHzEYJ R8kj4LM35dymrBNts0/WaYLlBw3eCQBw65mh4Tk1A95YJid6qTUtW2JcGGF0DfTVoEbk NYjDYaoFDUTVu6uOVekUNYjmoQTAdjx3scoNS7OoEbU+GEl5cE/GgEIADJsENnYU31qw mP8Q== X-Gm-Message-State: APzg51BtH95pv9rH3SgZF2u3OkSmH2F2HevwS1hNM+A9YtCDKHNcPRIV QQp4xBVIlcbA+y1NdTxjQYAJ1zQ= X-Received: by 2002:aca:34d6:: with SMTP id b205-v6mr7234040oia.77.1536870510427; Thu, 13 Sep 2018 13:28:30 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id h34-v6sm756745otb.71.2018.09.13.13.28.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Sep 2018 13:28:29 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, Frank Rowand , Russell King , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Subject: [PATCH 1/3] libfdt: Ensure INT_MAX is defined in libfdt_env.h Date: Thu, 13 Sep 2018 15:28:26 -0500 Message-Id: <20180913202828.15372-1-robh@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The next update of libfdt has a new dependency on INT_MAX. Update the instances of libfdt_env.h in the kernel to either include the necessary header with the definition or define it locally. Cc: Russell King Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: linux-arm-kernel@lists.infradead.org Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob Herring --- arch/arm/boot/compressed/libfdt_env.h | 2 ++ arch/powerpc/boot/libfdt_env.h | 2 ++ include/linux/libfdt_env.h | 1 + 3 files changed, 5 insertions(+) diff --git a/arch/arm/boot/compressed/libfdt_env.h b/arch/arm/boot/compressed/libfdt_env.h index 07437816e098..b36c0289a308 100644 --- a/arch/arm/boot/compressed/libfdt_env.h +++ b/arch/arm/boot/compressed/libfdt_env.h @@ -6,6 +6,8 @@ #include #include +#define INT_MAX ((int)(~0U>>1)) + typedef __be16 fdt16_t; typedef __be32 fdt32_t; typedef __be64 fdt64_t; diff --git a/arch/powerpc/boot/libfdt_env.h b/arch/powerpc/boot/libfdt_env.h index 2a0c8b1bf147..2abc8e83b95e 100644 --- a/arch/powerpc/boot/libfdt_env.h +++ b/arch/powerpc/boot/libfdt_env.h @@ -5,6 +5,8 @@ #include #include +#define INT_MAX ((int)(~0U>>1)) + #include "of.h" typedef unsigned long uintptr_t; diff --git a/include/linux/libfdt_env.h b/include/linux/libfdt_env.h index c6ac1fe7ec68..edb0f0c30904 100644 --- a/include/linux/libfdt_env.h +++ b/include/linux/libfdt_env.h @@ -2,6 +2,7 @@ #ifndef LIBFDT_ENV_H #define LIBFDT_ENV_H +#include /* For INT_MAX */ #include #include -- 2.17.1