tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: 6e912d0ff604d23a34ef2b97db21c1e00be18da0
commit: fd9a4d32a26b88309fe68b292d38471785fec955 [7/9] BACKPORT: FROMLIST: x86/kvm: Add
definitions for virtual suspend time injection
config: arc-randconfig-r012-20210814 (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.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 remote add chrome-os
https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-4.19
git checkout fd9a4d32a26b88309fe68b292d38471785fec955
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir
ARCH=arc SHELL=/bin/bash kernel/time/
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 >>):
| ^~~~~~~~
include/linux/mm.h:1937:9: note: in expansion of macro 'VM_BUG_ON_PAGE'
1937 | VM_BUG_ON_PAGE(*(unsigned long *)&page->ptl, page);
| ^~~~~~~~~~~~~~
include/linux/compiler.h:64:25: note: previous declaration here
64 | ______f = { \
| ^~~~~~~
include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
| ^~~~~~~~~~
include/linux/mmdebug.h:21:17: note: in expansion of macro 'if'
21 | if (unlikely(cond)) { \
| ^~
include/linux/mm.h:1937:9: note: in expansion of macro 'VM_BUG_ON_PAGE'
1937 | VM_BUG_ON_PAGE(*(unsigned long *)&page->ptl, page);
| ^~~~~~~~~~~~~~
include/linux/mm.h: In function 'page_is_guard':
include/linux/compiler.h:25:39: warning: ignoring attribute 'section
("_ftrace_annotated_branch")' because it conflicts with previous
'section ("_ftrace_branch")' [-Wattributes]
25 | static struct ftrace_likely_data \
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:69:30: note: in definition of macro '__trace_if'
69 | ______r = !!(cond); \
| ^~~~
include/linux/mm.h:2860:9: note: in expansion of macro 'if'
2860 | if (unlikely(!page_ext))
| ^~
include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__'
48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
| ^~~~~~~~~~~~~~~~
include/linux/mm.h:2860:13: note: in expansion of macro 'unlikely'
2860 | if (unlikely(!page_ext))
| ^~~~~~~~
include/linux/compiler.h:64:25: note: previous declaration here
64 | ______f = { \
| ^~~~~~~
include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
| ^~~~~~~~~~
include/linux/mm.h:2860:9: note: in expansion of macro 'if'
2860 | if (unlikely(!page_ext))
| ^~
include/linux/clockchips.h: In function 'div_sc':
include/linux/compiler.h:25:39: warning: ignoring attribute 'section
("_ftrace_annotated_branch")' because it conflicts with previous
'section ("_ftrace_branch")' [-Wattributes]
25 | static struct ftrace_likely_data \
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:69:30: note: in definition of macro '__trace_if'
69 | ______r = !!(cond); \
| ^~~~
include/asm-generic/div64.h:235:16: note: in expansion of macro 'if'
235 | } else if (likely(((n) >> 32) == 0)) { \
| ^~
include/linux/compiler.h:45:26: note: in expansion of macro '__branch_check__'
45 | # define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
| ^~~~~~~~~~~~~~~~
include/asm-generic/div64.h:235:20: note: in expansion of macro 'likely'
235 | } else if (likely(((n) >> 32) == 0)) { \
| ^~~~~~
include/linux/clockchips.h:185:9: note: in expansion of macro 'do_div'
185 | do_div(tmp, nsec);
| ^~~~~~
include/linux/compiler.h:64:25: note: previous declaration here
64 | ______f = { \
| ^~~~~~~
include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
| ^~~~~~~~~~
include/asm-generic/div64.h:235:16: note: in expansion of macro 'if'
235 | } else if (likely(((n) >> 32) == 0)) { \
| ^~
include/linux/clockchips.h:185:9: note: in expansion of macro 'do_div'
185 | do_div(tmp, nsec);
| ^~~~~~
include/linux/device.h: In function 'devm_kmalloc_array':
include/linux/compiler.h:25:39: warning: ignoring attribute 'section
("_ftrace_annotated_branch")' because it conflicts with previous
'section ("_ftrace_branch")' [-Wattributes]
25 | static struct ftrace_likely_data \
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:69:30: note: in definition of macro '__trace_if'
69 | ______r = !!(cond); \
| ^~~~
include/linux/device.h:686:9: note: in expansion of macro 'if'
686 | if (unlikely(check_mul_overflow(n, size, &bytes)))
| ^~
include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__'
48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
| ^~~~~~~~~~~~~~~~
include/linux/device.h:686:13: note: in expansion of macro 'unlikely'
686 | if (unlikely(check_mul_overflow(n, size, &bytes)))
| ^~~~~~~~
include/linux/compiler.h:64:25: note: previous declaration here
64 | ______f = { \
| ^~~~~~~
include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
| ^~~~~~~~~~
include/linux/device.h:686:9: note: in expansion of macro 'if'
686 | if (unlikely(check_mul_overflow(n, size, &bytes)))
| ^~
In file included from include/linux/kvm_host.h:35,
from kernel/time/timekeeping.c:29:
include/uapi/linux/kvm.h: At top level:
> include/uapi/linux/kvm.h:14:10: fatal error: asm/kvm.h: No such
file or directory
14 | #include <asm/kvm.h>
| ^~~~~~~~~~~
compilation terminated.
vim +14 include/uapi/linux/kvm.h
6aa8b732ca01c3 include/linux/kvm.h Avi Kivity 2006-12-10 4
6aa8b732ca01c3 include/linux/kvm.h Avi Kivity 2006-12-10 5 /*
6aa8b732ca01c3 include/linux/kvm.h Avi Kivity 2006-12-10 6 * Userspace
interface for /dev/kvm - kernel based virtual machine
6aa8b732ca01c3 include/linux/kvm.h Avi Kivity 2006-12-10 7 *
dea8caee7b6971 include/linux/kvm.h Rusty Russell 2007-07-17 8 * Note: you
must update KVM_API_VERSION if you change this interface.
6aa8b732ca01c3 include/linux/kvm.h Avi Kivity 2006-12-10 9 */
6aa8b732ca01c3 include/linux/kvm.h Avi Kivity 2006-12-10 10
00bfddaf7f68a6 include/linux/kvm.h Jaswinder Singh Rajput 2009-01-15 11 #include
<linux/types.h>
97646202bc3f19 include/linux/kvm.h Christian Borntraeger 2008-03-12 12 #include
<linux/compiler.h>
6aa8b732ca01c3 include/linux/kvm.h Avi Kivity 2006-12-10 13 #include
<linux/ioctl.h>
f6a40e3bdf5fe0 include/linux/kvm.h Jerone Young 2007-11-19 @14 #include
<asm/kvm.h>
6aa8b732ca01c3 include/linux/kvm.h Avi Kivity 2006-12-10 15
:::::: The code at line 14 was first introduced by commit
:::::: f6a40e3bdf5fe0a7d7d7f2dbc5b10158fbdad968 KVM: Portability: Move kvm_memory_alias to
asm/kvm.h
:::::: TO: Jerone Young <jyoung5(a)us.ibm.com>
:::::: CC: Avi Kivity <avi(a)qumranet.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org