]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
lib/sha*.c: Update header list
authorTom Rini <trini@konsulko.com>
Thu, 14 Dec 2023 18:16:53 +0000 (13:16 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 21 Dec 2023 13:54:37 +0000 (08:54 -0500)
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>
lib/sha1.c
lib/sha256.c
lib/sha512.c

index 8d07407893492be9c7c0f0093381638d443df16f..7ef536f4b5dbf1b146bad8b7ed61ed335e3dd147 100644 (file)
 #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>
index 4d26aea1c8ceb2bf9dbe41dd86205c28a953952c..665ba6f152e5aeeb582abfaef4750e82e54905c2 100644 (file)
@@ -6,12 +6,9 @@
  */
 
 #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/sha256.h>
 
 #include <linux/compiler_attributes.h>
index fbe8d5f5bfe93265cfcefb14db636b2f42a2c3d7..ffe2c5cd9642b32ac36b9a78bfca8697c87007ef 100644 (file)
  */
 
 #ifndef USE_HOSTCC
-#include <common.h>
-#include <linux/string.h>
-#else
-#include <string.h>
+#include <cyclic.h>
 #endif /* USE_HOSTCC */
 #include <compiler.h>
-#include <watchdog.h>
 #include <u-boot/sha512.h>
 
 const uint8_t sha384_der_prefix[SHA384_DER_LEN] = {