From patchwork Fri Nov 22 10:27:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 179961 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp15178ilf; Fri, 22 Nov 2019 02:33:49 -0800 (PST) X-Google-Smtp-Source: APXvYqy3DCYtgg21vjvd4iSjDNTU991TTeCAjT8iRp34Uu/FXzMrVT4vnz2QOPV/JyqZsTDWFEw5 X-Received: by 2002:a17:906:3f8a:: with SMTP id b10mr21032981ejj.315.1574418829635; Fri, 22 Nov 2019 02:33:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574418829; cv=none; d=google.com; s=arc-20160816; b=foVIePzBxAoGnqG5R2MPRZNEMYX/Iepxgl16vCH8a6hibq+qxmjtHmjq3uNj8JtbNy joEf0PhQMScCMt3i3d+AnQEMYIEY1utvfJc0+scYNvd6LFqBlRRI5j9CLoQAoLm+qEin hlFMeVzZzRZhKkEDnr4rdDN1/GpvXgweDKXO/nDzxopb1XiSN2fbCT+rYskW4TKslSFB 12LR8YcFhq5nu4GzM23LQ9Q1VFTt3jco1WT7LgfWk6q6bLUKuUVveztKRJ80/EYfKW8p /1tLq5CFIqpFlqlf2DI4gaGNn8dhxn1kNhxdfw03Xi1HtsMKUFbfF3z7QjuW41R0ay0E sKQQ== 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=F+IAPf9l426kHOT2/n2/fhKQ5Cgw4jsq5pd/7xJcqu7n6sHvMs8ruIQsAOqJGPmkb9 LcgrUiMCLVGR0m+Ndizt7zGogRILH93l5bqjHcvuh3FGl9kIUo0/ewHWzmha98iIR4Cc dDeY2afuVqVAejVMeI5ofhNQK5KEjB/ynpp9txUlCSXqO97vE10d1P/CJ1k3fWw0nzIM 6Nu6QseQudj5KPgRogsn+W9y0KsYnkdHO3InQkYBFulum4njIO8dVh/TisW+DacBHap4 kI1GGnHExPIh9r/aNz7xJb+W/7TTh2r/hMpN2CvuoJzlJGZcMp3fDxMsLAGhdyKtP3kO IzNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FwZjmDhq; 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 14si1997016edz.130.2019.11.22.02.33.49; Fri, 22 Nov 2019 02:33: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=FwZjmDhq; 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 S1727993AbfKVKdq (ORCPT + 26 others); Fri, 22 Nov 2019 05:33:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:56822 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727976AbfKVKdm (ORCPT ); Fri, 22 Nov 2019 05:33: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 6C02720708; Fri, 22 Nov 2019 10:33:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574418821; bh=0K5Le4/yUVvQ+7LVnDH2eIxwNTpwnAm+e6EkDjNqOyY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FwZjmDhqYV+rgw2kcZLQWnPHu+66eFQ35Z27AbL3SsoGImpjiy2EXlxe6h5tlp/JP eIzSqJ+eKbNd6GhpWLOCtL4EBPE1u2Yb/a+fWbz8/J1WrRaEjj4bP81hh10cnBZ9Af 4nK1P7o3QSq0uJcG78mjZfk8iSyN/8eEOuRfAdrE= 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.4 062/159] libfdt: Ensure INT_MAX is defined in libfdt_env.h Date: Fri, 22 Nov 2019 11:27:33 +0100 Message-Id: <20191122100752.929251532@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191122100704.194776704@linuxfoundation.org> References: <20191122100704.194776704@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