tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 93e3864c8d0c394f924882214846e755b95a8e83
commit: a39af6150bf16871cff0479ede93e809f4aa21a4 [34/40] BACKPORT: FROMLIST: x86/kvm: Add
definitions for virtual suspend time injection
config: um-x86_64_defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add chrome-os
https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.4
git checkout a39af6150bf16871cff0479ede93e809f4aa21a4
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=um SUBARCH=x86_64 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 error/warnings (new ones prefixed by >>):
cc1: warning: arch/um/include/uapi: No such file or directory [-Wmissing-include-dirs]
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/clocksource.h:13,
from include/linux/timekeeper_internal.h:10,
from kernel/time/timekeeping.c:6:
include/asm-generic/fixmap.h: In function 'fix_to_virt':
include/asm-generic/fixmap.h:32:19: warning: comparison of unsigned expression >= 0
is always true [-Wtype-limits]
32 | BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
| ^~
include/linux/compiler.h:397:9: note: in definition of macro
'__compiletime_assert'
397 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler.h:417:2: note: in expansion of macro
'_compiletime_assert'
417 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
include/asm-generic/fixmap.h:32:2: note: in expansion of macro 'BUILD_BUG_ON'
32 | BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
| ^~~~~~~~~~~~
In file included from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/ptrace.h:7,
from include/linux/audit.h:13,
from kernel/time/timekeeping.c:24:
arch/um/include/asm/uaccess.h: In function '__access_ok':
arch/um/include/asm/uaccess.h:17:29: warning: comparison of unsigned expression >= 0
is always true [-Wtype-limits]
17 | (((unsigned long) (addr) >= FIXADDR_USER_START) && \
| ^~
arch/um/include/asm/uaccess.h:45:3: note: in expansion of macro
'__access_ok_vsyscall'
45 | __access_ok_vsyscall(addr, size) ||
| ^~~~~~~~~~~~~~~~~~~~
In file included from arch/x86/include/asm/kvm_host.h:30,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
arch/x86/um/asm/desc.h: At top level:
> arch/x86/um/asm/desc.h:7: warning: "LDT_empty"
redefined
7 | #define LDT_empty(info) (\
|
In file included from arch/um/include/asm/mmu.h:10,
from include/linux/mm_types.h:20,
from include/linux/mmzone.h:21,
from include/linux/gfp.h:6,
from include/linux/xarray.h:14,
from include/linux/radix-tree.h:18,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/of.h:17,
from include/linux/clocksource.h:19,
from include/linux/timekeeper_internal.h:10,
from kernel/time/timekeeping.c:6:
arch/x86/um/asm/mm_context.h:63: note: this is the location of the previous definition
63 | #define LDT_empty(info) (_LDT_empty(info) && ((info)->lm == 0))
|
In file included from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
arch/x86/include/asm/page_types.h:11: warning: "PAGE_SIZE" redefined
11 | #define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT)
|
In file included from arch/um/include/asm/thread_info.h:15,
from include/linux/thread_info.h:39,
from include/asm-generic/preempt.h:5,
from ./arch/um/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/clocksource.h:13,
from include/linux/timekeeper_internal.h:10,
from kernel/time/timekeeping.c:6:
arch/um/include/asm/page.h:14: note: this is the location of the previous definition
14 | #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT)
|
In file included from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
arch/x86/include/asm/page_types.h:36: warning: "PAGE_OFFSET" redefined
36 | #define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
|
In file included from arch/um/include/asm/thread_info.h:15,
from include/linux/thread_info.h:39,
from include/asm-generic/preempt.h:5,
from ./arch/um/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/clocksource.h:13,
from include/linux/timekeeper_internal.h:10,
from kernel/time/timekeeping.c:6:
arch/um/include/asm/page.h:93: note: this is the location of the previous definition
93 | #define PAGE_OFFSET (uml_physmem)
|
In file included from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
arch/x86/include/asm/page_types.h:38: warning: "VM_DATA_DEFAULT_FLAGS"
redefined
38 | #define VM_DATA_DEFAULT_FLAGS \
|
In file included from arch/um/include/asm/page.h:23,
from arch/um/include/asm/thread_info.h:15,
from include/linux/thread_info.h:39,
from include/asm-generic/preempt.h:5,
from ./arch/um/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/clocksource.h:13,
from include/linux/timekeeper_internal.h:10,
from kernel/time/timekeeping.c:6:
arch/x86/um/asm/vm-flags.h:19: note: this is the location of the previous definition
19 | #define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \
|
In file included from arch/x86/include/asm/page_types.h:48,
from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
--
from kernel/time/timekeeping.c:11:
arch/um/include/asm/pgtable.h:48: note: this is the location of the previous
definition
48 | #define VMALLOC_END (FIXADDR_START-2*PAGE_SIZE)
|
In file included from arch/x86/include/asm/pgtable_types.h:250,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
arch/x86/include/asm/pgtable_64_types.h:144: warning: "MODULES_VADDR"
redefined
144 | #define MODULES_VADDR (__START_KERNEL_map + KERNEL_IMAGE_SIZE)
|
In file included from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/pgtable.h:49: note: this is the location of the previous
definition
49 | #define MODULES_VADDR VMALLOC_START
|
In file included from arch/x86/include/asm/pgtable_types.h:250,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
arch/x86/include/asm/pgtable_64_types.h:146: warning: "MODULES_END"
redefined
146 | #define MODULES_END _AC(0xffffffffff000000, UL)
|
In file included from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/pgtable.h:50: note: this is the location of the previous
definition
50 | #define MODULES_END VMALLOC_END
|
In file included from arch/x86/include/asm/pgtable_types.h:250,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
arch/x86/include/asm/pgtable_64_types.h:147: warning: "MODULES_LEN"
redefined
147 | #define MODULES_LEN (MODULES_END - MODULES_VADDR)
|
In file included from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/pgtable.h:51: note: this is the location of the previous
definition
51 | #define MODULES_LEN (MODULES_VADDR - MODULES_END)
|
In file included from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
arch/x86/include/asm/pgtable_types.h:266:47: error: conflicting types for
'pgprot_t'
266 | typedef struct pgprot { pgprotval_t pgprot; } pgprot_t;
| ^~~~~~~~
In file included from arch/um/include/asm/thread_info.h:15,
from include/linux/thread_info.h:39,
from include/asm-generic/preempt.h:5,
from ./arch/um/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/clocksource.h:13,
from include/linux/timekeeper_internal.h:10,
from kernel/time/timekeeping.c:6:
arch/um/include/asm/page.h:80:42: note: previous declaration of 'pgprot_t' was
here
80 | typedef struct { unsigned long pgprot; } pgprot_t;
| ^~~~~~~~
In file included from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
arch/x86/include/asm/pgtable_types.h:268:34: error: conflicting types for
'pgd_t'
268 | typedef struct { pgdval_t pgd; } pgd_t;
| ^~~~~
In file included from arch/um/include/asm/thread_info.h:15,
from include/linux/thread_info.h:39,
from include/asm-generic/preempt.h:5,
from ./arch/um/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/clocksource.h:13,
from include/linux/timekeeper_internal.h:10,
from kernel/time/timekeeping.c:6:
arch/um/include/asm/page.h:58:39: note: previous declaration of 'pgd_t' was
here
58 | typedef struct { unsigned long pgd; } pgd_t;
| ^~~~~
In file included from include/asm-generic/pgtable-nop4d-hack.h:6,
from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
> include/asm-generic/5level-fixup.h:14:18: error: conflicting
types for 'pgd_t'
14 | #define p4d_t pgd_t
| ^~~~~
include/asm-generic/pgtable-nop4d.h:9:31: note: in expansion of macro 'p4d_t'
9 | typedef struct { pgd_t pgd; } p4d_t;
| ^~~~~
In file included from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
arch/x86/include/asm/pgtable_types.h:268:34: note: previous declaration of
'pgd_t' was here
268 | typedef struct { pgdval_t pgd; } pgd_t;
| ^~~~~
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
> include/asm-generic/pgtable-nop4d.h:14: warning:
"P4D_SIZE" redefined
14 | #define P4D_SIZE (1UL <<
P4D_SHIFT)
|
In file included from include/asm-generic/pgtable-nop4d-hack.h:6,
from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/5level-fixup.h:9: note: this is the location of the previous
definition
9 | #define P4D_SIZE PGDIR_SIZE
|
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
> include/asm-generic/pgtable-nop4d.h:15: warning:
"P4D_MASK" redefined
15 | #define P4D_MASK (~(P4D_SIZE-1))
|
In file included from include/asm-generic/pgtable-nop4d-hack.h:6,
from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/5level-fixup.h:10: note: this is the location of the previous
definition
10 | #define P4D_MASK PGDIR_MASK
|
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
> include/asm-generic/pgtable-nop4d.h:22:19: error: conflicting
types for 'pgd_none'
22 | static inline int pgd_none(pgd_t pgd) {
return 0; }
| ^~~~~~~~
In file included from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/pgtable-nop4d-hack.h:27:19: note: previous definition of
'pgd_none' was here
27 | static inline int pgd_none(pgd_t pgd) { return 0; }
| ^~~~~~~~
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
> include/asm-generic/pgtable-nop4d.h:23:19: error: conflicting
types for 'pgd_bad'
23 | static inline int pgd_bad(pgd_t pgd) {
return 0; }
| ^~~~~~~
In file included from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/pgtable-nop4d-hack.h:28:19: note: previous definition of
'pgd_bad' was here
28 | static inline int pgd_bad(pgd_t pgd) { return 0; }
| ^~~~~~~
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
> include/asm-generic/pgtable-nop4d.h:24:19: error: conflicting
types for 'pgd_present'
24 | static inline int pgd_present(pgd_t pgd)
{ return 1; }
| ^~~~~~~~~~~
In file included from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/pgtable-nop4d-hack.h:29:19: note: previous definition of
'pgd_present' was here
29 | static inline int pgd_present(pgd_t pgd) { return 1; }
| ^~~~~~~~~~~
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
> include/asm-generic/pgtable-nop4d.h:25:20: error: conflicting
types for 'pgd_clear'
25 | static inline void pgd_clear(pgd_t *pgd) {
}
| ^~~~~~~~~
In file included from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/pgtable-nop4d-hack.h:30:20: note: previous definition of
'pgd_clear' was here
30 | static inline void pgd_clear(pgd_t *pgd) { }
| ^~~~~~~~~
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
> include/asm-generic/pgtable-nop4d.h:26: warning:
"p4d_ERROR" redefined
26 | #define p4d_ERROR(p4d)
(pgd_ERROR((p4d).pgd))
|
In file included from include/asm-generic/pgtable-nop4d-hack.h:6,
from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/5level-fixup.h:40: note: this is the location of the previous
definition
40 | #define p4d_ERROR(p4d) do { } while (0)
|
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
> include/asm-generic/pgtable-nop4d.h:28: warning:
"pgd_populate" redefined
28 | #define pgd_populate(mm, pgd, p4d) do
{ } while (0)
|
In file included from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/pgtable-nop4d-hack.h:33: note: this is the location of the previous
definition
33 | #define pgd_populate(mm, pgd, pud) do { } while (0)
|
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
> include/asm-generic/pgtable-nop4d.h:29: warning:
"pgd_populate_safe" redefined
29 | #define pgd_populate_safe(mm,
pgd, p4d) do { } while (0)
|
In file included from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/pgtable-nop4d-hack.h:34: note: this is the location of the previous
definition
34 | #define pgd_populate_safe(mm, pgd, pud) do { } while (0)
|
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
> include/asm-generic/pgtable-nop4d.h:34: warning:
"set_pgd" redefined
34 | #define set_pgd(pgdptr, pgdval)
set_p4d((p4d_t *)(pgdptr), (p4d_t) { pgdval })
|
In file included from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/pgtable-nop4d-hack.h:39: note: this is the location of the previous
definition
39 | #define set_pgd(pgdptr, pgdval) set_pud((pud_t *)(pgdptr), (pud_t) { pgdval })
|
In file included from include/asm-generic/pgtable-nop4d-hack.h:6,
from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
> include/asm-generic/pgtable-nop4d.h:36:39: error: expected
')' before '*' token
36 | static inline p4d_t
*p4d_offset(pgd_t *pgd, unsigned long address)
| ^
include/asm-generic/5level-fixup.h:21:34: note: in definition of macro
'p4d_offset'
21 | #define p4d_offset(pgd, start) (pgd)
| ^~~
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
> include/asm-generic/pgtable-nop4d.h:41: warning:
"p4d_val" redefined
41 | #define p4d_val(x) (pgd_val((x).pgd))
|
In file included from include/asm-generic/pgtable-nop4d-hack.h:6,
from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/5level-fixup.h:42: note: this is the location of the previous
definition
42 | #define p4d_val(p4d) pgd_val(p4d)
|
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
> include/asm-generic/pgtable-nop4d.h:42: warning:
"__p4d" redefined
42 | #define __p4d(x) ((p4d_t) { __pgd(x) })
|
In file included from include/asm-generic/pgtable-nop4d-hack.h:6,
from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/5level-fixup.h:48: note: this is the location of the previous
definition
48 | #define __p4d(x) __pgd(x)
|
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
> include/asm-generic/pgtable-nop4d.h:44: warning:
"pgd_page" redefined
44 | #define pgd_page(pgd)
(p4d_page((p4d_t){ pgd }))
|
In file included from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/pgtable-nop4d-hack.h:49: note: this is the location of the previous
definition
49 | #define pgd_page(pgd) (pud_page((pud_t){ pgd }))
|
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
> include/asm-generic/pgtable-nop4d.h:45: warning:
"pgd_page_vaddr" redefined
45 | #define pgd_page_vaddr(pgd)
(p4d_page_vaddr((p4d_t){ pgd }))
|
In file included from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/pgtable-nop4d-hack.h:50: note: this is the location of the previous
definition
50 | #define pgd_page_vaddr(pgd) (pud_page_vaddr((pud_t){ pgd }))
|
In file included from arch/x86/include/asm/pgtable_types.h:321,
from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
> include/asm-generic/pgtable-nop4d.h:53: warning:
"__p4d_free_tlb" redefined
53 | #define __p4d_free_tlb(tlb, x, a)
do { } while (0)
|
In file included from include/asm-generic/pgtable-nop4d-hack.h:6,
from include/asm-generic/pgtable-nopud.h:8,
from arch/um/include/asm/pgtable-3level.h:11,
from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/5level-fixup.h:54: note: this is the location of the previous
definition
54 | #define __p4d_free_tlb(tlb, x, addr) do { } while (0)
|
In file included from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
arch/x86/include/asm/pgtable_types.h: In function 'native_make_pud':
> arch/x86/include/asm/pgtable_types.h:351:20: error:
'pud_t' {aka 'struct <anonymous>'} has no member named
'p4d'; did you mean 'pgd'?
351 | return (pud_t) { .p4d.pgd =
native_make_pgd(val) };
| ^~~
| pgd
arch/x86/include/asm/pgtable_types.h:351:30: error: incompatible types when
initializing type 'long unsigned int' using type 'pgd_t' {aka 'struct
<anonymous>'}
351 | return (pud_t) { .p4d.pgd = native_make_pgd(val) };
| ^~~~~~~~~~~~~~~
arch/x86/include/asm/pgtable_types.h: In function 'native_pud_val':
arch/x86/include/asm/pgtable_types.h:356:28: error: 'pud_t' {aka 'struct
<anonymous>'} has no member named 'p4d'; did you mean 'pgd'?
356 | return native_pgd_val(pud.p4d.pgd);
| ^~~
| pgd
> arch/x86/include/asm/pgtable_types.h:354:45: warning: parameter
'pud' set but not used [-Wunused-but-set-parameter]
354 | static inline
pudval_t native_pud_val(pud_t pud)
| ~~~~~~^~~
arch/x86/include/asm/pgtable_types.h: At top level:
arch/x86/include/asm/pgtable_types.h:361:34: error: conflicting types for
'pmd_t'
361 | typedef struct { pmdval_t pmd; } pmd_t;
| ^~~~~
In file included from arch/um/include/asm/thread_info.h:15,
from include/linux/thread_info.h:39,
from include/asm-generic/preempt.h:5,
from ./arch/um/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/clocksource.h:13,
from include/linux/timekeeper_internal.h:10,
from kernel/time/timekeeping.c:6:
arch/um/include/asm/page.h:61:39: note: previous declaration of 'pmd_t' was
here
61 | typedef struct { unsigned long pmd; } pmd_t;
| ^~~~~
In file included from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
arch/x86/include/asm/pgtable_types.h:515: warning: "pgprot_writecombine"
redefined
515 | #define pgprot_writecombine pgprot_writecombine
|
In file included from arch/um/include/asm/pgtable.h:363,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/pgtable.h:505: note: this is the location of the previous
definition
505 | #define pgprot_writecombine pgprot_noncached
|
In file included from arch/x86/include/asm/pat.h:6,
from arch/x86/include/asm/mtrr.h:27,
from arch/x86/include/asm/kvm_host.h:31,
from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
arch/x86/include/asm/pgtable_types.h:518: warning: "pgprot_writethrough"
redefined
518 | #define pgprot_writethrough pgprot_writethrough
|
In file included from arch/um/include/asm/pgtable.h:363,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
include/asm-generic/pgtable.h:509: note: this is the location of the previous
definition
509 | #define pgprot_writethrough pgprot_noncached
|
In file included from include/linux/kvm_host.h:37,
from kernel/time/timekeeping.c:25:
arch/x86/include/asm/kvm_host.h:474:29: error: 'INTEL_PMC_MAX_GENERIC'
undeclared here (not in a function)
474 | struct kvm_pmc gp_counters[INTEL_PMC_MAX_GENERIC];
| ^~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/kvm_host.h:475:32: error: 'INTEL_PMC_MAX_FIXED' undeclared
here (not in a function)
475 | struct kvm_pmc fixed_counters[INTEL_PMC_MAX_FIXED];
| ^~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/kvm_host.h: In function 'read_msr':
arch/x86/include/asm/kvm_host.h:1508:2: error: implicit declaration of function
'rdmsrl' [-Werror=implicit-function-declaration]
1508 | rdmsrl(msr, value);
| ^~~~~~
arch/x86/include/asm/kvm_host.h: In function 'kvm_irq_is_postable':
arch/x86/include/asm/kvm_host.h:1628:32: error: 'APIC_DM_FIXED' undeclared
(first use in this function)
1628 | return (irq->delivery_mode == APIC_DM_FIXED ||
| ^~~~~~~~~~~~~
arch/x86/include/asm/kvm_host.h:1628:32: note: each undeclared identifier is reported
only once for each function it appears in
arch/x86/include/asm/kvm_host.h:1629:25: error: 'APIC_DM_LOWEST' undeclared
(first use in this function)
1629 | irq->delivery_mode == APIC_DM_LOWEST);
| ^~~~~~~~~~~~~~
arch/x86/include/asm/kvm_host.h: In function 'kvm_cpu_get_apicid':
arch/x86/include/asm/kvm_host.h:1652:9: error: 'BAD_APICID' undeclared (first
use in this function)
1652 | return BAD_APICID;
| ^~~~~~~~~~
cc1: some warnings being treated as errors
vim +/INTEL_PMC_MAX_GENERIC +474 arch/x86/include/asm/kvm_host.h
f5132b01386b5a6 Gleb Natapov 2011-11-10 460
f5132b01386b5a6 Gleb Natapov 2011-11-10 461 struct kvm_pmu {
f5132b01386b5a6 Gleb Natapov 2011-11-10 462 unsigned nr_arch_gp_counters;
f5132b01386b5a6 Gleb Natapov 2011-11-10 463 unsigned nr_arch_fixed_counters;
f5132b01386b5a6 Gleb Natapov 2011-11-10 464 unsigned available_event_types;
f5132b01386b5a6 Gleb Natapov 2011-11-10 465 u64 fixed_ctr_ctrl;
f5132b01386b5a6 Gleb Natapov 2011-11-10 466 u64 global_ctrl;
f5132b01386b5a6 Gleb Natapov 2011-11-10 467 u64 global_status;
f5132b01386b5a6 Gleb Natapov 2011-11-10 468 u64 global_ovf_ctrl;
f5132b01386b5a6 Gleb Natapov 2011-11-10 469 u64 counter_bitmask[2];
f5132b01386b5a6 Gleb Natapov 2011-11-10 470 u64 global_ctrl_mask;
c715eb9fe9027ed Luwei Kang 2019-02-18 471 u64 global_ovf_ctrl_mask;
103af0a98788592 Andi Kleen 2013-07-18 472 u64 reserved_bits;
f5132b01386b5a6 Gleb Natapov 2011-11-10 473 u8 version;
15c7ad51ad58cbd Robert Richter 2012-06-20 @474 struct kvm_pmc
gp_counters[INTEL_PMC_MAX_GENERIC];
15c7ad51ad58cbd Robert Richter 2012-06-20 @475 struct kvm_pmc
fixed_counters[INTEL_PMC_MAX_FIXED];
f5132b01386b5a6 Gleb Natapov 2011-11-10 476 struct irq_work irq_work;
f5132b01386b5a6 Gleb Natapov 2011-11-10 477 u64 reprogram_pmi;
f5132b01386b5a6 Gleb Natapov 2011-11-10 478 };
f5132b01386b5a6 Gleb Natapov 2011-11-10 479
:::::: The code at line 474 was first introduced by commit
:::::: 15c7ad51ad58cbd3b46112c1840bc7228bd354bf perf/x86: Rename Intel specific macros
:::::: TO: Robert Richter <robert.richter(a)amd.com>
:::::: CC: Ingo Molnar <mingo(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org