All of lore.kernel.org
 help / color / mirror / Atom feed
* [hch-misc:um-set_fs 1/2] arch/x86/kvm/mmu/spte.c:85:6: error: implicit declaration of function 'pat_enabled'; did you mean 'kasan_enabled'?
@ 2021-12-14 13:43 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-12-14 13:43 UTC (permalink / raw)
  To: kbuild-all

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

tree:   git://git.infradead.org/users/hch/misc.git um-set_fs
head:   62ef80add97f4b90b4435670fcd5c0a6bd424fad
commit: bc1802ed3414136e0dfe2ea0a747aca59dc33b5c [1/2] x86/mtrr: don't include <asm/memtype.h> for !CONFIG_MTRR
config: x86_64-randconfig-a006-20211214 (https://download.01.org/0day-ci/archive/20211214/202112142126.XDd02OOu-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        git remote add hch-misc git://git.infradead.org/users/hch/misc.git
        git fetch --no-tags hch-misc um-set_fs
        git checkout bc1802ed3414136e0dfe2ea0a747aca59dc33b5c
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/kvm/

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 >>):

   In file included from arch/x86/include/asm/kvm_host.h:31,
                    from include/linux/kvm_host.h:39,
                    from arch/x86/kvm/mmu/spte.c:12:
   arch/x86/include/asm/mtrr.h: In function 'mtrr_bp_init':
   arch/x86/include/asm/mtrr.h:89:2: error: implicit declaration of function 'pat_disable'; did you mean 'ptrace_disable'? [-Werror=implicit-function-declaration]
      89 |  pat_disable("PAT support disabled because CONFIG_MTRR is disabled in the kernel.");
         |  ^~~~~~~~~~~
         |  ptrace_disable
   arch/x86/kvm/mmu/spte.c: In function 'kvm_is_mmio_pfn':
>> arch/x86/kvm/mmu/spte.c:85:6: error: implicit declaration of function 'pat_enabled'; did you mean 'kasan_enabled'? [-Werror=implicit-function-declaration]
      85 |    (!pat_enabled() || pat_pfn_immune_to_uc_mtrr(pfn));
         |      ^~~~~~~~~~~
         |      kasan_enabled
>> arch/x86/kvm/mmu/spte.c:85:23: error: implicit declaration of function 'pat_pfn_immune_to_uc_mtrr' [-Werror=implicit-function-declaration]
      85 |    (!pat_enabled() || pat_pfn_immune_to_uc_mtrr(pfn));
         |                       ^~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +85 arch/x86/kvm/mmu/spte.c

5a9624affe7c74 Paolo Bonzini 2020-10-16  70  
5a9624affe7c74 Paolo Bonzini 2020-10-16  71  static bool kvm_is_mmio_pfn(kvm_pfn_t pfn)
5a9624affe7c74 Paolo Bonzini 2020-10-16  72  {
5a9624affe7c74 Paolo Bonzini 2020-10-16  73  	if (pfn_valid(pfn))
5a9624affe7c74 Paolo Bonzini 2020-10-16  74  		return !is_zero_pfn(pfn) && PageReserved(pfn_to_page(pfn)) &&
5a9624affe7c74 Paolo Bonzini 2020-10-16  75  			/*
5a9624affe7c74 Paolo Bonzini 2020-10-16  76  			 * Some reserved pages, such as those from NVDIMM
5a9624affe7c74 Paolo Bonzini 2020-10-16  77  			 * DAX devices, are not for MMIO, and can be mapped
5a9624affe7c74 Paolo Bonzini 2020-10-16  78  			 * with cached memory type for better performance.
5a9624affe7c74 Paolo Bonzini 2020-10-16  79  			 * However, the above check misconceives those pages
5a9624affe7c74 Paolo Bonzini 2020-10-16  80  			 * as MMIO, and results in KVM mapping them with UC
5a9624affe7c74 Paolo Bonzini 2020-10-16  81  			 * memory type, which would hurt the performance.
5a9624affe7c74 Paolo Bonzini 2020-10-16  82  			 * Therefore, we check the host memory type in addition
5a9624affe7c74 Paolo Bonzini 2020-10-16  83  			 * and only treat UC/UC-/WC pages as MMIO.
5a9624affe7c74 Paolo Bonzini 2020-10-16  84  			 */
5a9624affe7c74 Paolo Bonzini 2020-10-16 @85  			(!pat_enabled() || pat_pfn_immune_to_uc_mtrr(pfn));
5a9624affe7c74 Paolo Bonzini 2020-10-16  86  
5a9624affe7c74 Paolo Bonzini 2020-10-16  87  	return !e820__mapped_raw_any(pfn_to_hpa(pfn),
5a9624affe7c74 Paolo Bonzini 2020-10-16  88  				     pfn_to_hpa(pfn + 1) - 1,
5a9624affe7c74 Paolo Bonzini 2020-10-16  89  				     E820_TYPE_RAM);
5a9624affe7c74 Paolo Bonzini 2020-10-16  90  }
5a9624affe7c74 Paolo Bonzini 2020-10-16  91  

:::::: The code at line 85 was first introduced by commit
:::::: 5a9624affe7c7498fb395879d9bb613628e89e60 KVM: mmu: extract spte.h and spte.c

