dtc: Update VERSION

This commit is contained in:
Sebastian Huber
2025-02-15 16:44:24 +01:00
committed by Joel Sherrill
parent f85c80bb82
commit 7d59c6e03c

View File

@@ -2,32 +2,23 @@ Import from:
git://git.kernel.org/pub/scm/utils/dtc/dtc.git git://git.kernel.org/pub/scm/utils/dtc/dtc.git
commit 2cd89f862cdb04d91c5d59c5b39647f7d5d5b3b8 commit 755db115355b101dea144eca5c272fdfa15e900f
Author: David Gibson <david@gibson.dropbear.id.au> Author: Ayush Singh <ayush@beagleboard.org>
Date: Mon Nov 21 14:18:44 2022 +1100 Date: Thu Dec 5 10:21:06 2024 +0530
dtc: Warning rather than error on possible truncation of cell values libfdt: Add fdt_setprop_namelen_string()
We always evaluate integer values in cell arrays as 64-bit quantities, then Macro using fdt_setprop_namelen() internally similar to
truncate to the size of the array cells (32-bit by default). However to `fdt_setprop_string()`.
detect accidental truncation of meaningful values, we give an error if the
truncated portion isn't either all 0 or all 1 bits. However, this can
still give counterintuitive errors. For if the user is thinking in 2's
complement 32-bit arithmetic (which would be quite natural), then they'd
expect the expression (-0xffffffff-2) to evaluate to -1 (0xffffffff).
However in 64-bit it evaluates to 0xfffffffeffffffff which does truncate
to the expected value but trips this error message.
Because of this reduce the error to only a warnings, with a somewhat more
helpful message.
Fixes: https://github.com/dgibson/dtc/issues/74
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Ayush Singh <ayush@beagleboard.org>
Message-ID: <20241205-setprop-namelen-v2-4-0d85a3d2e7b1@beagleboard.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Commands to generate update patches: Commands to generate update patches:
git format-patch 2cd89f862cdb04d91c5d59c5b39647f7d5d5b3b8 -- libfdt/fdt_addresses.c libfdt/fdt.c libfdt/fdt_empty_tree.c libfdt/fdt.h libfdt/fdt_ro.c libfdt/fdt_rw.c libfdt/fdt_strerror.c libfdt/fdt_sw.c libfdt/fdt_wip.c libfdt/libfdt_env.h libfdt/libfdt.h libfdt/libfdt_internal.h libfdt/TODO git format-patch 755db115355b101dea144eca5c272fdfa15e900f -- libfdt/fdt_addresses.c libfdt/fdt.c libfdt/fdt_empty_tree.c libfdt/fdt.h libfdt/fdt_ro.c libfdt/fdt_rw.c libfdt/fdt_strerror.c libfdt/fdt_sw.c libfdt/fdt_wip.c libfdt/libfdt_env.h libfdt/libfdt.h libfdt/libfdt_internal.h libfdt/TODO
sed -i 's%/libfdt/fdt.h%/cpukit/include/fdt.h%g' 00* sed -i 's%/libfdt/fdt.h%/cpukit/include/fdt.h%g' 00*
sed -i 's%/libfdt/libfdt.h%/cpukit/include/libfdt.h%g' 00* sed -i 's%/libfdt/libfdt.h%/cpukit/include/libfdt.h%g' 00*
sed -i 's%/libfdt/libfdt_env.h%/cpukit/include/libfdt_env.h%g' 00* sed -i 's%/libfdt/libfdt_env.h%/cpukit/include/libfdt_env.h%g' 00*