* [intel-tdx:guest 21/72] arch/x86/include/asm/realmode.h:96:6: error: implicit declaration of function 'is_tdx_guest'
@ 2021-06-03 9:47 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-03 9:47 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3726 bytes --]
tree: https://github.com/intel/tdx.git guest
head: 01e6ec62425f8bb220d0644285e8858cc1e48992
commit: 89d81098346381a5e0b590804e137ccdce29c0b8 [21/72] x86/boot: Add a trampoline for APs booting in 64-bit mode
config: x86_64-kexec (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/intel/tdx/commit/89d81098346381a5e0b590804e137ccdce29c0b8
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx guest
git checkout 89d81098346381a5e0b590804e137ccdce29c0b8
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from arch/x86/realmode/init.c:9:
arch/x86/include/asm/realmode.h: In function 'get_trampoline_start_ip':
>> arch/x86/include/asm/realmode.h:96:6: error: implicit declaration of function 'is_tdx_guest' [-Werror=implicit-function-declaration]
96 | if (is_tdx_guest())
| ^~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from arch/x86/kernel/head64.c:39:
arch/x86/include/asm/realmode.h: In function 'get_trampoline_start_ip':
>> arch/x86/include/asm/realmode.h:96:6: error: implicit declaration of function 'is_tdx_guest' [-Werror=implicit-function-declaration]
96 | if (is_tdx_guest())
| ^~~~~~~~~~~~
In file included from arch/x86/kernel/head64.c:43:
arch/x86/include/asm/tdx.h: At top level:
>> arch/x86/include/asm/tdx.h:123:20: error: conflicting types for 'is_tdx_guest'
123 | static inline bool is_tdx_guest(void)
| ^~~~~~~~~~~~
In file included from arch/x86/kernel/head64.c:39:
arch/x86/include/asm/realmode.h:96:6: note: previous implicit declaration of 'is_tdx_guest' was here
96 | if (is_tdx_guest())
| ^~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from arch/x86/kernel/traps.c:46:
arch/x86/include/asm/realmode.h: In function 'get_trampoline_start_ip':
>> arch/x86/include/asm/realmode.h:96:6: error: implicit declaration of function 'is_tdx_guest' [-Werror=implicit-function-declaration]
96 | if (is_tdx_guest())
| ^~~~~~~~~~~~
In file included from arch/x86/kernel/traps.c:64:
arch/x86/include/asm/tdx.h: At top level:
>> arch/x86/include/asm/tdx.h:123:20: error: conflicting types for 'is_tdx_guest'
123 | static inline bool is_tdx_guest(void)
| ^~~~~~~~~~~~
In file included from arch/x86/kernel/traps.c:46:
arch/x86/include/asm/realmode.h:96:6: note: previous implicit declaration of 'is_tdx_guest' was here
96 | if (is_tdx_guest())
| ^~~~~~~~~~~~
arch/x86/kernel/traps.c:1144:13: warning: 've_raise_fault' defined but not used [-Wunused-function]
1144 | static void ve_raise_fault(struct pt_regs *regs, long error_code)
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/is_tdx_guest +96 arch/x86/include/asm/realmode.h
91
92 /* Common helper function to get start IP address */
93 static inline unsigned long get_trampoline_start_ip(struct real_mode_header *rmh)
94 {
95 #ifdef CONFIG_X86_64
> 96 if (is_tdx_guest())
97 return rmh->trampoline_start64;
98 #endif
99 return rmh->trampoline_start;
100 }
101
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 28751 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-03 9:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-03 9:47 [intel-tdx:guest 21/72] arch/x86/include/asm/realmode.h:96:6: error: implicit declaration of function 'is_tdx_guest' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.