[PATCH 18/20] headers: add crypto/utils.h redirect for kernels < 6.6
Yi Cong <[email protected]> Wed, 24 Jun 2026 15:38:42 +0800
| Newsgroups | org.kernel.vger.backports |
|---|---|
| Message-ID | <[email protected]> |
From: Yi Cong <[email protected]> In v6.6 crypto_xor(), crypto_xor_cpy(), and crypto_memneq() were moved from crypto/algapi.h to a new crypto/utils.h header. For older kernels, redirect to the original location. Signed-off-by: Yi Cong <[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 00000000..7722b44a --- /dev/null +++ b/backport/backport-include/crypto/utils.h @@ -0,0 +1,16 @@ +#ifndef __BACKPORT_CRYPTO_UTILS_H +#define __BACKPORT_CRYPTO_UTILS_H +#include <linux/version.h> + +/* + * In v6.6 crypto_xor(), crypto_xor_cpy(), and crypto_memneq() were + * moved from crypto/algapi.h to a new crypto/utils.h header. + * For older kernels, redirect to the original location. + */ +#if LINUX_VERSION_IS_LESS(6,6,0) +#include <crypto/algapi.h> +#else +#include_next <crypto/utils.h> +#endif + +#endif /* __BACKPORT_CRYPTO_UTILS_H */ -- 2.43.0