[PATCH 05/74] backports: add crypto/utils.h header file
Johannes Berg <[email protected]> Fri, 24 May 2024 19:07:17 +0200
| Newsgroups | org.kernel.vger.backports |
|---|---|
| Message-ID | <20240524190906.35087ebc437a.I1032c7966d32d27d2d28aaa95f8393b87bda567f@changeid> |
From: Gregory Greenman <[email protected]> This adds crypto/utils.h header introduced in c616fb0cbae8 ("crypto: lib/utils - Move utilities into new header") Signed-off-by: Gregory Greenman <[email protected]> Signed-off-by: Johannes Berg <[email protected]> --- backport/backport-include/crypto/utils.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 backport/backport-include/crypto/utils.h 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 <[email protected]> + */ +#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 */ -- 2.45.1