* [kvm:queue 120/138] arch/x86/kernel/fpu/xstate.c:608:14: error: use of undeclared identifier 'XFEATURE_RSRVD_COMP_11'
@ 2021-02-03 15:53 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-03 15:53 UTC (permalink / raw)
To: Paolo Bonzini
Cc: kbuild-all, clang-built-linux, kvm, Robert Hu, Farrah Chen, Danmei Wei
[-- Attachment #1: Type: text/plain, Size: 4855 bytes --]
tree: https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
head: 054cca2525b8da52567b52cc80dfcc88751d6846
commit: 25135e4ae17d26e8541cb32c0568cbf4ea3e8e02 [120/138] cet msrs
config: x86_64-randconfig-r013-20210203 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 275c6af7d7f1ed63a03d05b4484413e447133269)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/virt/kvm/kvm.git/commit/?id=25135e4ae17d26e8541cb32c0568cbf4ea3e8e02
git remote add kvm https://git.kernel.org/pub/scm/virt/kvm/kvm.git
git fetch --no-tags kvm queue
git checkout 25135e4ae17d26e8541cb32c0568cbf4ea3e8e02
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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 >>):
>> arch/x86/kernel/fpu/xstate.c:608:14: error: use of undeclared identifier 'XFEATURE_RSRVD_COMP_11'
((nr >= XFEATURE_RSRVD_COMP_11) && (nr <= XFEATURE_LBR))) {
^
1 error generated.
vim +/XFEATURE_RSRVD_COMP_11 +608 arch/x86/kernel/fpu/xstate.c
ef78f2a4bf84d8 Dave Hansen 2015-09-02 575
ef78f2a4bf84d8 Dave Hansen 2015-09-02 576 /*
ef78f2a4bf84d8 Dave Hansen 2015-09-02 577 * We have a C struct for each 'xstate'. We need to ensure
ef78f2a4bf84d8 Dave Hansen 2015-09-02 578 * that our software representation matches what the CPU
ef78f2a4bf84d8 Dave Hansen 2015-09-02 579 * tells us about the state's size.
ef78f2a4bf84d8 Dave Hansen 2015-09-02 580 */
ef78f2a4bf84d8 Dave Hansen 2015-09-02 581 static void check_xstate_against_struct(int nr)
ef78f2a4bf84d8 Dave Hansen 2015-09-02 582 {
ef78f2a4bf84d8 Dave Hansen 2015-09-02 583 /*
ef78f2a4bf84d8 Dave Hansen 2015-09-02 584 * Ask the CPU for the size of the state.
ef78f2a4bf84d8 Dave Hansen 2015-09-02 585 */
ef78f2a4bf84d8 Dave Hansen 2015-09-02 586 int sz = xfeature_size(nr);
ef78f2a4bf84d8 Dave Hansen 2015-09-02 587 /*
ef78f2a4bf84d8 Dave Hansen 2015-09-02 588 * Match each CPU state with the corresponding software
ef78f2a4bf84d8 Dave Hansen 2015-09-02 589 * structure.
ef78f2a4bf84d8 Dave Hansen 2015-09-02 590 */
ef78f2a4bf84d8 Dave Hansen 2015-09-02 591 XCHECK_SZ(sz, nr, XFEATURE_YMM, struct ymmh_struct);
ef78f2a4bf84d8 Dave Hansen 2015-09-02 592 XCHECK_SZ(sz, nr, XFEATURE_BNDREGS, struct mpx_bndreg_state);
ef78f2a4bf84d8 Dave Hansen 2015-09-02 593 XCHECK_SZ(sz, nr, XFEATURE_BNDCSR, struct mpx_bndcsr_state);
ef78f2a4bf84d8 Dave Hansen 2015-09-02 594 XCHECK_SZ(sz, nr, XFEATURE_OPMASK, struct avx_512_opmask_state);
ef78f2a4bf84d8 Dave Hansen 2015-09-02 595 XCHECK_SZ(sz, nr, XFEATURE_ZMM_Hi256, struct avx_512_zmm_uppers_state);
ef78f2a4bf84d8 Dave Hansen 2015-09-02 596 XCHECK_SZ(sz, nr, XFEATURE_Hi16_ZMM, struct avx_512_hi16_state);
c8df40098451ba Dave Hansen 2016-02-12 597 XCHECK_SZ(sz, nr, XFEATURE_PKRU, struct pkru_state);
b454feb9abc1a9 Yu-cheng Yu 2020-09-15 598 XCHECK_SZ(sz, nr, XFEATURE_PASID, struct ia32_pasid_state);
ef78f2a4bf84d8 Dave Hansen 2015-09-02 599
ef78f2a4bf84d8 Dave Hansen 2015-09-02 600 /*
ef78f2a4bf84d8 Dave Hansen 2015-09-02 601 * Make *SURE* to add any feature numbers in below if
ef78f2a4bf84d8 Dave Hansen 2015-09-02 602 * there are "holes" in the xsave state component
ef78f2a4bf84d8 Dave Hansen 2015-09-02 603 * numbers.
ef78f2a4bf84d8 Dave Hansen 2015-09-02 604 */
ef78f2a4bf84d8 Dave Hansen 2015-09-02 605 if ((nr < XFEATURE_YMM) ||
1f96b1efbad4bb Dave Hansen 2016-02-12 606 (nr >= XFEATURE_MAX) ||
f0dccc9da4c0fd Kan Liang 2020-07-03 607 (nr == XFEATURE_PT_UNIMPLEMENTED_SO_FAR) ||
b454feb9abc1a9 Yu-cheng Yu 2020-09-15 @608 ((nr >= XFEATURE_RSRVD_COMP_11) && (nr <= XFEATURE_LBR))) {
ef78f2a4bf84d8 Dave Hansen 2015-09-02 609 WARN_ONCE(1, "no structure for xstate: %d\n", nr);
ef78f2a4bf84d8 Dave Hansen 2015-09-02 610 XSTATE_WARN_ON(1);
ef78f2a4bf84d8 Dave Hansen 2015-09-02 611 }
ef78f2a4bf84d8 Dave Hansen 2015-09-02 612 }
ef78f2a4bf84d8 Dave Hansen 2015-09-02 613
:::::: The code at line 608 was first introduced by commit
:::::: b454feb9abc1a9ee876fb84bfea0fc8d726f5bc4 x86/fpu/xstate: Add supervisor PASID state for ENQCMD
:::::: TO: Yu-cheng Yu <yu-cheng.yu@intel.com>
:::::: CC: Borislav Petkov <bp@suse.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 40342 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-03 15:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-03 15:53 [kvm:queue 120/138] arch/x86/kernel/fpu/xstate.c:608:14: error: use of undeclared identifier 'XFEATURE_RSRVD_COMP_11' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).