linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [peterz-queue:master 75/119] arch/x86/include/asm/pgtable_64_types.h:22:34: error: conflicting types for 'pmd_t'
Date: Mon, 9 Aug 2021 02:31:55 +0800	[thread overview]
Message-ID: <202108090246.KVMHqhx8-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 12289 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git master
head:   081d468463aae08af7d923eb08d1a482a50b4d61
commit: b71d9f00c5a27b4b409d3cffb2ea2bbb4190888a [75/119] 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=b71d9f00c5a27b4b409d3cffb2ea2bbb4190888a
        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 b71d9f00c5a27b4b409d3cffb2ea2bbb4190888a
        # 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@intel.com>

All errors (new ones prefixed by >>):

         | 
   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: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/infiniband/hw/qib/qib_wc_x86_64.c:40:
   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 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: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/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: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/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: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/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: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/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:264,
                    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:60,
                    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:264,
                    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:22:34: error: conflicting types for 'pmd_t'
      22 | 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:60,
                    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: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 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: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/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:264,
                    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: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/infiniband/hw/qib/qib_wc_x86_64.c:40:
   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 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: "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/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:264,
                    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: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/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:264,
                    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_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/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)
         | 


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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 62528 bytes --]

                 reply	other threads:[~2021-08-08 18:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202108090246.KVMHqhx8-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).