Hi Sean,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on kvm/queue]
[also build test ERROR on vhost/linux-next linus/master v5.12-rc7 next-20210413]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Sean-Christopherson/KVM-Fix-tick...
base:
https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
config: powerpc64-randconfig-r023-20210413 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
9829f5e6b1bca9b61efc629770d28bb9014dec45)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
#
https://github.com/0day-ci/linux/commit/3f339890e27d8d4673de753b889fc5025...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Sean-Christopherson/KVM-Fix-tick-based-vtime-accounting-on-x86/20210414-023106
git checkout 3f339890e27d8d4673de753b889fc5025413330d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/powerpc/kernel/asm-offsets.c:23:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:9:
include/linux/vtime.h:68:3: error: implicit declaration of function
'vtime_guest_enter' [-Werror,-Wimplicit-function-declaration]
vtime_guest_enter(current);
^
include/linux/vtime.h:76:3: error: implicit declaration of function
'vtime_guest_exit' [-Werror,-Wimplicit-function-declaration]
vtime_guest_exit(current);
^
include/linux/vtime.h:111:13: error: conflicting types for 'vtime_guest_enter'
extern void vtime_guest_enter(struct task_struct *tsk);
^
include/linux/vtime.h:68:3: note: previous implicit declaration is here
vtime_guest_enter(current);
^
include/linux/vtime.h:112:13: error: conflicting types for 'vtime_guest_exit'
extern void vtime_guest_exit(struct task_struct *tsk);
^
include/linux/vtime.h:76:3: note: previous implicit declaration is here
vtime_guest_exit(current);
^
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:
In file included from include/linux/kvm_host.h:25:
> include/linux/context_tracking.h:79:2: error: void function
'context_tracking_guest_enter_irqoff' should not return a value [-Wreturn-type]
return context_tracking_enabled_this_cpu();
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/context_tracking.h:148:6: error: invalid argument type 'void' to
unary expression
if (!context_tracking_guest_enter_irqoff()) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 errors generated.
--
In file included from arch/powerpc/kernel/asm-offsets.c:23:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:9:
include/linux/vtime.h:68:3: error: implicit declaration of function
'vtime_guest_enter' [-Werror,-Wimplicit-function-declaration]
vtime_guest_enter(current);
^
include/linux/vtime.h:76:3: error: implicit declaration of function
'vtime_guest_exit' [-Werror,-Wimplicit-function-declaration]
vtime_guest_exit(current);
^
include/linux/vtime.h:111:13: error: conflicting types for 'vtime_guest_enter'
extern void vtime_guest_enter(struct task_struct *tsk);
^
include/linux/vtime.h:68:3: note: previous implicit declaration is here
vtime_guest_enter(current);
^
include/linux/vtime.h:112:13: error: conflicting types for 'vtime_guest_exit'
extern void vtime_guest_exit(struct task_struct *tsk);
^
include/linux/vtime.h:76:3: note: previous implicit declaration is here
vtime_guest_exit(current);
^
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:
In file included from include/linux/kvm_host.h:25:
> include/linux/context_tracking.h:79:2: error: void function
'context_tracking_guest_enter_irqoff' should not return a value [-Wreturn-type]
return context_tracking_enabled_this_cpu();
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/context_tracking.h:148:6: error: invalid argument type 'void' to
unary expression
if (!context_tracking_guest_enter_irqoff()) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 errors generated.
make[2]: *** [scripts/Makefile.build:116: arch/powerpc/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1235: 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 +/context_tracking_guest_enter_irqoff +79 include/linux/context_tracking.h
73
74 static __always_inline void context_tracking_guest_enter_irqoff(void)
75 {
76 if (context_tracking_enabled())
77 __context_tracking_enter(CONTEXT_GUEST);
78
79 return context_tracking_enabled_this_cpu();
80 }
81
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org