diff options
author | Tom Rini | 2023-12-14 13:16:53 -0500 |
---|---|---|
committer | Tom Rini | 2023-12-21 08:54:37 -0500 |
commit | bc9c7ccc87bee1659a586171eeb19c7474023095 (patch) | |
tree | 37a021e9de1700bd4f44396168f4b67759ee0351 /lib/sha1.c | |
parent | 071cf2767f832ec89eff40a476903d4ac5240dcf (diff) |
lib/sha*.c: Update header list
Cleanup the list of headers we include here. For the tools build we only
need to exclude <cyclic.h> as that's used by the target build for the
prototype for schedule(), and we don't need to get that via
<watchdog.h>. We can also make use of our <string.h> intentionally
existing as a redirection to <linux/string.h> to reduce ifdef'd lines.
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'lib/sha1.c')
-rw-r--r-- | lib/sha1.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/sha1.c b/lib/sha1.c index 8d074078934..7ef536f4b5d 100644 --- a/lib/sha1.c +++ b/lib/sha1.c @@ -17,12 +17,9 @@ #endif #ifndef USE_HOSTCC -#include <common.h> -#include <linux/string.h> -#else -#include <string.h> +#include <cyclic.h> #endif /* USE_HOSTCC */ -#include <watchdog.h> +#include <string.h> #include <u-boot/sha1.h> #include <linux/compiler_attributes.h> |