From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [intel-tdx:guest 21/72] arch/x86/include/asm/realmode.h:96:6: error: implicit declaration of function 'is_tdx_guest'
Date: Thu, 03 Jun 2021 17:47:14 +0800 [thread overview]
Message-ID: <202106031756.74El0QAX-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2021-06-03 9:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202106031756.74El0QAX-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.