]> git.proxmox.com Git - zfsonlinux.git/blob - debian/patches/0009-Fix-CONFIG_X86_DEBUG_FPU-build-failure.patch
d/rules: use dh_missing instead of dh_install --fail-missing
[zfsonlinux.git] / debian / patches / 0009-Fix-CONFIG_X86_DEBUG_FPU-build-failure.patch
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Brian Behlendorf <behlendorf1@llnl.gov>
3 Date: Wed, 17 Jul 2019 09:14:36 -0700
4 Subject: [PATCH] Fix CONFIG_X86_DEBUG_FPU build failure
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 When CONFIG_X86_DEBUG_FPU is defined the alternatives_patched symbol
10 is pulled in as a dependency which results in a build failure. To
11 prevent this undefine CONFIG_X86_DEBUG_FPU to disable the WARN_ON_FPU()
12 macro and rely on WARN_ON_ONCE debugging checks which were previously
13 added.
14
15 Reviewed-by: Tony Hutter <hutter2@llnl.gov>
16 Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
17 Closes #9041
18 Closes #9049
19 (cherry picked from commit 095b5412b31c07cad5cec74a4eb5ace011c92b27)
20 Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
21 ---
22 include/linux/simd_x86.h | 9 +++++++++
23 1 file changed, 9 insertions(+)
24
25 diff --git a/include/linux/simd_x86.h b/include/linux/simd_x86.h
26 index 2d7a1c3a5..5f243e0cc 100644
27 --- a/include/linux/simd_x86.h
28 +++ b/include/linux/simd_x86.h
29 @@ -82,6 +82,15 @@
30
31 #if defined(_KERNEL)
32
33 +/*
34 + * Disable the WARN_ON_FPU() macro to prevent additional dependencies
35 + * when providing the kfpu_* functions. Relevant warnings are included
36 + * as appropriate and are unconditionally enabled.
37 + */
38 +#if defined(CONFIG_X86_DEBUG_FPU) && !defined(KERNEL_EXPORTS_X86_FPU)
39 +#undef CONFIG_X86_DEBUG_FPU
40 +#endif
41 +
42 #if defined(HAVE_KERNEL_FPU_API_HEADER)
43 #include <asm/fpu/api.h>
44 #include <asm/fpu/internal.h>