]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/arm/boot/compressed/libfdt_env.h
libfdt: Ensure INT_MAX is defined in libfdt_env.h
[mirror_ubuntu-bionic-kernel.git] / arch / arm / boot / compressed / libfdt_env.h
index 07437816e0986876079aa64e9ae6450c2d45d763..b36c0289a308ea22e9dd6ebb1458aef28da74c21 100644 (file)
@@ -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;