* [kvm:master 22/22] arch/x86/kvm/x86.c:992:19: error: unused function 'kvm_guest_supported_xfd'
@ 2022-02-17 23:12 kernel test robot
2022-02-18 3:29 ` Leonardo Bras Soares Passos
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2022-02-17 23:12 UTC (permalink / raw)
To: Leonardo Bras
Cc: llvm, kbuild-all, kvm, Robert Hu, Farrah Chen, Danmei Wei,
Paolo Bonzini
tree: https://git.kernel.org/pub/scm/virt/kvm/kvm.git master
head: 988896bb61827345c6d074dd5f2af1b7b008193f
commit: 988896bb61827345c6d074dd5f2af1b7b008193f [22/22] x86/kvm/fpu: Remove kvm_vcpu_arch.guest_supported_xcr0
config: i386-randconfig-a002 (https://download.01.org/0day-ci/archive/20220218/202202180700.dnGoHs4Z-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
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
# https://git.kernel.org/pub/scm/virt/kvm/kvm.git/commit/?id=988896bb61827345c6d074dd5f2af1b7b008193f
git remote add kvm https://git.kernel.org/pub/scm/virt/kvm/kvm.git
git fetch --no-tags kvm master
git checkout 988896bb61827345c6d074dd5f2af1b7b008193f
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
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/kvm/x86.c:992:19: error: unused function 'kvm_guest_supported_xfd' [-Werror,-Wunused-function]
static inline u64 kvm_guest_supported_xfd(struct kvm_vcpu *vcpu)
^
arch/x86/kvm/x86.c:2364:19: error: unused function 'gtod_is_based_on_tsc' [-Werror,-Wunused-function]
static inline int gtod_is_based_on_tsc(int mode)
^
2 errors generated.
vim +/kvm_guest_supported_xfd +992 arch/x86/kvm/x86.c
991
> 992 static inline u64 kvm_guest_supported_xfd(struct kvm_vcpu *vcpu)
993 {
994 return kvm_guest_supported_xcr0(vcpu) & XFEATURE_MASK_USER_DYNAMIC;
995 }
996
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [kvm:master 22/22] arch/x86/kvm/x86.c:992:19: error: unused function 'kvm_guest_supported_xfd'
2022-02-17 23:12 [kvm:master 22/22] arch/x86/kvm/x86.c:992:19: error: unused function 'kvm_guest_supported_xfd' kernel test robot
@ 2022-02-18 3:29 ` Leonardo Bras Soares Passos
0 siblings, 0 replies; 2+ messages in thread
From: Leonardo Bras Soares Passos @ 2022-02-18 3:29 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: kvm
Hello Paolo,
On Thu, Feb 17, 2022 at 8:13 PM kernel test robot <lkp@intel.com> wrote:
>
> tree: https://git.kernel.org/pub/scm/virt/kvm/kvm.git master
> head: 988896bb61827345c6d074dd5f2af1b7b008193f
> commit: 988896bb61827345c6d074dd5f2af1b7b008193f [22/22] x86/kvm/fpu: Remove kvm_vcpu_arch.guest_supported_xcr0
> config: i386-randconfig-a002 (https://download.01.org/0day-ci/archive/20220218/202202180700.dnGoHs4Z-lkp@intel.com/config)
> compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
> 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
> # https://git.kernel.org/pub/scm/virt/kvm/kvm.git/commit/?id=988896bb61827345c6d074dd5f2af1b7b008193f
> git remote add kvm https://git.kernel.org/pub/scm/virt/kvm/kvm.git
> git fetch --no-tags kvm master
> git checkout 988896bb61827345c6d074dd5f2af1b7b008193f
> # save the config file to linux build tree
> mkdir build_dir
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
>
> 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/kvm/x86.c:992:19: error: unused function 'kvm_guest_supported_xfd' [-Werror,-Wunused-function]
> static inline u64 kvm_guest_supported_xfd(struct kvm_vcpu *vcpu)
It seems to fail under "non-x86_64" x86 configs, since
kvm_guest_supported_xfd() is called only in x86_64 code.
I will send a new version for this patchset only, incorporating the
ifdefs in this function.
Rationale:
If MSR_IA32_XFD and MSR_IA32_XFD_ERR are in x86_64-only code, it only
makes sense that XFD is an x86_64 only feature.
> ^
> arch/x86/kvm/x86.c:2364:19: error: unused function 'gtod_is_based_on_tsc' [-Werror,-Wunused-function]
> static inline int gtod_is_based_on_tsc(int mode)
> ^
> 2 errors generated.
The same thing happens for this one (which is unrelated to my
patchset), but will require the same fix.
I will send an additional patch fixing this one also.
Is that ok?
Best regards,
Leo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-18 3:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-17 23:12 [kvm:master 22/22] arch/x86/kvm/x86.c:992:19: error: unused function 'kvm_guest_supported_xfd' kernel test robot
2022-02-18 3:29 ` Leonardo Bras Soares Passos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox