All of lore.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2020-09-16 19:22 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-09-16 19:22 UTC (permalink / raw)
  To: Kirill A. Shutemov; +Cc: Marc Zyngier, kbuild-all, linux-arm-kernel

[-- Attachment #1: Type: text/plain, Size: 3409 bytes --]

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@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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 70419 bytes --]

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [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
@ 2020-09-16 19:22 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-09-16 19:22 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3480 bytes --]

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@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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 70419 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-16 19:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-16 19:22 [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
2020-09-16 19:22 ` 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.