[peterz-queue:master 73/91] arch/x86/include/asm/pgtable_64_types.h:22:34: error: conflicting types for 'pmd_t'
From: kernel test robot
Date: Thu Sep 02 2021 - 04:18:35 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git master
head: 28f5162d11b361a67469b4a84c6e730c6ac2714d
commit: 1809f2b86fe2005566c031d6fb518030ae59e9f5 [73/91] x86/mm/pae: Make pmd_t similar to pte_t
config: um-allmodconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=1809f2b86fe2005566c031d6fb518030ae59e9f5
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue master
git checkout 1809f2b86fe2005566c031d6fb518030ae59e9f5
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=um SHELL=/bin/bash drivers/media/pci/ivtv/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All errors (new ones prefixed by >>):
from include/linux/dmapool.h:14,
from include/linux/pci.h:1466,
from drivers/media/pci/ivtv/ivtv-driver.h:45,
from drivers/media/pci/ivtv/ivtvfb.c:29:
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/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
arch/x86/include/asm/pgtable_types.h:239: warning: "__P111" redefined
239 | #define __P111 PAGE_COPY_EXEC
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1466,
from drivers/media/pci/ivtv/ivtv-driver.h:45,
from drivers/media/pci/ivtv/ivtvfb.c:29:
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/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
arch/x86/include/asm/pgtable_types.h:245: warning: "__S100" redefined
245 | #define __S100 PAGE_READONLY_EXEC
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1466,
from drivers/media/pci/ivtv/ivtv-driver.h:45,
from drivers/media/pci/ivtv/ivtvfb.c:29:
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/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
arch/x86/include/asm/pgtable_types.h:246: warning: "__S101" redefined
246 | #define __S101 PAGE_READONLY_EXEC
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1466,
from drivers/media/pci/ivtv/ivtv-driver.h:45,
from drivers/media/pci/ivtv/ivtvfb.c:29:
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/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
arch/x86/include/asm/pgtable_types.h:247: warning: "__S110" redefined
247 | #define __S110 PAGE_SHARED_EXEC
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1466,
from drivers/media/pci/ivtv/ivtv-driver.h:45,
from drivers/media/pci/ivtv/ivtvfb.c:29:
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/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
arch/x86/include/asm/pgtable_types.h:248: warning: "__S111" redefined
248 | #define __S111 PAGE_SHARED_EXEC
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1466,
from drivers/media/pci/ivtv/ivtv-driver.h:45,
from drivers/media/pci/ivtv/ivtvfb.c:29:
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_types.h:264,
from arch/x86/include/asm/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
arch/x86/include/asm/pgtable_64_types.h:21:34: error: conflicting types for 'pte_t'
21 | typedef struct { pteval_t pte; } pte_t;
| ^~~~~
In file included from include/linux/mm_types_task.h:16,
from include/linux/mm_types.h:5,
from include/linux/buildid.h:5,
from include/linux/module.h:14,
from drivers/media/pci/ivtv/ivtv-driver.h:40,
from drivers/media/pci/ivtv/ivtvfb.c:29:
arch/um/include/asm/page.h:57:39: note: previous declaration of 'pte_t' was here
57 | typedef struct { unsigned long pte; } pte_t;
| ^~~~~
In file included from arch/x86/include/asm/pgtable_types.h:264,
from arch/x86/include/asm/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
>> arch/x86/include/asm/pgtable_64_types.h:22:34: error: conflicting types for 'pmd_t'
22 | typedef struct { pmdval_t pmd; } pmd_t;
| ^~~~~
In file included from include/linux/mm_types_task.h:16,
from include/linux/mm_types.h:5,
from include/linux/buildid.h:5,
from include/linux/module.h:14,
from drivers/media/pci/ivtv/ivtv-driver.h:40,
from drivers/media/pci/ivtv/ivtvfb.c:29:
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/pgtable_types.h:264,
from arch/x86/include/asm/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
arch/x86/include/asm/pgtable_64_types.h:75: warning: "PGDIR_SHIFT" redefined
75 | #define PGDIR_SHIFT 39
|
In file included from arch/um/include/asm/pgtable.h:25,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1466,
from drivers/media/pci/ivtv/ivtv-driver.h:45,
from drivers/media/pci/ivtv/ivtvfb.c:29:
arch/um/include/asm/pgtable-3level.h:15: note: this is the location of the previous definition
15 | #define PGDIR_SHIFT 30
|
In file included from arch/x86/include/asm/pgtable_types.h:264,
from arch/x86/include/asm/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
arch/x86/include/asm/pgtable_64_types.h:77: warning: "MAX_PTRS_PER_P4D" redefined
77 | #define MAX_PTRS_PER_P4D 1
|
In file included from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1466,
from drivers/media/pci/ivtv/ivtv-driver.h:45,
from drivers/media/pci/ivtv/ivtvfb.c:29:
include/linux/pgtable.h:1629: note: this is the location of the previous definition
1629 | #define MAX_PTRS_PER_P4D PTRS_PER_P4D
|
In file included from arch/x86/include/asm/pgtable_types.h:264,
from arch/x86/include/asm/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
arch/x86/include/asm/pgtable_64_types.h:84: warning: "PUD_SHIFT" redefined
84 | #define PUD_SHIFT 30
|
In file included from arch/um/include/asm/pgtable-3level.h:10,
from arch/um/include/asm/pgtable.h:25,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1466,
from drivers/media/pci/ivtv/ivtv-driver.h:45,
from drivers/media/pci/ivtv/ivtvfb.c:29:
include/asm-generic/pgtable-nopud.h:18: note: this is the location of the previous definition
18 | #define PUD_SHIFT P4D_SHIFT
|
In file included from arch/x86/include/asm/pgtable_types.h:264,
from arch/x86/include/asm/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
arch/x86/include/asm/pgtable_64_types.h:85: warning: "PTRS_PER_PUD" redefined
85 | #define PTRS_PER_PUD 512
|
In file included from arch/um/include/asm/pgtable-3level.h:10,
from arch/um/include/asm/pgtable.h:25,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1466,
from drivers/media/pci/ivtv/ivtv-driver.h:45,
from drivers/media/pci/ivtv/ivtvfb.c:29:
include/asm-generic/pgtable-nopud.h:19: note: this is the location of the previous definition
19 | #define PTRS_PER_PUD 1
|
In file included from arch/x86/include/asm/pgtable_types.h:264,
from arch/x86/include/asm/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
arch/x86/include/asm/pgtable_64_types.h:99: warning: "PMD_SIZE" redefined
99 | #define PMD_SIZE (_AC(1, UL) << PMD_SHIFT)
|
In file included from arch/um/include/asm/pgtable.h:25,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1466,
from drivers/media/pci/ivtv/ivtv-driver.h:45,
from drivers/media/pci/ivtv/ivtvfb.c:29:
arch/um/include/asm/pgtable-3level.h:27: note: this is the location of the previous definition
27 | #define PMD_SIZE (1UL << PMD_SHIFT)
|
In file included from arch/x86/include/asm/pgtable_types.h:264,
from arch/x86/include/asm/memtype.h:6,
from drivers/media/pci/ivtv/ivtvfb.c:40:
arch/x86/include/asm/pgtable_64_types.h:100: warning: "PMD_MASK" redefined
vim +/pmd_t +22 arch/x86/include/asm/pgtable_64_types.h
20
21 typedef struct { pteval_t pte; } pte_t;
> 22 typedef struct { pmdval_t pmd; } pmd_t;
23
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip