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-i386_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=i386 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 >>):
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:65: note: this is the location of the previous definition
65 | #define LDT_empty(info) (_LDT_empty(info))
|
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:12: note: this is the location of the previous definition
12 | #define VM_DATA_DEFAULT_FLAGS \
|
In file included from arch/x86/include/asm/page_types.h:51,
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_32_types.h:22: warning:
"THREAD_SIZE_ORDER" redefined
22 | #define THREAD_SIZE_ORDER 1
|
In file included 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/thread_info.h:9: note: this is the location of the previous
definition
9 | #define THREAD_SIZE_ORDER CONFIG_KERNEL_STACK_ORDER
|
In file included from arch/x86/include/asm/page_types.h:51,
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_32_types.h:23: warning:
"THREAD_SIZE" redefined
23 | #define THREAD_SIZE (PAGE_SIZE
<< THREAD_SIZE_ORDER)
|
In file included 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/thread_info.h:10: note: this is the location of the previous
definition
10 | #define THREAD_SIZE ((1 << CONFIG_KERNEL_STACK_ORDER) * PAGE_SIZE)
|
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:52: warning: "IOREMAP_MAX_ORDER" redefined
52 | #define IOREMAP_MAX_ORDER (PMD_SHIFT)
|
In file included from include/asm-generic/io.h:887,
from arch/um/include/asm/io.h:16,
from include/linux/clocksource.h:21,
from include/linux/timekeeper_internal.h:10,
from kernel/time/timekeeping.c:6:
include/linux/vmalloc.h:38: note: this is the location of the previous definition
38 | #define IOREMAP_MAX_ORDER (7 + PAGE_SHIFT) /* 128 pages */
|
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:42: warning: "_PAGE_PRESENT" redefined
42 | #define _PAGE_PRESENT (_AT(pteval_t, 1) << _PAGE_BIT_PRESENT)
|
In file included from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/pgtable.h:13: note: this is the location of the previous
definition
13 | #define _PAGE_PRESENT 0x001
|
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:43: warning: "_PAGE_RW" redefined
43 | #define _PAGE_RW (_AT(pteval_t, 1) << _PAGE_BIT_RW)
|
In file included from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/pgtable.h:16: note: this is the location of the previous
definition
16 | #define _PAGE_RW 0x020
|
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:44: warning: "_PAGE_USER" redefined
44 | #define _PAGE_USER (_AT(pteval_t, 1) << _PAGE_BIT_USER)
|
In file included from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/pgtable.h:17: note: this is the location of the previous
definition
17 | #define _PAGE_USER 0x040
|
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:47: warning: "_PAGE_ACCESSED" redefined
47 | #define _PAGE_ACCESSED (_AT(pteval_t, 1) << _PAGE_BIT_ACCESSED)
|
In file included from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/pgtable.h:18: note: this is the location of the previous
definition
18 | #define _PAGE_ACCESSED 0x080
|
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:48: warning: "_PAGE_DIRTY" redefined
48 | #define _PAGE_DIRTY (_AT(pteval_t, 1) << _PAGE_BIT_DIRTY)
|
In file included from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/pgtable.h:19: note: this is the location of the previous
definition
19 | #define _PAGE_DIRTY 0x100
|
In file included from arch/x86/include/asm/pat.h:6,
--
75 | #define __P100 PAGE_READONLY
|
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:223: warning: "__P101" redefined
223 | #define __P101 PAGE_READONLY_EXEC
|
In file included from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/pgtable.h:76: note: this is the location of the previous
definition
76 | #define __P101 PAGE_READONLY
|
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:224: warning: "__P110" redefined
224 | #define __P110 PAGE_COPY_EXEC
|
In file included from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/pgtable.h:77: note: this is the location of the previous
definition
77 | #define __P110 PAGE_COPY
|
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:225: warning: "__P111" redefined
225 | #define __P111 PAGE_COPY_EXEC
|
In file included from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/pgtable.h:78: note: this is the location of the previous
definition
78 | #define __P111 PAGE_COPY
|
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:231: warning: "__S100" redefined
231 | #define __S100 PAGE_READONLY_EXEC
|
In file included from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/pgtable.h:84: note: this is the location of the previous
definition
84 | #define __S100 PAGE_READONLY
|
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:232: warning: "__S101" redefined
232 | #define __S101 PAGE_READONLY_EXEC
|
In file included from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/pgtable.h:85: note: this is the location of the previous
definition
85 | #define __S101 PAGE_READONLY
|
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:233: warning: "__S110" redefined
233 | #define __S110 PAGE_SHARED_EXEC
|
In file included from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/pgtable.h:86: note: this is the location of the previous
definition
86 | #define __S110 PAGE_SHARED
|
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:234: warning: "__S111" redefined
234 | #define __S111 PAGE_SHARED_EXEC
|
In file included from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/pgtable.h:87: note: this is the location of the previous
definition
87 | #define __S111 PAGE_SHARED
|
In file included from arch/x86/include/asm/pgtable_32_types.h:15,
from arch/x86/include/asm/pgtable_types.h:248,
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-2level_types.h:18:3: error:
conflicting types for 'pte_t'
18 | } pte_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:37:39: note: previous declaration of 'pte_t' was
here
37 | typedef struct { unsigned long pte; } pte_t;
| ^~~~~
In file included from arch/x86/include/asm/pgtable_32_types.h:15,
from arch/x86/include/asm/pgtable_types.h:248,
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-2level_types.h:27: warning:
"PGDIR_SHIFT" redefined
27 | #define PGDIR_SHIFT 22
|
In file included from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/pgtable-3level.h:18: note: this is the location of the previous
definition
18 | #define PGDIR_SHIFT 31
|
In file included from arch/x86/include/asm/pgtable_32_types.h:15,
from arch/x86/include/asm/pgtable_types.h:248,
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-2level_types.h:36: warning:
"PTRS_PER_PTE" redefined
36 | #define PTRS_PER_PTE 1024
|
In file included from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/pgtable-3level.h:35: note: this is the location of the previous
definition
35 | #define PTRS_PER_PTE 512
|
In file included from arch/x86/include/asm/pgtable_types.h:248,
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_32_types.h:21: warning:
"PGDIR_MASK" redefined
21 | #define PGDIR_MASK (~(PGDIR_SIZE - 1))
|
In file included from arch/um/include/asm/pgtable.h:25,
from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/pgtable-3level.h:21: note: this is the location of the previous
definition
21 | #define PGDIR_MASK (~(PGDIR_SIZE-1))
|
In file included from arch/x86/include/asm/pgtable_types.h:248,
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_32_types.h:30: warning:
"VMALLOC_OFFSET" redefined
30 | #define VMALLOC_OFFSET (8 * 1024 *
1024)
|
In file included from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/pgtable.h:45: note: this is the location of the previous
definition
45 | #define VMALLOC_OFFSET (__va_space)
|
In file included from arch/x86/include/asm/pgtable_types.h:248,
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_32_types.h:36: warning:
"VMALLOC_START" redefined
36 | #define VMALLOC_START ((unsigned
long)high_memory + VMALLOC_OFFSET)
|
In file included from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/pgtable.h:46: note: this is the location of the previous
definition
46 | #define VMALLOC_START ((end_iomem + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
In file included from arch/x86/include/asm/pgtable_types.h:248,
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_32_types.h:58: warning:
"PKMAP_BASE" redefined
58 | #define PKMAP_BASE \
|
In file included from include/linux/mm.h:99,
from kernel/time/timekeeping.c:11:
arch/um/include/asm/pgtable.h:47: note: this is the location of the previous
definition
47 | #define PKMAP_BASE ((FIXADDR_START - LAST_PKMAP * PAGE_SIZE) & PMD_MASK)
|
In file included from arch/x86/include/asm/pgtable_types.h:248,
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_32_types.h:64: warning:
"VMALLOC_END" redefined
64 | # define VMALLOC_END (LDT_BASE_ADDR - 2
* PAGE_SIZE)
|
In file included from include/linux/mm.h:99,
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/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:39:39: note: previous declaration of 'pgd_t' was
here
39 | 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
..
vim +/pte_t +18 arch/x86/include/asm/pgtable-2level_types.h
54321d947ae9d6 arch/x86/include/asm/pgtable-2level_types.h Jeremy Fitzhardinge 2009-02-11
14
54321d947ae9d6 arch/x86/include/asm/pgtable-2level_types.h Jeremy Fitzhardinge 2009-02-11
15 typedef union {
54321d947ae9d6 arch/x86/include/asm/pgtable-2level_types.h Jeremy Fitzhardinge 2009-02-11
16 pteval_t pte;
54321d947ae9d6 arch/x86/include/asm/pgtable-2level_types.h Jeremy Fitzhardinge 2009-02-11
17 pteval_t pte_low;
54321d947ae9d6 arch/x86/include/asm/pgtable-2level_types.h Jeremy Fitzhardinge 2009-02-11
@18 } pte_t;
54321d947ae9d6 arch/x86/include/asm/pgtable-2level_types.h Jeremy Fitzhardinge 2009-02-11
19 #endif /* !__ASSEMBLY__ */
54321d947ae9d6 arch/x86/include/asm/pgtable-2level_types.h Jeremy Fitzhardinge 2009-02-11
20
5311ab62cdc778 include/asm-i386/pgtable-2level-defs.h Jeremy Fitzhardinge 2007-05-02
21 #define SHARED_KERNEL_PMD 0
5311ab62cdc778 include/asm-i386/pgtable-2level-defs.h Jeremy Fitzhardinge 2007-05-02
22
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16
23 /*
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16
24 * traditional i386 two-level paging structure:
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16
25 */
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16
26
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16
@27 #define PGDIR_SHIFT 22
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16
28 #define PTRS_PER_PGD 1024
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16
29
9b3651cbc26cfc arch/x86/include/asm/pgtable-2level_types.h Jeremy Fitzhardinge 2009-02-13
30
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16
31 /*
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16
32 * the i386 is two-level, so we don't really have any
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16
33 * PMD directory physically.
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16
34 */
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16
35
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16
@36 #define PTRS_PER_PTE 1024
^1da177e4c3f41 include/asm-i386/pgtable-2level-defs.h Linus Torvalds 2005-04-16
37
:::::: The code at line 18 was first introduced by commit
:::::: 54321d947ae9d6a051b81e3eccaf2d8658aeecc6 x86: move pte types into pgtable*.h
:::::: TO: Jeremy Fitzhardinge <jeremy.fitzhardinge(a)citrix.com>
:::::: CC: Jeremy Fitzhardinge <jeremy.fitzhardinge(a)citrix.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org