#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
};
#ifndef X86_FEATURE_PCLMULQDQ
-#define X86_FEATURE_PCLMULQDQ (4 * 32 + 1) /* PCLMULQDQ instruction */
+#define X86_FEATURE_PCLMULQDQ (4*32+1) /* PCLMULQDQ instruction */
#endif
int cfs_crypto_crc32_pclmul_register(void)
{
-
if (!boot_cpu_has(X86_FEATURE_PCLMULQDQ)) {
CDEBUG(D_INFO, "PCLMULQDQ-NI instructions are not "
"detected.\n");