diff mbox series

[U-Boot,RFC,2/3] u-boot/sha256.h: include linux/types.h

Message ID 20190918220140.838-3-rasmus.villemoes@prevas.dk
State RFC
Delegated to: Tom Rini
Headers show
Series collect entropy, populate /chosen/rng-seed | expand

Commit Message

Rasmus Villemoes Sept. 18, 2019, 10:01 p.m. UTC
One cannot use sha256.h by itself - the includer must already have
made sure that uint32_t and friends are defined; i.e., having included
linux/types.h either directly or indirectly. That's a little annoying,
so just make the header self-contained.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
---
 include/u-boot/sha256.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/include/u-boot/sha256.h b/include/u-boot/sha256.h
index 10f42091ee..9e16b9715e 100644
--- a/include/u-boot/sha256.h
+++ b/include/u-boot/sha256.h
@@ -1,6 +1,8 @@ 
 #ifndef _SHA256_H
 #define _SHA256_H
 
+#include <linux/types.h>
+
 #define SHA256_SUM_LEN	32
 #define SHA256_DER_LEN	19