Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

libfdt: Ensure INT_MAX is defined in libfdt_env.h

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 <linux@armlinux.org.uk>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Rob Herring <robh@kernel.org>

+5
+2
arch/arm/boot/compressed/libfdt_env.h
··· 6 6 #include <linux/string.h> 7 7 #include <asm/byteorder.h> 8 8 9 + #define INT_MAX ((int)(~0U>>1)) 10 + 9 11 typedef __be16 fdt16_t; 10 12 typedef __be32 fdt32_t; 11 13 typedef __be64 fdt64_t;
+2
arch/powerpc/boot/libfdt_env.h
··· 5 5 #include <types.h> 6 6 #include <string.h> 7 7 8 + #define INT_MAX ((int)(~0U>>1)) 9 + 8 10 #include "of.h" 9 11 10 12 typedef unsigned long uintptr_t;
+1
include/linux/libfdt_env.h
··· 2 2 #ifndef LIBFDT_ENV_H 3 3 #define LIBFDT_ENV_H 4 4 5 + #include <linux/kernel.h> /* For INT_MAX */ 5 6 #include <linux/string.h> 6 7 7 8 #include <asm/byteorder.h>