[arm-platforms:kvm/protected-memory 11/16] arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:2337:2: error: implicit declaration of function 'set_pte'; did you mean
kernel test robot
lkp at intel.com
Wed Sep 16 15:22:39 EDT 2020
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm/protected-memory
head: d9455e6eabef4b9be5f33c418a8046e0389edade
commit: cd614158250379351100ee6358b4d29d5456ec83 [11/16] KVM: Rework copy_to/from_guest() to avoid direct mapping
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.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
git checkout cd614158250379351100ee6358b4d29d5456ec83
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All errors (new ones prefixed by >>):
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c: In function 'map_page_atomic':
>> arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:2337:2: error: implicit declaration of function 'set_pte'; did you mean 'set_tb'? [-Werror=implicit-function-declaration]
2337 | set_pte(pte, mk_pte(page, PAGE_KERNEL));
| ^~~~~~~
| set_tb
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c: In function 'unmap_page_atomic':
>> arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:2345:2: error: implicit declaration of function '__flush_tlb_one_kernel'; did you mean '__flush_tlb_pending'? [-Werror=implicit-function-declaration]
2345 | __flush_tlb_one_kernel((unsigned long)vaddr);
| ^~~~~~~~~~~~~~~~~~~~~~
| __flush_tlb_pending
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c: In function 'protect_memory':
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:2778:31: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
2778 | if (down_write_killable(&mm->mmap_sem))
| ^~~~~~~~
| mmap_base
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:2832:16: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
2832 | up_write(&mm->mmap_sem);
| ^~~~~~~~
| mmap_base
cc1: some warnings being treated as errors
# https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=cd614158250379351100ee6358b4d29d5456ec83
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms kvm/protected-memory
git checkout cd614158250379351100ee6358b4d29d5456ec83
vim +2337 arch/powerpc/kvm/../../../virt/kvm/kvm_main.c
2328
2329 static void *map_page_atomic(struct page *page)
2330 {
2331 pte_t *pte;
2332 void *vaddr;
2333
2334 preempt_disable();
2335 pte = guest_map_ptes[smp_processor_id()];
2336 vaddr = guest_map_area->addr + smp_processor_id() * PAGE_SIZE;
> 2337 set_pte(pte, mk_pte(page, PAGE_KERNEL));
2338 return vaddr;
2339 }
2340
2341 static void unmap_page_atomic(void *vaddr)
2342 {
2343 pte_t *pte = guest_map_ptes[smp_processor_id()];
2344 set_pte(pte, __pte(0));
> 2345 __flush_tlb_one_kernel((unsigned long)vaddr);
2346 preempt_enable();
2347 }
2348
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 70419 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20200917/cf1e5768/attachment-0001.gz>
More information about the linux-arm-kernel
mailing list