Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp139185ybc; Mon, 18 Nov 2019 22:01:54 -0800 (PST) X-Google-Smtp-Source: APXvYqySDczjl5RZSsIbrmRDdqx73Bd4+tm4649RBeTPDQU01VO9DXcV6YaJLGsflcx0/o9nUV1m X-Received: by 2002:a1c:e08a:: with SMTP id x132mr3491743wmg.146.1574143314098; Mon, 18 Nov 2019 22:01:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574143314; cv=none; d=google.com; s=arc-20160816; b=Izv01FOsOqncZVQ0XmwQ13vHo0OxN0W1BXhTwDemqPGYdspNP5tyENYgJyMUWXubBK tOnaLlJQveLLZRwEExvHCOV5HtnHZRkOlK02SxnD766m1amV1OyqJ/QoAjDyORmMXif3 FWKZ1QPNgnHhyfvMDeW1jhA3QjTiEpe3iFOXNvaHqFX1RvlQfXcCKGP00/48rcvsGUez iYyZVJSwNWJKxBweErXFCaIAqXx2n9tXiFZYAbrdSLe4iG2fpCXCqdzahys59JDHNbw7 6UQ+FSr4M8o/JYm4ucJmfqBQQhXjt96/ThU/NEXsdnNPNDT6l0FuZvImaCIaKY2LH8ys WeMA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tTwWRw1dq+LZsnrq2UbfTGhx4RyacB/iCXYxSZbasTI=; b=rIiwnaWq1hiSGJXWFOzgpaROcU2oLVnlA38efYln3se5unxW7BAJwkVr02CyMQfcIs CP++mMjUjkl6uh5KRUKjKhgun5SkGvaO/vL5yw9qi5HGOVeNf1QHj/Xe5+vrxP6YIwBi D7uGnnR3PPyBvsx5N4po/kqrS7/fos2TRyRzOwKRxZ1enrJ+ouZF3j4+umE3Qdtz6Uhk hs2+c/Gtt+I7eFXx5Jt22Z/0V3K7jfxE9HgKXE+k/rxAyctW8MnmlX6FEjiYLd6C5lDu gHtmziTarOmb/SE0HK4Wr080i68GS/CcgGPzzsMOJ3hfJkS8qxexmrWwA2dWTv6vdaz7 QJ3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BuQc1BM1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w47si15317049edd.326.2019.11.18.22.01.24; Mon, 18 Nov 2019 22:01:54 -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=@kernel.org header.s=default header.b=BuQc1BM1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731632AbfKSFu3 (ORCPT + 99 others); Tue, 19 Nov 2019 00:50:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:47476 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731626AbfKSFu1 (ORCPT ); Tue, 19 Nov 2019 00:50:27 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8136B214D9; Tue, 19 Nov 2019 05:50:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574142627; bh=yd/2s7NgD5N/H4tCXDGVVAgmUhkj7AtVXMSL9P/ctck=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BuQc1BM1I8/yu19XBJ4e9NwFPz2Etwu7iOf0sPt/oW+xKZ90hVBnV48nUzW8kFmin 0c7SRzTHRoeAUFP646uukjTgWH4xjRlKu/FBdzwEn4bdSVfN22y1NLL/VPj2ZgqbJK 1IxppL7+D6W6jWYWeM6NZmNh48EoG560b5Eoi3uI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Russell King , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, Rob Herring , Sasha Levin Subject: [PATCH 4.14 145/239] libfdt: Ensure INT_MAX is defined in libfdt_env.h Date: Tue, 19 Nov 2019 06:19:05 +0100 Message-Id: <20191119051332.226062838@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191119051255.850204959@linuxfoundation.org> References: <20191119051255.850204959@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rob Herring [ Upstream commit 53dd9dce6979bc54d64a3a09a2fb20187a025be7 ] 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 Signed-off-by: Sasha Levin --- 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 07437816e0986..b36c0289a308e 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 f52c31b1f48fa..39155d3b2cefa 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 u32 uint32_t; diff --git a/include/linux/libfdt_env.h b/include/linux/libfdt_env.h index 14997285e53d3..1aa707ab19bbf 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.20.1