From ed8a807df87eae2f3c1a41f9b2d4b3e0191648db Mon Sep 17 00:00:00 2001 From: Rasmus Villemoes <ravi@prevas.dk> Date: Thu, 3 Oct 2024 23:27:58 +0200 Subject: [PATCH] lib/sha*: include u-boot/schedule.h instead of cyclic.h These library routines obviously do not make use of the cyclic_register() etc. API, but do need to call schedule(). Include the proper header. Eventually, their ifdef logic should be updated to avoid talking about CONFIG_WATCHDOG. Signed-off-by: Rasmus Villemoes <ravi@prevas.dk> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Stefan Roese <sr@denx.de> --- lib/sha1.c | 2 +- lib/sha256.c | 2 +- lib/sha512.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/sha1.c b/lib/sha1.c index 81412283b4..a9d6497c4c 100644 --- a/lib/sha1.c +++ b/lib/sha1.c @@ -17,7 +17,7 @@ #endif #ifndef USE_HOSTCC -#include <cyclic.h> +#include <u-boot/schedule.h> #endif /* USE_HOSTCC */ #include <string.h> #include <u-boot/sha1.h> diff --git a/lib/sha256.c b/lib/sha256.c index 665ba6f152..329802fd82 100644 --- a/lib/sha256.c +++ b/lib/sha256.c @@ -6,7 +6,7 @@ */ #ifndef USE_HOSTCC -#include <cyclic.h> +#include <u-boot/schedule.h> #endif /* USE_HOSTCC */ #include <string.h> #include <u-boot/sha256.h> diff --git a/lib/sha512.c b/lib/sha512.c index ffe2c5cd96..ea555ff33e 100644 --- a/lib/sha512.c +++ b/lib/sha512.c @@ -11,7 +11,7 @@ */ #ifndef USE_HOSTCC -#include <cyclic.h> +#include <u-boot/schedule.h> #endif /* USE_HOSTCC */ #include <compiler.h> #include <u-boot/sha512.h> -- 2.39.5