Re: [PATCH v3 19/34] KVM: SVM: Support string IO operations for an SEV-ES guest

From: kernel test robot
Date: Mon Nov 09 2020 - 22:57:04 EST


Hi Tom,

I love your patch! Perhaps something to improve:

[auto build test WARNING on tip/master]
[also build test WARNING on v5.10-rc3 next-20201109]
[cannot apply to tip/x86/core vhost/linux-next kvm/linux-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url: https://github.com/0day-ci/linux/commits/Tom-Lendacky/SEV-ES-hypervisor-support/20201110-063133
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git a2445441a132ee5b3e61e6a26c27a3491f4296ef
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/76e00f88dabb9bb211450448389a8bde55412548
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Tom-Lendacky/SEV-ES-hypervisor-support/20201110-063133
git checkout 76e00f88dabb9bb211450448389a8bde55412548
# 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@xxxxxxxxx>

All warnings (new ones prefixed by >>):

arch/x86/kvm/x86.c: In function 'kvm_sev_es_outs':
>> arch/x86/kvm/x86.c:11370:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
11370 | int ret;
| ^~~

vim +/ret +11370 arch/x86/kvm/x86.c

11366
11367 static int kvm_sev_es_outs(struct kvm_vcpu *vcpu, unsigned int size,
11368 unsigned int port, void *data, unsigned int count)
11369 {
11370 int ret;
11371
11372 ret = emulator_pio_out_emulated(vcpu->arch.emulate_ctxt, size, port,
11373 data, count);
11374 vcpu->arch.pio.count = 0;
11375
11376 return 0;
11377 }
11378

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip