aboutsummaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2021-12-08 18:18:43 +1000
committerCédric Le Goater <clg@kaod.org>2021-12-09 11:09:01 +0100
commit301b3f782e4114988c87e2417fbfd1a60de75e24 (patch)
treefedcebeefbbf79d272d2fe6760c5a2c807ce8e9f /libc
parent10d50007fb289ed5a625aa3c195b3a953f1e64c1 (diff)
downloadskiboot-301b3f782e4114988c87e2417fbfd1a60de75e24.zip
skiboot-301b3f782e4114988c87e2417fbfd1a60de75e24.tar.gz
skiboot-301b3f782e4114988c87e2417fbfd1a60de75e24.tar.bz2
libfdt: sync to upstream dtc.git commit 45f3d1a095dd
sync to upstream dtc.git commit 45f3d1a095dd ("libfdt: overlay: make overlay_get_target() public") from previous upstream sync commit 243176c ("Fix bogus error on rebuild"). This mainly updates license headers, fixes one or two small bugs, sign mismatches, integer overflow, and cases of undefined behaviour, compile warnings for newer compilers, and introduces some checking options (which might be useful to speed up fdt operations on awan). The recipe for this patch is: $ cp ../dtc/libfdt/* libfdt/ $ git add libfdt/fdt_check.c $ rm libfdt/meson.build Then add the INT32_MAX define to libc/include/limits.h, and update libfdt/Makefile.inc and libfdt/README.skiboot. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'libc')
-rw-r--r--libc/include/limits.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/include/limits.h b/libc/include/limits.h
index bd67c7e..bfde963 100644
--- a/libc/include/limits.h
+++ b/libc/include/limits.h
@@ -32,5 +32,6 @@
#define CHAR_BIT 8
#define UINT32_MAX UINT_MAX
+#define INT32_MAX INT_MAX
#endif