Re: [PATCH] libfdt: Drop including string.h from libfdt_internal.h
David Gibson <[email protected]>
| Newsgroups | org.kernel.vger.devicetree-compiler |
|---|---|
| Message-ID | <aJvqii1Eqpo_nj8z@zatzit> |
On Mon, Aug 11, 2025 at 08:04:16AM -0500, Rob Herring (Arm) wrote:
> 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) <[email protected]>
Ouch, should have spotted that on review, sorry.
Fix merged.
> ---
> libfdt/libfdt_internal.h | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/libfdt/libfdt_internal.h b/libfdt/libfdt_internal.h
> index 773bba87bc6e..b60b5456f596 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))
--
David Gibson (he or they) | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you, not the other way
| around.
http://www.ozlabs.org/~dgibson
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEO+dNsU4E3yXUXRK2zQJF27ox2GcFAmib6oUACgkQzQJF27ox 2GdaHw/+K7Fu0JeJOhCnC/ll78fYy+xZ4bRlWCbOHNZ+UtMxc6KnG3kyV95b2uXq RyUJBYiNes8itmjSvPdBA7kvfeFHhoduftrZ8UWd1w6z7Vy8WbnlWIm8X72aByRR OvMggJxIl0kj4pMkkN+XHm+7zZ6cJ4Ba4sz5/7PB8STC0XRguZaCtsZxjFxs3TEw rfqIUEXOw8rqgtiWdh4l43J05bgg6wm3ATAtk4NBzbSCfOLYptcjsLw9vHlBfcJ/ G0QbMgNt0KBO1UoaOgjhIaPLRGxxmW+1qenay5oda+jL6IQ3rZVE0yXmdO4trgOi Mg2JO2vc3MzvUGTC3zRCLiXTMtxFclK+oEv9SngYZynD9KZkqhqMof325Fq1NipU qPfboRNzNtIJ4UusG9bh0GXIYtHztgrTea+xncx8UKv8RA/IndCVjqa91f1c7cLI bhfWR9TP0A5DJ2+7VAk7iu8UfM/nu+xAtbnMfRVrl1XEAfdwuE4fhLsO3fJ29aq0 +y6PNCvKZzdrsJ5V9qkBt3BFk+uwiOw8ADlWhQGXrBH1+VZG7A4wcDapiXt0eIIh 36i8k9Lbs4bFdMBDkpi1ozj+cFGd0oCdnyeJHGZUlQa0dA4UN6qnGIlFziyjtJmI 68bcs5TrdOxwl3e5AyoeqpcPYj1YAtmVxmVSeO3hzqChn20aT4k= =U0Bm -----END PGP SIGNATURE-----