kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [kvm:master 53/130] include/linux/kvm_host.h:270:9: error: implicit declaration of function 'single_task_running'
@ 2021-05-26 23:11 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-26 23:11 UTC (permalink / raw)
  To: Wanpeng Li
  Cc: kbuild-all, clang-built-linux, kvm, Robert Hu, Farrah Chen,
	Danmei Wei, Paolo Bonzini, David Matlack, Venkatesh Srinivas

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

tree:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git master
head:   f7d7a93c553f6242b1732b64edc8120c7a061b78
commit: 85d4c3baeb45cb5f522a71d88cbd34e4824c9f22 [53/130] KVM: PPC: exit halt polling on need_resched()
config: powerpc-randconfig-r021-20210526 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 99155e913e9bad5f7f8a247f8bb3a3ff3da74af1)
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 powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # https://git.kernel.org/pub/scm/virt/kvm/kvm.git/commit/?id=85d4c3baeb45cb5f522a71d88cbd34e4824c9f22
        git remote add kvm https://git.kernel.org/pub/scm/virt/kvm/kvm.git
        git fetch --no-tags kvm master
        git checkout 85d4c3baeb45cb5f522a71d88cbd34e4824c9f22
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 >>):

   In file included from arch/powerpc/kernel/asm-offsets.c:38:
   In file included from arch/powerpc/include/asm/dbell.h:17:
   In file included from arch/powerpc/include/asm/kvm_ppc.h:19:
>> include/linux/kvm_host.h:270:9: error: implicit declaration of function 'single_task_running' [-Werror,-Wimplicit-function-declaration]
           return single_task_running() && !need_resched() && ktime_before(cur, stop);
                  ^
   1 error generated.
--
   In file included from arch/powerpc/kernel/asm-offsets.c:38:
   In file included from arch/powerpc/include/asm/dbell.h:17:
   In file included from arch/powerpc/include/asm/kvm_ppc.h:19:
>> include/linux/kvm_host.h:270:9: error: implicit declaration of function 'single_task_running' [-Werror,-Wimplicit-function-declaration]
           return single_task_running() && !need_resched() && ktime_before(cur, stop);
                  ^
   1 error generated.
   make[2]: *** [scripts/Makefile.build:117: arch/powerpc/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1227: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:215: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +/single_task_running +270 include/linux/kvm_host.h

   267	
   268	static inline bool kvm_vcpu_can_poll(ktime_t cur, ktime_t stop)
   269	{
 > 270		return single_task_running() && !need_resched() && ktime_before(cur, stop);
   271	}
   272	

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

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

only message in thread, other threads:[~2021-05-26 23:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26 23:11 [kvm:master 53/130] include/linux/kvm_host.h:270:9: error: implicit declaration of function 'single_task_running' 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).