From: Simon Glass Date: Sun, 27 Oct 2019 15:47:39 +0000 (-0600) Subject: fdt: Add INT32_MAX to kernel.h for libfdt X-Git-Tag: v2020.10~519^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=865989535038a2e5d11a18f2c3a67974f8328aee;p=platform%2Fkernel%2Fu-boot.git fdt: Add INT32_MAX to kernel.h for libfdt Unfortunately libfdt needs this value now, which is present in the stdint.h header. That file is just a placeholder in U-Boot and these sorts of constants appear in the linux/kernel.h header instead. To keep libfdt happy, add INT32_MAX too. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- diff --git a/include/linux/kernel.h b/include/linux/kernel.h index a85c15d..5c7e5f6 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -37,6 +37,8 @@ #define UINT32_MAX U32_MAX #define UINT64_MAX U64_MAX +#define INT32_MAX S32_MAX + #define STACK_MAGIC 0xdeadbeef #define REPEAT_BYTE(x) ((~0ul / 0xff) * (x)) diff --git a/include/linux/libfdt_env.h b/include/linux/libfdt_env.h index e49fcd7..148b908 100644 --- a/include/linux/libfdt_env.h +++ b/include/linux/libfdt_env.h @@ -10,6 +10,7 @@ #define LIBFDT_ENV_H #include +#include #include