diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2019-10-01 08:28:52 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-10-02 08:48:03 +0200 |
commit | 00dc4d90b9486ffc443c66625c6c7e30514174f8 (patch) | |
tree | d2f37914918e13333f03d0cba083fc9b105199f1 /include/linux | |
parent | 24a86556e3f48341c33d69d79de9db6a48acee47 (diff) | |
download | barebox-00dc4d90b9486ffc443c66625c6c7e30514174f8.tar.gz barebox-00dc4d90b9486ffc443c66625c6c7e30514174f8.tar.xz |
lib: fdt: define INT32_MAX for in-barebox use
The upcoming v1.5.1 version of libfdt adds a dependency on the C99
INT32_MAX symbol.
This is ok for use in the host tool, but libfdt can also be embedded
into barebox, where it would fail as we don't define this anywhere.
Fix this by providing an appropriate definition.
Reported-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/libfdt_env.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/libfdt_env.h b/include/linux/libfdt_env.h index edb0f0c309..bac4670d6d 100644 --- a/include/linux/libfdt_env.h +++ b/include/linux/libfdt_env.h @@ -16,4 +16,6 @@ typedef __be64 fdt64_t; #define fdt64_to_cpu(x) be64_to_cpu(x) #define cpu_to_fdt64(x) cpu_to_be64(x) +#define INT32_MAX 2147483647 + #endif /* LIBFDT_ENV_H */ |