Message ID | 20191119051416.483788543@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp183174ilf; Mon, 18 Nov 2019 22:05:09 -0800 (PST) X-Google-Smtp-Source: APXvYqxpSepn6UC3RXi5PXXBg0x9qhKiaoFX+BRd+zwC6y8wc7O7bgYlxYntJsQzHHwGslLC80qf X-Received: by 2002:a17:906:7708:: with SMTP id q8mr19639388ejm.33.1574143509357; Mon, 18 Nov 2019 22:05:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574143509; cv=none; d=google.com; s=arc-20160816; b=T2ayMkGvtk5LNf7rCjAsEFBRgqsJxiIBFp7dEa31EO1RUunegQWK5K852FjqLtK0qq 7UUMEkBcQmTu+gRbyfHgYdM9B2AiKOPLa3QChBVOvvqzOeVRPa4u1RCOPhp7QE5W/PkR 4X5Jk6LGuGFY1vQh7Lrq+ijoty/zoG3EfG9IuFfJXN6VvIU+pNnm8RKZR8mbevKdXkEk PKXFYIUWyk/mZEFb9/Tjo2C5QBdmiSp3G0vw/8MU9JLYsyr/TqUoC2m38NyIlp+6GLza lO1IznOLSeTTz4oYxWapkTikW9iDi9UkI7KBsuc/7k9C3M6ZXcmtxZyVcYSfA5C02z1C MNbg== 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=rRjuQbXmpvuHTli/y1cC6dikMzTlrDz/TTdoYCxbaRQ=; b=Z5oZQLD0vDLEly77WEItDTHXKc+EW+HVzCY01WH6A8vNuCDZEl9GzN4DpUC3sqnBGd 8Y9jyXaIulo9nRO6jCl33Aw64ssQdCXrSq6YthIIGOtMAHFTlgtQpKzLH6dd91l4q3qQ IwI6a/OfdF94FBTifJHqolaSCW22phJXcJsY55qcQPiBc1CfquOfo5KqEL3L+Cpx0gcR x9WFQFemhODFvomtq6BUbdKaRaubD1qLLG8phGfMNf+4m0F3/s1NHI81pmxy9/EAJcUF Fh7Fgv2q8neBSHQaMXKr4bTjQqabUqqkUnc4iUqc97iy8DgXE04e/VxuiBsshJi6cCks wNgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=N3A6S7+F; 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: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6si13987576edg.76.2019.11.18.22.05.08; Mon, 18 Nov 2019 22:05:09 -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=N3A6S7+F; 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 S1730067AbfKSFhS (ORCPT <rfc822;lee.jones@linaro.org> + 26 others); Tue, 19 Nov 2019 00:37:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:59008 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727121AbfKSFhQ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 19 Nov 2019 00:37:16 -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 8A274214DE; Tue, 19 Nov 2019 05:37:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574141836; bh=tXpvznd+oBOZN2eCbwim3PFiLXJbR9UB2tAzNx1l3vY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N3A6S7+F8kv0/5jvnMOSUbMNIED0b+Ia6fS/jUgXuBISeRnpst9+/GTJQ+xZDMF8B Ls3lcRANN07DC4DS8VLHRkT4mhipqKDN7NO5AbW/E/XZEqUGySI/aF1q85YagIqfay N9IgHoZ0/daN2YOY++lsl8gNMpaW6oDLsCI6Vww4= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Russell King <linux@armlinux.org.uk>, Benjamin Herrenschmidt <benh@kernel.crashing.org>, Paul Mackerras <paulus@samba.org>, Michael Ellerman <mpe@ellerman.id.au>, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, Rob Herring <robh@kernel.org>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.19 270/422] libfdt: Ensure INT_MAX is defined in libfdt_env.h Date: Tue, 19 Nov 2019 06:17:47 +0100 Message-Id: <20191119051416.483788543@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191119051400.261610025@linuxfoundation.org> References: <20191119051400.261610025@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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
None
|
expand
|
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 <linux/string.h> #include <asm/byteorder.h> +#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 2a0c8b1bf1479..2abc8e83b95e9 100644 --- a/arch/powerpc/boot/libfdt_env.h +++ b/arch/powerpc/boot/libfdt_env.h @@ -5,6 +5,8 @@ #include <types.h> #include <string.h> +#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 c6ac1fe7ec68a..edb0f0c309044 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 <linux/kernel.h> /* For INT_MAX */ #include <linux/string.h> #include <asm/byteorder.h>