tree:
https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git kvm-unmapped-poison
head: 51d4d402256b9c1b8e38be95bfa2bb28dc8189ad
commit: 51d4d402256b9c1b8e38be95bfa2bb28dc8189ad [7/7] KVM: unmap guest memory with
poison
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git/commit/?id=...
git remote add kas
https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git
git fetch --no-tags kas kvm-unmapped-poison
git checkout 51d4d402256b9c1b8e38be95bfa2bb28dc8189ad
# 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(a)intel.com>
All warnings (new ones prefixed by >>):
arch/x86/kvm/mmu/mmu.c: In function 'unmap_page':
> arch/x86/kvm/mmu/mmu.c:3697:7: warning: variable
'unmapped' set but not used [-Wunused-but-set-variable]
3697 | bool
unmapped;
| ^~~~~~~~
vim +/unmapped +3697 arch/x86/kvm/mmu/mmu.c
3694
3695 static void unmap_page(struct page *page, gfn_t gfn)
3696 {
3697 bool unmapped;
3698
3699 if (gfn_is_shared(gfn))
3700 return;
3701
3702 if (TestSetPageHWPoison(page))
3703 return;
3704 get_page(page);
3705 unmapped = try_to_unmap(page, TTU_IGNORE_MLOCK);
3706 }
3707
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org