aboutsummaryrefslogtreecommitdiff
path: root/libfdt
diff options
context:
space:
mode:
authorRob Herring (Arm) <robh@kernel.org>2025-08-11 08:04:16 -0500
committerDavid Gibson <david@gibson.dropbear.id.au>2025-08-13 11:09:10 +1000
commit739403f222420a2fade2f939d001f51da473b6af (patch)
treee0976b99f75042acc71f08db279d967211ed08a8 /libfdt
parent1c6c51e51b29a1c7204cb0e2085709ae7caa57af (diff)
downloaddtc-master.zip
dtc-master.tar.gz
dtc-master.tar.bz2
libfdt: Drop including string.h from libfdt_internal.hHEADmastermain
Commit 0f69cedc08fc ("libfdt_internal: fdt_find_string_len_()") added a string.h include to libfdt_internal.h which introduces a libc dependency which cannot be overridden. Environments without libc (e.g. Linux kernel) use a custom libfdt_env.h. string.h is already indirectly included in libfdt_env.h, so it can be dropped from libfdt_internal.h. Fixes: 0f69cedc08fc ("libfdt_internal: fdt_find_string_len_()") Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Message-ID: <20250811130416.2653959-1-robh@kernel.org> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'libfdt')
-rw-r--r--libfdt/libfdt_internal.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/libfdt/libfdt_internal.h b/libfdt/libfdt_internal.h
index 773bba8..b60b545 100644
--- a/libfdt/libfdt_internal.h
+++ b/libfdt/libfdt_internal.h
@@ -6,7 +6,6 @@
* Copyright (C) 2006 David Gibson, IBM Corporation.
*/
#include <fdt.h>
-#include <string.h>
#define FDT_ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1))
#define FDT_TAGALIGN(x) (FDT_ALIGN((x), FDT_TAGSIZE))