]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
lib/sha*: include u-boot/schedule.h instead of cyclic.h
authorRasmus Villemoes <ravi@prevas.dk>
Thu, 3 Oct 2024 21:27:58 +0000 (23:27 +0200)
committerStefan Roese <sr@denx.de>
Wed, 23 Oct 2024 04:52:38 +0000 (06:52 +0200)
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
lib/sha256.c
lib/sha512.c

index 81412283b490ca3b2ff87a70295029a3b738ec07..a9d6497c4ceb416868a2d6b5a1d686d8c389d77f 100644 (file)
@@ -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>
index 665ba6f152e5aeeb582abfaef4750e82e54905c2..329802fd82707e318e79426fefcd231df940829d 100644 (file)
@@ -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>
index ffe2c5cd9642b32ac36b9a78bfca8697c87007ef..ea555ff33eb1ddbc9f67470bf699fb6dd767dd81 100644 (file)
@@ -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>