[linux-next:master 13933/14098] arch/x86/include/asm/pgtable_64_types.h:76: warning: "MAX_PTRS_PER_P4D" redefined

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   fb0ca446157a86b75502c1636b0d81e642fe6bf1
commit: f98420444c5a26b7687fc293b06c529b697a14ca [13933/14098] Merge remote-tracking branch 'uml/linux-next'
config: um-allyesconfig (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/next/linux-next.git/commit/?id=f98420444c5a26b7687fc293b06c529b697a14ca
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout f98420444c5a26b7687fc293b06c529b697a14ca
        # save the attached .config to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=um SHELL=/bin/bash drivers/infiniband/hw/qib/

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

All warnings (new ones prefixed by >>):

                    from arch/x86/include/asm/mtrr.h:27,
                    from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
   arch/x86/include/asm/pgtable_types.h:247: warning: "__S100" redefined
     247 | #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:1463,
                    from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
   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 arch/x86/include/asm/mtrr.h:27,
                    from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
   arch/x86/include/asm/pgtable_types.h:248: warning: "__S101" redefined
     248 | #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:1463,
                    from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
   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 arch/x86/include/asm/mtrr.h:27,
                    from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
   arch/x86/include/asm/pgtable_types.h:249: warning: "__S110" redefined
     249 | #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:1463,
                    from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
   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 arch/x86/include/asm/mtrr.h:27,
                    from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
   arch/x86/include/asm/pgtable_types.h:250: warning: "__S111" redefined
     250 | #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:1463,
                    from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
   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:266,
                    from arch/x86/include/asm/memtype.h:6,
                    from arch/x86/include/asm/mtrr.h:27,
                    from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
   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 arch/um/include/asm/thread_info.h:15,
                    from include/linux/thread_info.h:59,
                    from include/asm-generic/current.h:5,
                    from ./arch/um/include/generated/asm/current.h:1,
                    from include/linux/mutex.h:14,
                    from include/linux/kernfs.h:12,
                    from include/linux/sysfs.h:16,
                    from include/linux/kobject.h:20,
                    from include/linux/pci.h:35,
                    from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
   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:266,
                    from arch/x86/include/asm/memtype.h:6,
                    from arch/x86/include/asm/mtrr.h:27,
                    from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
   arch/x86/include/asm/pgtable_64_types.h:74: warning: "PGDIR_SHIFT" redefined
      74 | #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:1463,
                    from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
   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:266,
                    from arch/x86/include/asm/memtype.h:6,
                    from arch/x86/include/asm/mtrr.h:27,
                    from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
>> arch/x86/include/asm/pgtable_64_types.h:76: warning: "MAX_PTRS_PER_P4D" redefined
      76 | #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:1463,
                    from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
   include/linux/pgtable.h:1614: note: this is the location of the previous definition
    1614 | #define MAX_PTRS_PER_P4D PTRS_PER_P4D
         | 
   In file included from arch/x86/include/asm/pgtable_types.h:266,
                    from arch/x86/include/asm/memtype.h:6,
                    from arch/x86/include/asm/mtrr.h:27,
                    from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
   arch/x86/include/asm/pgtable_64_types.h:83: warning: "PUD_SHIFT" redefined
      83 | #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:1463,
                    from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
   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:266,
                    from arch/x86/include/asm/memtype.h:6,
                    from arch/x86/include/asm/mtrr.h:27,
                    from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
   arch/x86/include/asm/pgtable_64_types.h:84: warning: "PTRS_PER_PUD" redefined
      84 | #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:1463,
                    from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
   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:266,
                    from arch/x86/include/asm/memtype.h:6,
                    from arch/x86/include/asm/mtrr.h:27,
                    from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
   arch/x86/include/asm/pgtable_64_types.h:98: warning: "PMD_SIZE" redefined
      98 | #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:1463,
                    from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
   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:266,
                    from arch/x86/include/asm/memtype.h:6,
                    from arch/x86/include/asm/mtrr.h:27,
                    from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
   arch/x86/include/asm/pgtable_64_types.h:99: warning: "PMD_MASK" redefined
      99 | #define PMD_MASK (~(PMD_SIZE - 1))
         | 
   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:1463,
                    from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
   arch/um/include/asm/pgtable-3level.h:28: note: this is the location of the previous definition
      28 | #define PMD_MASK (~(PMD_SIZE-1))
         | 
   In file included from arch/x86/include/asm/pgtable_types.h:266,
                    from arch/x86/include/asm/memtype.h:6,
                    from arch/x86/include/asm/mtrr.h:27,
                    from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
   arch/x86/include/asm/pgtable_64_types.h:100: warning: "PUD_SIZE" redefined
     100 | #define PUD_SIZE (_AC(1, UL) << PUD_SHIFT)
         | 
   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:1463,
                    from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
   include/asm-generic/pgtable-nopud.h:20: note: this is the location of the previous definition
      20 | #define PUD_SIZE   (1UL << PUD_SHIFT)
         | 
   In file included from arch/x86/include/asm/pgtable_types.h:266,
                    from arch/x86/include/asm/memtype.h:6,


vim +/MAX_PTRS_PER_P4D +76 arch/x86/include/asm/pgtable_64_types.h

b8504058a06bd1 Kirill A. Shutemov  2017-03-30  70  
fb3551491b2044 Jeremy Fitzhardinge 2009-02-08  71  /*
fb3551491b2044 Jeremy Fitzhardinge 2009-02-08  72   * PGDIR_SHIFT determines what a top-level page table entry can map
fb3551491b2044 Jeremy Fitzhardinge 2009-02-08  73   */
fb3551491b2044 Jeremy Fitzhardinge 2009-02-08  74  #define PGDIR_SHIFT		39
fb3551491b2044 Jeremy Fitzhardinge 2009-02-08  75  #define PTRS_PER_PGD		512
c65e774fb3f6af Kirill A. Shutemov  2018-02-14 @76  #define MAX_PTRS_PER_P4D	1
fb3551491b2044 Jeremy Fitzhardinge 2009-02-08  77  

:::::: The code at line 76 was first introduced by commit
:::::: c65e774fb3f6af212641538694b9778ff9ab4300 x86/mm: Make PGDIR_SHIFT and PTRS_PER_P4D variable

:::::: TO: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>
:::::: CC: Ingo Molnar <mingo@xxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux