dtc/libfdt
David Gibson 040c1f7e29 libfdt: Revert accidental ABI breakage
Commit bdca8612 introduced the new fdt_setprop_namelen() and
fdt_setprop_placeholder_namelen() functions, making the existing
fdt_setprop() and fdt_setprop_placeholder() trivial inline wrappers around
them.  I failed to realise that replacing the existing functions with
(static) inlines breaks the library ABI.

Theoretically it's possible to have the functions available as both an
inline and a "real" symbol.  However, because they do need to call strlen()
before the lower level fdt function, these wrappers aren't quite as
trivial as they appear (inlining may not be zero cost).  So, instead revert
and keep the old functions as true functions.

Reported-by: David Runge <dave@sleepmap.de>
Fixes: bdca8612 ("libfdt: Add fdt_setprop_namelen()")
Link: https://github.com/dgibson/dtc/issues/184
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2026-05-28 11:52:59 +10:00
..
.gitignore Link tools and tests against libfdt shared library 2019-03-29 17:20:16 +11:00
Makefile.libfdt libfdt: rename libfdt-X.Y.Z.so to libfdt.so.X.Y.Z 2023-08-06 14:53:29 +10:00
TODO libfdt: Document most remaining functions 2025-08-01 11:34:18 +10:00
fdt.c libfdt: Verify alignment of sub-blocks in dtb 2026-01-28 12:14:09 +11:00
fdt.h Use __ASSEMBLER__ instead of __ASSEMBLY__ 2025-03-14 13:51:31 +11:00
fdt_addresses.c libfdt: fix an incorrect integer promotion 2021-11-17 12:22:53 +11:00
fdt_check.c libfdt: fdt_check_full: Handle FDT_NOP when FDT_END is expected 2026-03-04 19:26:24 +11:00
fdt_empty_tree.c libfdt: Replace GPL/BSD boilerplate/reference with SPDX tags 2019-06-21 21:06:10 +10:00
fdt_overlay.c Fix discarded const qualifiers 2026-01-10 18:55:38 +11:00
fdt_ro.c libfdt: Fix bugs with unchecked usage of fdt_num_mem_rsv() 2026-04-17 21:21:16 +10:00
fdt_rw.c libfdt: Revert accidental ABI breakage 2026-05-28 11:52:59 +10:00
fdt_strerror.c libfdt: Add ALIGNMENT error string 2021-08-02 12:21:53 +10:00
fdt_sw.c libfdt: fix UBSAN null pointer in fdt_property() 2026-05-20 11:35:03 +10:00
fdt_wip.c libfdt: libfdt_wip: Fix comparison warning 2020-10-02 10:30:07 +10:00
libfdt.h libfdt: Revert accidental ABI breakage 2026-05-28 11:52:59 +10:00
libfdt_env.h libfdt: Remove old MacOS strnlen workaround 2025-09-30 12:03:03 +10:00
libfdt_internal.h libfdt: Improve size savings in FDT_RO_PROBE slightly 2025-12-10 17:46:08 +11:00
meson.build meson: use override_find_program/override_dependency 2025-06-12 15:55:00 +10:00
sbom.cdx.json libfdt: Move the SBOM authors section 2024-11-20 16:16:57 +11:00
version.lds libfdt: Add fdt_setprop_namelen() 2024-12-06 16:42:25 +11:00