Skip to content
Snippets Groups Projects
Commit 86598953 authored by Simon Glass's avatar Simon Glass
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent 73b6e6ad
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
......@@ -10,6 +10,7 @@
#define LIBFDT_ENV_H
#include <linux/string.h>
#include <linux/kernel.h>
#include <asm/byteorder.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment