linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 9605/11937] arch/arm64/kvm/reset.c:49:20: error: implicit declaration of function 'sve_max_virtualisable_vl'
@ 2021-10-27 15:23 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-27 15:23 UTC (permalink / raw)
  To: Mark Brown; +Cc: llvm, kbuild-all, Linux Memory Management List, Will Deacon

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   ae5179317e794160e471db0e122c6ac811a97235
commit: b5bc00ffddc08c20a799514cbcfd2abaa6718014 [9605/11937] arm64/sve: Put system wide vector length information into structs
config: arm64-randconfig-r033-20211027 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5db7568a6a1fcb408eb8988abdaff2a225a8eb72)
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
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=b5bc00ffddc08c20a799514cbcfd2abaa6718014
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout b5bc00ffddc08c20a799514cbcfd2abaa6718014
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

Note: the linux-next/master HEAD ae5179317e794160e471db0e122c6ac811a97235 builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

>> arch/arm64/kvm/reset.c:49:20: error: implicit declaration of function 'sve_max_virtualisable_vl' [-Werror,-Wimplicit-function-declaration]
                   kvm_sve_max_vl = sve_max_virtualisable_vl();
                                    ^
   arch/arm64/kvm/reset.c:105:40: error: implicit declaration of function 'sve_max_virtualisable_vl' [-Werror,-Wimplicit-function-declaration]
           if (WARN_ON(!sve_vl_valid(vl) || vl > sve_max_virtualisable_vl() ||
                                                 ^
   2 errors generated.


vim +/sve_max_virtualisable_vl +49 arch/arm64/kvm/reset.c

    45	
    46	int kvm_arm_init_sve(void)
    47	{
    48		if (system_supports_sve()) {
  > 49			kvm_sve_max_vl = sve_max_virtualisable_vl();
    50	
    51			/*
    52			 * The get_sve_reg()/set_sve_reg() ioctl interface will need
    53			 * to be extended with multiple register slice support in
    54			 * order to support vector lengths greater than
    55			 * SVE_VL_ARCH_MAX:
    56			 */
    57			if (WARN_ON(kvm_sve_max_vl > SVE_VL_ARCH_MAX))
    58				kvm_sve_max_vl = SVE_VL_ARCH_MAX;
    59	
    60			/*
    61			 * Don't even try to make use of vector lengths that
    62			 * aren't available on all CPUs, for now:
    63			 */
    64			if (kvm_sve_max_vl < sve_max_vl())
    65				pr_warn("KVM: SVE vector length for guests limited to %u bytes\n",
    66					kvm_sve_max_vl);
    67		}
    68	
    69		return 0;
    70	}
    71	

---
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: 45135 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-27 15:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-27 15:23 [linux-next:master 9605/11937] arch/arm64/kvm/reset.c:49:20: error: implicit declaration of function 'sve_max_virtualisable_vl' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).