From 739403f222420a2fade2f939d001f51da473b6af Mon Sep 17 00:00:00 2001 From: "Rob Herring (Arm)" Date: Mon, 11 Aug 2025 08:04:16 -0500 Subject: [PATCH] libfdt: Drop including string.h from libfdt_internal.h 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) Message-ID: <20250811130416.2653959-1-robh@kernel.org> Reviewed-by: Simon Glass Signed-off-by: David Gibson --- libfdt/libfdt_internal.h | 1 - 1 file changed, 1 deletion(-) 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 -#include #define FDT_ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1)) #define FDT_TAGALIGN(x) (FDT_ALIGN((x), FDT_TAGSIZE))