diff mbox series

[05/74] backports: add crypto/utils.h header file

Message ID 20240524190906.35087ebc437a.I1032c7966d32d27d2d28aaa95f8393b87bda567f@changeid (mailing list archive)
State New, archived
Headers show
Series backport updates from Intel | expand

Commit Message

Johannes Berg May 24, 2024, 5:07 p.m. UTC
From: Gregory Greenman <gregory.greenman@intel.com>

This adds crypto/utils.h header introduced in
c616fb0cbae8 ("crypto: lib/utils - Move utilities into new header")

Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 backport/backport-include/crypto/utils.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 backport/backport-include/crypto/utils.h
diff mbox series

Patch

diff --git a/backport/backport-include/crypto/utils.h b/backport/backport-include/crypto/utils.h
new file mode 100644
index 000000000000..aa55df78a398
--- /dev/null
+++ b/backport/backport-include/crypto/utils.h
@@ -0,0 +1,16 @@ 
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+/*
+ * Cryptographic utilities
+ *
+ * Copyright (c) 2023 Herbert Xu <herbert@gondor.apana.org.au>
+ */
+#ifndef _BACKPORT_CRYPTO_UTILS_H
+#define _BACKPORT_CRYPTO_UTILS_H
+
+#if LINUX_VERSION_IS_GEQ(6,4,0)
+#include_next <crypto/utils.h>
+#else
+#include <crypto/algapi.h>
+#endif /* < 6.4.0 */
+
+#endif	/* _BACKPORT_CRYPTO_UTILS_H */