]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Fix CONFIG_X86_DEBUG_FPU build failure
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 17 Jul 2019 16:14:36 +0000 (09:14 -0700)
committerGitHub <noreply@github.com>
Wed, 17 Jul 2019 16:14:36 +0000 (09:14 -0700)
When CONFIG_X86_DEBUG_FPU is defined the alternatives_patched symbol
is pulled in as a dependency which results in a build failure.  To
prevent this undefine CONFIG_X86_DEBUG_FPU to disable the WARN_ON_FPU()
macro and rely on WARN_ON_ONCE debugging checks which were previously
added.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #9041
Closes #9049

include/linux/simd_x86.h

index 641f439552e76292a863f5e93de17e69c8adcb76..edd4560981a655194c7d2f6f028f0f54df8914a7 100644 (file)
 
 #if defined(_KERNEL)
 
+/*
+ * Disable the WARN_ON_FPU() macro to prevent additional dependencies
+ * when providing the kfpu_* functions.  Relevant warnings are included
+ * as appropriate and are unconditionally enabled.
+ */
+#if defined(CONFIG_X86_DEBUG_FPU) && !defined(KERNEL_EXPORTS_X86_FPU)
+#undef CONFIG_X86_DEBUG_FPU
+#endif
+
 #if defined(HAVE_KERNEL_FPU_API_HEADER)
 #include <asm/fpu/api.h>
 #include <asm/fpu/internal.h>