tree:
https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git x86/fixes
head: 9161537ca9aace2dc6378f51ce1b983f22c4b860
commit: a64327dc8b9ba8516b68f62da88dc52856fc256f [24/25] x86/fpu: Make the EFI FPU calling
convention explicit
config: i386-randconfig-a006-20210118 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
#
https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git/commit/?id...
git remote add luto
https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git
git fetch --no-tags luto x86/fixes
git checkout a64327dc8b9ba8516b68f62da88dc52856fc256f
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/x86/platform/efi/quirks.c:16:
arch/x86/platform/efi/quirks.c: In function 'efi_recover_from_page_fault':
> arch/x86/include/asm/efi.h:81:2: error: implicit declaration of
function 'efi_fpu_end'; did you mean 'kernel_fpu_end'?
[-Werror=implicit-function-declaration]
81 | efi_fpu_end(); \
| ^~~~~~~~~~~
arch/x86/platform/efi/quirks.c:733:2: note: in expansion of macro
'arch_efi_call_virt_teardown'
733 | arch_efi_call_virt_teardown();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from drivers/firmware/efi/runtime-wrappers.c:36:
drivers/firmware/efi/runtime-wrappers.c: In function 'efi_call_rts':
> arch/x86/include/asm/efi.h:74:2: error: implicit declaration of
function 'efi_fpu_begin' [-Werror=implicit-function-declaration]
74 |
efi_fpu_begin(); \
| ^~~~~~~~~~~~~
include/linux/efi.h:1136:2: note: in expansion of macro
'arch_efi_call_virt_setup'
1136 | arch_efi_call_virt_setup(); \
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/firmware/efi/runtime-wrappers.c:43:2: note: in expansion of macro
'efi_call_virt_pointer'
43 | efi_call_virt_pointer(efi.runtime, f, args)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/firmware/efi/runtime-wrappers.c:191:12: note: in expansion of macro
'efi_call_virt'
191 | status = efi_call_virt(get_time, (efi_time_t *)arg1,
| ^~~~~~~~~~~~~
> arch/x86/include/asm/efi.h:81:2: error: implicit declaration of
function 'efi_fpu_end'; did you mean 'kernel_fpu_end'?
[-Werror=implicit-function-declaration]
81 | efi_fpu_end(); \
| ^~~~~~~~~~~
include/linux/efi.h:1142:2: note: in expansion of macro
'arch_efi_call_virt_teardown'
1142 | arch_efi_call_virt_teardown(); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/firmware/efi/runtime-wrappers.c:43:2: note: in expansion of macro
'efi_call_virt_pointer'
43 | efi_call_virt_pointer(efi.runtime, f, args)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/firmware/efi/runtime-wrappers.c:191:12: note: in expansion of macro
'efi_call_virt'
191 | status = efi_call_virt(get_time, (efi_time_t *)arg1,
| ^~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +81 arch/x86/include/asm/efi.h
70
71 #ifdef CONFIG_X86_32
72 #define arch_efi_call_virt_setup() \
73 ({ \
74 efi_fpu_begin(); \
75 firmware_restrict_branch_speculation_start(); \
76 })
77
78 #define arch_efi_call_virt_teardown() \
79 ({ \
80 firmware_restrict_branch_speculation_end(); \
81 efi_fpu_end(); \
82 })
83
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org