summaryrefslogtreecommitdiff
path: root/include/crypto/sm3_base.h
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-07-23 14:43:43 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2019-08-02 07:44:02 +0300
commit68289c634344431d6f97480eb5384516f37e39b8 (patch)
treee5e090b0231d1651e6e670c2b2f50d29aa604750 /include/crypto/sm3_base.h
parent1c0ab408bb6e16285fcddc9b4ce74507081d053f (diff)
downloadlinux-68289c634344431d6f97480eb5384516f37e39b8.tar.xz
crypto: add header include guards
Add header include guards in case they are included multiple times. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/sm3_base.h')
-rw-r--r--include/crypto/sm3_base.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/crypto/sm3_base.h b/include/crypto/sm3_base.h
index 31891b0dc7e3..1cbf9aa1fe52 100644
--- a/include/crypto/sm3_base.h
+++ b/include/crypto/sm3_base.h
@@ -6,6 +6,9 @@
* Written by Gilad Ben-Yossef <gilad@benyossef.com>
*/
+#ifndef _CRYPTO_SM3_BASE_H
+#define _CRYPTO_SM3_BASE_H
+
#include <crypto/internal/hash.h>
#include <crypto/sm3.h>
#include <linux/crypto.h>
@@ -104,3 +107,5 @@ static inline int sm3_base_finish(struct shash_desc *desc, u8 *out)
*sctx = (struct sm3_state){};
return 0;
}
+
+#endif /* _CRYPTO_SM3_BASE_H */