From: Tom Rini Date: Thu, 14 Dec 2023 18:16:53 +0000 (-0500) Subject: lib/sha*.c: Update header list X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=bc9c7ccc87bee1659a586171eeb19c7474023095;p=u-boot.git lib/sha*.c: Update header list Cleanup the list of headers we include here. For the tools build we only need to exclude as that's used by the target build for the prototype for schedule(), and we don't need to get that via . We can also make use of our intentionally existing as a redirection to to reduce ifdef'd lines. Reviewed-by: Simon Glass Signed-off-by: Tom Rini --- diff --git a/lib/sha1.c b/lib/sha1.c index 8d07407893..7ef536f4b5 100644 --- a/lib/sha1.c +++ b/lib/sha1.c @@ -17,12 +17,9 @@ #endif #ifndef USE_HOSTCC -#include -#include -#else -#include +#include #endif /* USE_HOSTCC */ -#include +#include #include #include diff --git a/lib/sha256.c b/lib/sha256.c index 4d26aea1c8..665ba6f152 100644 --- a/lib/sha256.c +++ b/lib/sha256.c @@ -6,12 +6,9 @@ */ #ifndef USE_HOSTCC -#include -#include -#else -#include +#include #endif /* USE_HOSTCC */ -#include +#include #include #include diff --git a/lib/sha512.c b/lib/sha512.c index fbe8d5f5bf..ffe2c5cd96 100644 --- a/lib/sha512.c +++ b/lib/sha512.c @@ -11,13 +11,9 @@ */ #ifndef USE_HOSTCC -#include -#include -#else -#include +#include #endif /* USE_HOSTCC */ #include -#include #include const uint8_t sha384_der_prefix[SHA384_DER_LEN] = {