Skip to contentSkip to conversation

lib: sha512: include "compiler.h"

PATCH New Siew Chin Lim 3 participants 3 messages Feb 19, 2021 – Feb 25, 2021 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 lib/sha512.c | 1 +
 1 file changed, 1 insertion(+)
lib/sha512.c +1 -0
index f1e2acf0fb..35f31e3dc5 100644
@@ -16,6 +16,7 @@
 #else
 #include <string.h>
 #endif /* USE_HOSTCC */
+#include <compiler.h>
 #include <watchdog.h>
 #include <u-boot/sha512.h>
 
Signature · 1 line
2.13.0
#2 lore raw

PATCH 1/1 lib: sha512: include "compiler.h"

In reply to Siew Chin Lim
Quoted 5 lines · Siew Chin Lim

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

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210225/2eb3f862/attachment.sig>