From patchwork Tue Nov 19 05:19:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 179704 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp170987ilf; Mon, 18 Nov 2019 21:52:26 -0800 (PST) X-Google-Smtp-Source: APXvYqyVip4cGut4n9AOxLZHCZyjRs8lWRMSFdZJ7Yzb7tof/6isD12yb1nIKgkzQzA3jHbBF8Vr X-Received: by 2002:a17:906:9458:: with SMTP id z24mr31758496ejx.289.1574142631316; Mon, 18 Nov 2019 21:50:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574142631; cv=none; d=google.com; s=arc-20160816; b=XoqDHUqrT4TIiYKHBpmfFCfAsMUYorlsbLBmnM8SCH7VgL7QsfNIbUi7VJCRLY2Y+G 6b2k15HsDgoNvndDyD+1Ek3ux/3Y3JShrO2AJ44xhoCZ7ko/maUgVkXUPDmEKe3Q7+RD xBKzrRC/0jHk1GtCZxkczf1Iud2jDc1rfDl2KJIJxgV7VhFL3NlpNNlXDFS1X1B6wIof w0xAjesTy76Xeiv08eFrEzK2r8Vvjs6QsAqGhs1dBt/H+QlFaFFoOFzs2C2j7LytA4vs 18vxl2AIH1WPDUJd0G+Px3u1nit5cFFcjco67cJ3n9uvIxdd95slkt4BppUBn/DCwNc/ QvCg== 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 gu7si13277786ejb.405.2019.11.18.21.50.31; Mon, 18 Nov 2019 21:50:31 -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 S1731636AbfKSFua (ORCPT + 26 others); Tue, 19 Nov 2019 00:50:30 -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 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(+) -- 2.20.1 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