From patchwork Fri Nov 22 10:27:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 180046 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp76614ilf; Fri, 22 Nov 2019 03:24:24 -0800 (PST) X-Google-Smtp-Source: APXvYqzUiNoebRB7SyriHSy7w2EuWRsslJf+CjuMqXtDM7CGxJ5lPOJl1SRLxh0osox0tEukT32H X-Received: by 2002:a17:906:3107:: with SMTP id 7mr2199563ejx.125.1574421769200; Fri, 22 Nov 2019 03:22:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574421769; cv=none; d=google.com; s=arc-20160816; b=dC5HsSbQOexBGDMJifklmbs5aDd6tkg344YAlH4uegfsF6SgFhPK3QPNZhXoG98/cF ThF5Hqq39NEsRnA1SmDlQmYiJ1D21go05Z3Un+XkZ3xccdiN77UGF1UHWFfPiRiEm7Rk 6vn8DCOd81bheZ7mOeuB1Tt0Ok8uzi7y1z815lprRSZs9kLbghG5Q7dcF5ERLWcFnLEW 55yW6/1rURDwm4Cq8QkVfCKDZeaMSq9e/hOUNx7eEB+D0IXfw/fPqs5ZaoyQMSzrJgmc YH8Mo4R/qZkF1oC7MgcWA/PNyhNtxyqnSFV0l+K45tv06w6FXpiE/OZ5F0q3l8kQFK/s i6iQ== 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=Sm6VYi+yMmk2HqjoRa97AC4aNmnfR18DmcmdzyQ9EeU=; b=EKin5Gc7wyw8eN5rOUrga2Owg/YsHZ0VJXF9TYozGpFoyv/ZCgU/BFhxVVMa5Ehwzd aqjDYQAWSvm8p+k1cKko4UznbpeesBSKrV55n87vc/1lU8RfSqYNI2Kfcc/ZlRtiiaGb 9zgdsui0AZYI8of44RCJiPm3r3fKBjZ8G3mmUjloNbt4VcOHInxGZaxg3YEGC2hhW+tF VTI3iploBui+Cl5M015Xtr8xJQ1DX5PjMd11Gz259X2b80q3IdzvZwLFv7CJP/+UWqvh aFm22ndO/FaLaUQHi8pLcba1g9api19T9FgD6E5AZNa14Quf8apV7L40Piv145qHsMXR 46nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GmVoWriA; 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 n13si3542799ejs.104.2019.11.22.03.22.48; Fri, 22 Nov 2019 03:22:49 -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=GmVoWriA; 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 S1729694AbfKVLWp (ORCPT + 26 others); Fri, 22 Nov 2019 06:22:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:48006 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727747AbfKVKmm (ORCPT ); Fri, 22 Nov 2019 05:42:42 -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 D346620715; Fri, 22 Nov 2019 10:42:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574419362; bh=0K5Le4/yUVvQ+7LVnDH2eIxwNTpwnAm+e6EkDjNqOyY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GmVoWriA4/3Or6+UrMP+p5w9iaxkChr+mtIdURb3Lrd/TO96zRtL4ORY1A3uzD3NU fOKbVpUXRMIMzV0dUq+eFoebi9+JRw+B+xbMio/l7DLlVVJ7/Futlu/Tnc4gwdDTrs IW51hTex6mb6WscKaazzZYMwgnYXhajAwuT/DvDU= 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.9 087/222] libfdt: Ensure INT_MAX is defined in libfdt_env.h Date: Fri, 22 Nov 2019 11:27:07 +0100 Message-Id: <20191122100909.853136152@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191122100830.874290814@linuxfoundation.org> References: <20191122100830.874290814@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 17ae0f3efac8e..005bf4ff1b4cb 100644 --- a/arch/arm/boot/compressed/libfdt_env.h +++ b/arch/arm/boot/compressed/libfdt_env.h @@ -5,6 +5,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 7e3789ea396b8..0b3db6322c793 100644 --- a/arch/powerpc/boot/libfdt_env.h +++ b/arch/powerpc/boot/libfdt_env.h @@ -4,6 +4,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 2a663c6bb4285..8850e243c9406 100644 --- a/include/linux/libfdt_env.h +++ b/include/linux/libfdt_env.h @@ -1,6 +1,7 @@ #ifndef _LIBFDT_ENV_H #define _LIBFDT_ENV_H +#include /* For INT_MAX */ #include #include