From patchwork Thu Sep 13 20:28:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 969534 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42B9Hs3Kj3z9s4V for ; Fri, 14 Sep 2018 06:30:01 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 42B9Hs22xszF3TK for ; Fri, 14 Sep 2018 06:30:01 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=209.85.218.66; helo=mail-oi0-f66.google.com; envelope-from=robherring2@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Received: from mail-oi0-f66.google.com (mail-oi0-f66.google.com [209.85.218.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 42B9G84XHLzF1RG for ; Fri, 14 Sep 2018 06:28:32 +1000 (AEST) Received: by mail-oi0-f66.google.com with SMTP id 13-v6so10775990ois.1 for ; Thu, 13 Sep 2018 13:28:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Ine3I2LJVb7aK1NudtLxCUAku4mC991Izt/kipSue3A=; b=QsNrmMscjP3wvOvnjIAUY+rCYgjMruaiXzsVJpOfOQX0fCWp3jNsVTwLkpQ7j6g/ej 4Pga/wiwwJ8sMDaSL+Vo5A7jAjEt4FWA73GI6rxz8M0wLnnn3yrUMRorxQdl2WNMzJdf OLClqrNfPh5B18/jlyAUGwdaVVwLAoUFQMimk65QfGZoBaHKOP505b9O+sjQ4Ztbq10L CbXoKitXPdDUL3H+DfnqNY7UIHEoS07Qyr848Wa09TMcJlR4J842CZ1rQMdRFjnUL1Mt GS5/XqfFqjnuQyVvZDsSI3kff9WJMDvd5bgr32zFTjKNfbq/v4oTy5kOz3RBg/aicgr0 p3Lw== X-Gm-Message-State: APzg51DbcgzGsFUWZEyMF4Mftae7jnAfdAg5QkpKmiVNJyNyHucY8v9x yUXudE/51edOUHIW0Wkm6U4Afl8= X-Google-Smtp-Source: ANB0VdbiVQ8tjfx43inyxqCDv7OPT84D3XcijC//KHFZ953VXzBHgQskJO7oga2wV/y0kzEIkUT4qw== X-Received: by 2002:aca:34d6:: with SMTP id b205-v6mr7234040oia.77.1536870510427; Thu, 13 Sep 2018 13:28:30 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id h34-v6sm756745otb.71.2018.09.13.13.28.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Sep 2018 13:28:29 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org Subject: [PATCH 1/3] libfdt: Ensure INT_MAX is defined in libfdt_env.h Date: Thu, 13 Sep 2018 15:28:26 -0500 Message-Id: <20180913202828.15372-1-robh@kernel.org> X-Mailer: git-send-email 2.17.1 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Paul Mackerras , Russell King , Frank Rowand , linux-arm-kernel@lists.infradead.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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 --- 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 07437816e098..b36c0289a308 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 2a0c8b1bf147..2abc8e83b95e 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 unsigned long uintptr_t; diff --git a/include/linux/libfdt_env.h b/include/linux/libfdt_env.h index c6ac1fe7ec68..edb0f0c30904 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