lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202107190433.6lCyuYKW-lkp@intel.com>
Date:   Mon, 19 Jul 2021 04:56:38 +0800
From:   kernel test robot <lkp@...el.com>
To:     Peter Zijlstra <peterz@...radead.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [peterz-queue:master 63/117]
 arch/x86/include/asm/pgtable_64_types.h:22:34: error: conflicting types for
 'pmd_t'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git master
head:   5cc6b2c3c0139891e38a2fcce98e03ff705b0941
commit: 7a3a77fc49a679bc41c237cc01dce34c6fc8e1b1 [63/117] x86/mm/pae: Make pmd_t similar to pte_t
config: um-allmodconfig (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=7a3a77fc49a679bc41c237cc01dce34c6fc8e1b1
        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 7a3a77fc49a679bc41c237cc01dce34c6fc8e1b1
        # save the attached .config to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=um SHELL=/bin/bash drivers/dma/idxd/ drivers/media/pci/ivtv/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

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:1653: note: this is the location of the previous definition
    1653 | #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@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (62614 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