capsule: FMP: Populate the image descriptor array from platform data
[platform/kernel/u-boot.git] / lib / sha512.c
index f1e2acf..a421f24 100644 (file)
@@ -16,6 +16,7 @@
 #else
 #include <string.h>
 #endif /* USE_HOSTCC */
+#include <compiler.h>
 #include <watchdog.h>
 #include <u-boot/sha512.h>
 
@@ -319,7 +320,6 @@ void sha384_csum_wd(const unsigned char *input, unsigned int ilen,
 
 #endif
 
-#if defined(CONFIG_SHA512)
 void sha512_starts(sha512_context * ctx)
 {
        ctx->state[0] = SHA512_H0;
@@ -380,4 +380,3 @@ void sha512_csum_wd(const unsigned char *input, unsigned int ilen,
 
        sha512_finish(&ctx, output);
 }
-#endif