* [sashal-stable:pending-5.10 345/362] arch/s390/kvm/kvm-s390.c:4998:22: error: 'new' undeclared; did you mean 'net'?
@ 2023-03-07 8:02 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-07 8:02 UTC (permalink / raw
To: Sasha Levin; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-5.10
head: 0611c6d676d5a83fe19b4a45aa27c12b0e443f96
commit: 08fa1f6dcb512d1f339211b277fce434073ae77d [345/362] KVM: s390: Use "new" memslot instead of userspace memory region
config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20230307/202303071513.TRJKu7tI-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 12.1.0
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/linux/kernel/git/sashal/linux-stable.git/commit/?id=08fa1f6dcb512d1f339211b277fce434073ae77d
git remote add sashal-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-stable pending-5.10
git checkout 08fa1f6dcb512d1f339211b277fce434073ae77d
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=s390 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash arch/s390/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303071513.TRJKu7tI-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/s390/kvm/kvm-s390.c: In function 'kvm_arch_prepare_memory_region':
>> arch/s390/kvm/kvm-s390.c:4998:22: error: 'new' undeclared (first use in this function); did you mean 'net'?
4998 | gpa_t size = new->npages * PAGE_SIZE;
| ^~~
| net
arch/s390/kvm/kvm-s390.c:4998:22: note: each undeclared identifier is reported only once for each function it appears in
vim +4998 arch/s390/kvm/kvm-s390.c
4991
4992 /* Section: memory related */
4993 int kvm_arch_prepare_memory_region(struct kvm *kvm,
4994 struct kvm_memory_slot *memslot,
4995 const struct kvm_userspace_memory_region *mem,
4996 enum kvm_mr_change change)
4997 {
> 4998 gpa_t size = new->npages * PAGE_SIZE;
4999
5000 /* A few sanity checks. We can have memory slots which have to be
5001 located/ended at a segment boundary (1MB). The memory in userland is
5002 ok to be fragmented into various different vmas. It is okay to mmap()
5003 and munmap() stuff in this slot after doing this call at any time */
5004
5005 if (new->userspace_addr & 0xffffful)
5006 return -EINVAL;
5007
5008 if (size & 0xffffful)
5009 return -EINVAL;
5010
5011 if ((new->base_gfn * PAGE_SIZE) + size > kvm->arch.mem_limit)
5012 return -EINVAL;
5013
5014 /* When we are protected, we should not change the memory slots */
5015 if (kvm_s390_pv_get_handle(kvm))
5016 return -EINVAL;
5017 return 0;
5018 }
5019
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-07 8:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-07 8:02 [sashal-stable:pending-5.10 345/362] arch/s390/kvm/kvm-s390.c:4998:22: error: 'new' undeclared; did you mean 'net'? kernel test robot
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.