:::::: TO: Paolo Bonzini <pbonzini@redhat.com>
:::::: CC: Paolo Bonzini <pbonzini@redhat.com>

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

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

* [hch-misc:um-set_fs 1/2] arch/x86/kvm/mmu/spte.c:85:6: error: implicit declaration of function 'pat_enabled'; did you mean 'kasan_enabled'?
@ 2021-12-15 17:59 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-12-15 17:59 UTC (permalink / raw)
  To: kbuild-all

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

tree:   git://git.infradead.org/users/hch/misc.git um-set_fs
head:   10f824225a08987e764b65f12a1a6e276fbd9b95
commit: e4ae0f9a217d88fea3da7a08cedf32b4d9a84896 [1/2] x86/mtrr: remove the mtrr_bp_init stub
config: x86_64-rhel-8.3 (https://download.01.org/0day-ci/archive/20211216/202112160131.vnaM5zs6-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        git remote add hch-misc git://git.infradead.org/users/hch/misc.git
        git fetch --no-tags hch-misc um-set_fs
        git checkout e4ae0f9a217d88fea3da7a08cedf32b4d9a84896
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/kvm/

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/x86/kvm/mmu/spte.c: In function 'kvm_is_mmio_pfn':
>> arch/x86/kvm/mmu/spte.c:85:6: error: implicit declaration of function 'pat_enabled'; did you mean 'kasan_enabled'? [-Werror=implicit-function-declaration]
      85 |    (!pat_enabled() || pat_pfn_immune_to_uc_mtrr(pfn));
         |      ^~~~~~~~~~~
         |      kasan_enabled
>> arch/x86/kvm/mmu/spte.c:85:23: error: implicit declaration of function 'pat_pfn_immune_to_uc_mtrr' [-Werror=implicit-function-declaration]
      85 |    (!pat_enabled() || pat_pfn_immune_to_uc_mtrr(pfn));
         |                       ^~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +85 arch/x86/kvm/mmu/spte.c

5a9624affe7c749 Paolo Bonzini 2020-10-16  70  
5a9624affe7c749 Paolo Bonzini 2020-10-16  71  static bool kvm_is_mmio_pfn(kvm_pfn_t pfn)
5a9624affe7c749 Paolo Bonzini 2020-10-16  72  {
5a9624affe7c749 Paolo Bonzini 2020-10-16  73  	if (pfn_valid(pfn))
5a9624affe7c749 Paolo Bonzini 2020-10-16  74  		return !is_zero_pfn(pfn) && PageReserved(pfn_to_page(pfn)) &&
5a9624affe7c749 Paolo Bonzini 2020-10-16  75  			/*
5a9624affe7c749 Paolo Bonzini 2020-10-16  76  			 * Some reserved pages, such as those from NVDIMM
5a9624affe7c749 Paolo Bonzini 2020-10-16  77  			 * DAX devices, are not for MMIO, and can be mapped
5a9624affe7c749 Paolo Bonzini 2020-10-16  78  			 * with cached memory type for better performance.
5a9624affe7c749 Paolo Bonzini 2020-10-16  79  			 * However, the above check misconceives those pages
5a9624affe7c749 Paolo Bonzini 2020-10-16  80  			 * as MMIO, and results in KVM mapping them with UC
5a9624affe7c749 Paolo Bonzini 2020-10-16  81  			 * memory type, which would hurt the performance.
5a9624affe7c749 Paolo Bonzini 2020-10-16  82  			 * Therefore, we check the host memory type in addition
5a9624affe7c749 Paolo Bonzini 2020-10-16  83  			 * and only treat UC/UC-/WC pages as MMIO.
5a9624affe7c749 Paolo Bonzini 2020-10-16  84  			 */
5a9624affe7c749 Paolo Bonzini 2020-10-16 @85  			(!pat_enabled() || pat_pfn_immune_to_uc_mtrr(pfn));
5a9624affe7c749 Paolo Bonzini 2020-10-16  86  
5a9624affe7c749 Paolo Bonzini 2020-10-16  87  	return !e820__mapped_raw_any(pfn_to_hpa(pfn),
5a9624affe7c749 Paolo Bonzini 2020-10-16  88  				     pfn_to_hpa(pfn + 1) - 1,
5a9624affe7c749 Paolo Bonzini 2020-10-16  89  				     E820_TYPE_RAM);
5a9624affe7c749 Paolo Bonzini 2020-10-16  90  }
5a9624affe7c749 Paolo Bonzini 2020-10-16  91  

:::::: The code at line 85 was first introduced by commit
:::::: 5a9624affe7c7498fb395879d9bb613628e89e60 KVM: mmu: extract spte.h and spte.c

:::::: TO: Paolo Bonzini <pbonzini@redhat.com>
:::::: CC: Paolo Bonzini <pbonzini@redhat.com>

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

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

end of thread, other threads:[~2021-12-15 17:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-14 13:43 [hch-misc:um-set_fs 1/2] arch/x86/kvm/mmu/spte.c:85:6: error: implicit declaration of function 'pat_enabled'; did you mean 'kasan_enabled'? kernel test robot
2021-12-15 17:59 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.