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

Rasmus Villemoes rasmus.villemoes at prevas.dk
Wed Sep 18 22:01:53 UTC 2019


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 at prevas.dk>
---
 include/u-boot/sha256.h | 2 ++
 1 file changed, 2 insertions(+)

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



More information about the U-Boot mailing list