On 10/3/24 23:27, Rasmus Villemoes wrote:
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 <r...@prevas.dk>

Reviewed-by: Stefan Roese <s...@denx.de>

Thanks,
Stefan

---
  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 7ef536f4b5d..233bd9145c6 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 665ba6f152e..329802fd827 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 ffe2c5cd964..ea555ff33eb 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>

Viele Grüße,
Stefan Roese

--
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: s...@denx.de

Reply via email to