diff mbox series

lib: sha512: include "compiler.h"

Message ID 20210219023207.24429-1-elly.siew.chin.lim@intel.com
State Accepted
Commit 277b8799061df3b3aa242c5fee9b1cf6a40abe04
Delegated to: Tom Rini
Headers show
Series lib: sha512: include "compiler.h" | expand

Commit Message

Siew Chin Lim Feb. 19, 2021, 2:32 a.m. UTC
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>
---
 lib/sha512.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Simon Glass Feb. 20, 2021, 11:55 a.m. UTC | #1
On Thu, 18 Feb 2021 at 19:32, Siew Chin Lim
<elly.siew.chin.lim@intel.com> wrote:
>
> 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>
> ---
>  lib/sha512.c | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Simon Glass <sjg@chromium.org>
Tom Rini Feb. 25, 2021, 1:31 p.m. UTC | #2
On Fri, Feb 19, 2021 at 10:32:07AM +0800, Siew Chin Lim wrote:

> 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>

Applied to u-boot/master, thanks!
diff mbox series

Patch

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>