#include <crypto/internal/hash.h>
#include <linux/crc32.h>
#include <asm/cpufeature.h>
+#ifdef HAVE_FPU_API_HEADER
+#include <asm/fpu/api.h>
+#else
#include <asm/i387.h>
+#endif
#include <libcfs/libcfs.h>
#define CHKSUM_BLOCK_SIZE 1
int cfs_crypto_crc32_pclmul_register(void)
{
if (!boot_cpu_has(X86_FEATURE_PCLMULQDQ)) {
- CDEBUG(D_INFO, "PCLMULQDQ-NI instructions are not "
- "detected.\n");
+ CDEBUG(D_INFO, "PCLMULQDQ-NI instructions are not detected.\n");
return -ENODEV;
}
return crypto_register_shash(&alg);