From 277b8799061df3b3aa242c5fee9b1cf6a40abe04 Mon Sep 17 00:00:00 2001
From: Siew Chin Lim <elly.siew.chin.lim@intel.com>
Date: Fri, 19 Feb 2021 10:32:07 +0800
Subject: [PATCH] lib: sha512: include "compiler.h"

Include "compiler.h" in sha512.c. This is needed by 'cpu_to_be64' macro
that used in 'sha512_base_do_finalize' function.

Signed-off-by: Siew Chin Lim <elly.siew.chin.lim@intel.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---
 lib/sha512.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/sha512.c b/lib/sha512.c
index f1e2acf0fb..35f31e3dc5 100644
--- a/lib/sha512.c
+++ b/lib/sha512.c
@@ -16,6 +16,7 @@
 #else
 #include <string.h>
 #endif /* USE_HOSTCC */
+#include <compiler.h>
 #include <watchdog.h>
 #include <u-boot/sha512.h>
 
-- 
2.39.5