All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Vineet Gupta <vgupta@synopsys.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	linux-snps-arc@lists.infradead.org
Subject: [arc:topic-mmu 27/32] arch/arc/include/asm/hugepage.h:29:36: error: implicit declaration of function 'pte_mknotpresent'; did you mean 'pte_present'?
Date: Fri, 6 Aug 2021 21:38:50 +0800	[thread overview]
Message-ID: <202108062145.vVf2WQey-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git topic-mmu
head:   aad84191703280f0aace986bff0afd917b77511e
commit: 9832faa2ca147e7d3fa551f7cc43df19cf569111 [27/32] ARC: mm: remove unused pte accessors
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git/commit/?id=9832faa2ca147e7d3fa551f7cc43df19cf569111
        git remote add arc https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git
        git fetch --no-tags arc topic-mmu
        git checkout 9832faa2ca147e7d3fa551f7cc43df19cf569111
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=arc 

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/arc/include/asm/bug.h:30,
                    from include/linux/bug.h:5,
                    from include/linux/mmdebug.h:5,
                    from include/linux/gfp.h:5,
                    from mm/debug_vm_pgtable.c:13:
   mm/debug_vm_pgtable.c: In function 'pmd_thp_tests':
>> arch/arc/include/asm/hugepage.h:29:36: error: implicit declaration of function 'pte_mknotpresent'; did you mean 'pte_present'? [-Werror=implicit-function-declaration]
      29 | #define pmd_mkinvalid(pmd) pte_pmd(pte_mknotpresent(pmd_pte(pmd)))
         |                                    ^~~~~~~~~~~~~~~~
   include/asm-generic/bug.h:121:25: note: in definition of macro 'WARN_ON'
     121 |  int __ret_warn_on = !!(condition);    \
         |                         ^~~~~~~~~
   include/asm-generic/pgtable-nop4d.h:40:24: note: in expansion of macro 'pgd_val'
      40 | #define p4d_val(x)    (pgd_val((x).pgd))
         |                        ^~~~~~~
   include/asm-generic/pgtable-nopud.h:48:24: note: in expansion of macro 'p4d_val'
      48 | #define pud_val(x)    (p4d_val((x).p4d))
         |                        ^~~~~~~
   include/asm-generic/pgtable-nopmd.h:50:24: note: in expansion of macro 'pud_val'
      50 | #define pmd_val(x)    (pud_val((x).pud))
         |                        ^~~~~~~
   arch/arc/include/asm/hugepage.h:39:30: note: in expansion of macro 'pmd_val'
      39 | #define pmd_trans_huge(pmd) (pmd_val(pmd) & _PAGE_HW_SZ)
         |                              ^~~~~~~
   mm/debug_vm_pgtable.c:913:11: note: in expansion of macro 'pmd_trans_huge'
     913 |  WARN_ON(!pmd_trans_huge(pmd_mkinvalid(pmd_mkhuge(pmd))));
         |           ^~~~~~~~~~~~~~
   mm/debug_vm_pgtable.c:913:26: note: in expansion of macro 'pmd_mkinvalid'
     913 |  WARN_ON(!pmd_trans_huge(pmd_mkinvalid(pmd_mkhuge(pmd))));
         |                          ^~~~~~~~~~~~~
>> arch/arc/include/asm/hugepage.h:29:36: error: incompatible type for argument 1 of 'pte_pmd'
      29 | #define pmd_mkinvalid(pmd) pte_pmd(pte_mknotpresent(pmd_pte(pmd)))
         |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                    |
         |                                    int
   include/asm-generic/bug.h:121:25: note: in definition of macro 'WARN_ON'
     121 |  int __ret_warn_on = !!(condition);    \
         |                         ^~~~~~~~~
   include/asm-generic/pgtable-nop4d.h:40:24: note: in expansion of macro 'pgd_val'
      40 | #define p4d_val(x)    (pgd_val((x).pgd))
         |                        ^~~~~~~
   include/asm-generic/pgtable-nopud.h:48:24: note: in expansion of macro 'p4d_val'
      48 | #define pud_val(x)    (p4d_val((x).p4d))
         |                        ^~~~~~~
   include/asm-generic/pgtable-nopmd.h:50:24: note: in expansion of macro 'pud_val'
      50 | #define pmd_val(x)    (pud_val((x).pud))
         |                        ^~~~~~~
   arch/arc/include/asm/hugepage.h:39:30: note: in expansion of macro 'pmd_val'
      39 | #define pmd_trans_huge(pmd) (pmd_val(pmd) & _PAGE_HW_SZ)
         |                              ^~~~~~~
   mm/debug_vm_pgtable.c:913:11: note: in expansion of macro 'pmd_trans_huge'
     913 |  WARN_ON(!pmd_trans_huge(pmd_mkinvalid(pmd_mkhuge(pmd))));
         |           ^~~~~~~~~~~~~~
   mm/debug_vm_pgtable.c:913:26: note: in expansion of macro 'pmd_mkinvalid'
     913 |  WARN_ON(!pmd_trans_huge(pmd_mkinvalid(pmd_mkhuge(pmd))));
         |                          ^~~~~~~~~~~~~
   In file included from arch/arc/include/asm/pgtable-bits-arcv2.h:145,
                    from arch/arc/include/asm/pgtable.h:12,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from include/linux/highmem.h:8,
                    from mm/debug_vm_pgtable.c:14:
   arch/arc/include/asm/hugepage.h:18:35: note: expected 'pte_t' but argument is of type 'int'
      18 | static inline pmd_t pte_pmd(pte_t pte)
         |                             ~~~~~~^~~
   In file included from arch/arc/include/asm/bug.h:30,
                    from include/linux/bug.h:5,
                    from include/linux/mmdebug.h:5,
                    from include/linux/gfp.h:5,
                    from mm/debug_vm_pgtable.c:13:
>> arch/arc/include/asm/hugepage.h:29:36: error: incompatible type for argument 1 of 'pte_pmd'
      29 | #define pmd_mkinvalid(pmd) pte_pmd(pte_mknotpresent(pmd_pte(pmd)))
         |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                    |
         |                                    int
   include/asm-generic/bug.h:121:25: note: in definition of macro 'WARN_ON'
     121 |  int __ret_warn_on = !!(condition);    \
         |                         ^~~~~~~~~
   include/asm-generic/pgtable-nop4d.h:40:24: note: in expansion of macro 'pgd_val'
      40 | #define p4d_val(x)    (pgd_val((x).pgd))
         |                        ^~~~~~~
   include/asm-generic/pgtable-nopud.h:48:24: note: in expansion of macro 'p4d_val'
      48 | #define pud_val(x)    (p4d_val((x).p4d))
         |                        ^~~~~~~
   include/asm-generic/pgtable-nopmd.h:50:24: note: in expansion of macro 'pud_val'
      50 | #define pmd_val(x)    (pud_val((x).pud))
         |                        ^~~~~~~
   arch/arc/include/asm/pgtable-levels.h:66:26: note: in expansion of macro 'pmd_val'
      66 | #define pmd_present(x)  (pmd_val(x))
         |                          ^~~~~~~
   mm/debug_vm_pgtable.c:914:11: note: in expansion of macro 'pmd_present'
     914 |  WARN_ON(!pmd_present(pmd_mkinvalid(pmd_mkhuge(pmd))));
         |           ^~~~~~~~~~~
   mm/debug_vm_pgtable.c:914:23: note: in expansion of macro 'pmd_mkinvalid'
     914 |  WARN_ON(!pmd_present(pmd_mkinvalid(pmd_mkhuge(pmd))));
         |                       ^~~~~~~~~~~~~
   In file included from arch/arc/include/asm/pgtable-bits-arcv2.h:145,
                    from arch/arc/include/asm/pgtable.h:12,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from include/linux/highmem.h:8,
                    from mm/debug_vm_pgtable.c:14:
   arch/arc/include/asm/hugepage.h:18:35: note: expected 'pte_t' but argument is of type 'int'
      18 | static inline pmd_t pte_pmd(pte_t pte)
         |                             ~~~~~~^~~
   cc1: some warnings being treated as errors
--
   In file included from arch/arc/include/asm/pgtable-bits-arcv2.h:145,
                    from arch/arc/include/asm/pgtable.h:12,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from include/linux/pagemap.h:8,
                    from mm/pgtable-generic.c:10:
   mm/pgtable-generic.c: In function 'pmdp_invalidate':
>> arch/arc/include/asm/hugepage.h:29:36: error: implicit declaration of function 'pte_mknotpresent'; did you mean 'pte_present'? [-Werror=implicit-function-declaration]
      29 | #define pmd_mkinvalid(pmd) pte_pmd(pte_mknotpresent(pmd_pte(pmd)))
         |                                    ^~~~~~~~~~~~~~~~
   mm/pgtable-generic.c:197:49: note: in expansion of macro 'pmd_mkinvalid'
     197 |  pmd_t old = pmdp_establish(vma, address, pmdp, pmd_mkinvalid(*pmdp));
         |                                                 ^~~~~~~~~~~~~
>> arch/arc/include/asm/hugepage.h:29:36: error: incompatible type for argument 1 of 'pte_pmd'
      29 | #define pmd_mkinvalid(pmd) pte_pmd(pte_mknotpresent(pmd_pte(pmd)))
         |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                    |
         |                                    int
   mm/pgtable-generic.c:197:49: note: in expansion of macro 'pmd_mkinvalid'
     197 |  pmd_t old = pmdp_establish(vma, address, pmdp, pmd_mkinvalid(*pmdp));
         |                                                 ^~~~~~~~~~~~~
   arch/arc/include/asm/hugepage.h:18:35: note: expected 'pte_t' but argument is of type 'int'
      18 | static inline pmd_t pte_pmd(pte_t pte)
         |                             ~~~~~~^~~
   cc1: some warnings being treated as errors


vim +29 arch/arc/include/asm/hugepage.h

fe6c1b8611aa3a Vineet Gupta      2014-07-08  22  
fe6c1b8611aa3a Vineet Gupta      2014-07-08  23  #define pmd_wrprotect(pmd)	pte_pmd(pte_wrprotect(pmd_pte(pmd)))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  24  #define pmd_mkwrite(pmd)	pte_pmd(pte_mkwrite(pmd_pte(pmd)))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  25  #define pmd_mkdirty(pmd)	pte_pmd(pte_mkdirty(pmd_pte(pmd)))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  26  #define pmd_mkold(pmd)		pte_pmd(pte_mkold(pmd_pte(pmd)))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  27  #define pmd_mkyoung(pmd)	pte_pmd(pte_mkyoung(pmd_pte(pmd)))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  28  #define pmd_mkhuge(pmd)		pte_pmd(pte_mkhuge(pmd_pte(pmd)))
86ec2da037b854 Anshuman Khandual 2020-06-03 @29  #define pmd_mkinvalid(pmd)	pte_pmd(pte_mknotpresent(pmd_pte(pmd)))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  30  #define pmd_mkclean(pmd)	pte_pmd(pte_mkclean(pmd_pte(pmd)))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  31  
fe6c1b8611aa3a Vineet Gupta      2014-07-08  32  #define pmd_write(pmd)		pte_write(pmd_pte(pmd))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  33  #define pmd_young(pmd)		pte_young(pmd_pte(pmd))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  34  #define pmd_pfn(pmd)		pte_pfn(pmd_pte(pmd))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  35  #define pmd_dirty(pmd)		pte_dirty(pmd_pte(pmd))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  36  
fe6c1b8611aa3a Vineet Gupta      2014-07-08  37  #define mk_pmd(page, prot)	pte_pmd(mk_pte(page, prot))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  38  
fe6c1b8611aa3a Vineet Gupta      2014-07-08 @39  #define pmd_trans_huge(pmd)	(pmd_val(pmd) & _PAGE_HW_SZ)
fe6c1b8611aa3a Vineet Gupta      2014-07-08  40  

:::::: The code at line 29 was first introduced by commit
:::::: 86ec2da037b85436b63afe3df43ed48fa0e52b0e mm/thp: rename pmd_mknotpresent() as pmd_mkinvalid()

:::::: TO: Anshuman Khandual <anshuman.khandual@arm.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

---
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: 68397 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Vineet Gupta <vgupta@synopsys.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	linux-snps-arc@lists.infradead.org
Subject: [arc:topic-mmu 27/32] arch/arc/include/asm/hugepage.h:29:36: error: implicit declaration of function 'pte_mknotpresent'; did you mean 'pte_present'?
Date: Fri, 6 Aug 2021 21:38:50 +0800	[thread overview]
Message-ID: <202108062145.vVf2WQey-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git topic-mmu
head:   aad84191703280f0aace986bff0afd917b77511e
commit: 9832faa2ca147e7d3fa551f7cc43df19cf569111 [27/32] ARC: mm: remove unused pte accessors
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git/commit/?id=9832faa2ca147e7d3fa551f7cc43df19cf569111
        git remote add arc https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git
        git fetch --no-tags arc topic-mmu
        git checkout 9832faa2ca147e7d3fa551f7cc43df19cf569111
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=arc 

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/arc/include/asm/bug.h:30,
                    from include/linux/bug.h:5,
                    from include/linux/mmdebug.h:5,
                    from include/linux/gfp.h:5,
                    from mm/debug_vm_pgtable.c:13:
   mm/debug_vm_pgtable.c: In function 'pmd_thp_tests':
>> arch/arc/include/asm/hugepage.h:29:36: error: implicit declaration of function 'pte_mknotpresent'; did you mean 'pte_present'? [-Werror=implicit-function-declaration]
      29 | #define pmd_mkinvalid(pmd) pte_pmd(pte_mknotpresent(pmd_pte(pmd)))
         |                                    ^~~~~~~~~~~~~~~~
   include/asm-generic/bug.h:121:25: note: in definition of macro 'WARN_ON'
     121 |  int __ret_warn_on = !!(condition);    \
         |                         ^~~~~~~~~
   include/asm-generic/pgtable-nop4d.h:40:24: note: in expansion of macro 'pgd_val'
      40 | #define p4d_val(x)    (pgd_val((x).pgd))
         |                        ^~~~~~~
   include/asm-generic/pgtable-nopud.h:48:24: note: in expansion of macro 'p4d_val'
      48 | #define pud_val(x)    (p4d_val((x).p4d))
         |                        ^~~~~~~
   include/asm-generic/pgtable-nopmd.h:50:24: note: in expansion of macro 'pud_val'
      50 | #define pmd_val(x)    (pud_val((x).pud))
         |                        ^~~~~~~
   arch/arc/include/asm/hugepage.h:39:30: note: in expansion of macro 'pmd_val'
      39 | #define pmd_trans_huge(pmd) (pmd_val(pmd) & _PAGE_HW_SZ)
         |                              ^~~~~~~
   mm/debug_vm_pgtable.c:913:11: note: in expansion of macro 'pmd_trans_huge'
     913 |  WARN_ON(!pmd_trans_huge(pmd_mkinvalid(pmd_mkhuge(pmd))));
         |           ^~~~~~~~~~~~~~
   mm/debug_vm_pgtable.c:913:26: note: in expansion of macro 'pmd_mkinvalid'
     913 |  WARN_ON(!pmd_trans_huge(pmd_mkinvalid(pmd_mkhuge(pmd))));
         |                          ^~~~~~~~~~~~~
>> arch/arc/include/asm/hugepage.h:29:36: error: incompatible type for argument 1 of 'pte_pmd'
      29 | #define pmd_mkinvalid(pmd) pte_pmd(pte_mknotpresent(pmd_pte(pmd)))
         |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                    |
         |                                    int
   include/asm-generic/bug.h:121:25: note: in definition of macro 'WARN_ON'
     121 |  int __ret_warn_on = !!(condition);    \
         |                         ^~~~~~~~~
   include/asm-generic/pgtable-nop4d.h:40:24: note: in expansion of macro 'pgd_val'
      40 | #define p4d_val(x)    (pgd_val((x).pgd))
         |                        ^~~~~~~
   include/asm-generic/pgtable-nopud.h:48:24: note: in expansion of macro 'p4d_val'
      48 | #define pud_val(x)    (p4d_val((x).p4d))
         |                        ^~~~~~~
   include/asm-generic/pgtable-nopmd.h:50:24: note: in expansion of macro 'pud_val'
      50 | #define pmd_val(x)    (pud_val((x).pud))
         |                        ^~~~~~~
   arch/arc/include/asm/hugepage.h:39:30: note: in expansion of macro 'pmd_val'
      39 | #define pmd_trans_huge(pmd) (pmd_val(pmd) & _PAGE_HW_SZ)
         |                              ^~~~~~~
   mm/debug_vm_pgtable.c:913:11: note: in expansion of macro 'pmd_trans_huge'
     913 |  WARN_ON(!pmd_trans_huge(pmd_mkinvalid(pmd_mkhuge(pmd))));
         |           ^~~~~~~~~~~~~~
   mm/debug_vm_pgtable.c:913:26: note: in expansion of macro 'pmd_mkinvalid'
     913 |  WARN_ON(!pmd_trans_huge(pmd_mkinvalid(pmd_mkhuge(pmd))));
         |                          ^~~~~~~~~~~~~
   In file included from arch/arc/include/asm/pgtable-bits-arcv2.h:145,
                    from arch/arc/include/asm/pgtable.h:12,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from include/linux/highmem.h:8,
                    from mm/debug_vm_pgtable.c:14:
   arch/arc/include/asm/hugepage.h:18:35: note: expected 'pte_t' but argument is of type 'int'
      18 | static inline pmd_t pte_pmd(pte_t pte)
         |                             ~~~~~~^~~
   In file included from arch/arc/include/asm/bug.h:30,
                    from include/linux/bug.h:5,
                    from include/linux/mmdebug.h:5,
                    from include/linux/gfp.h:5,
                    from mm/debug_vm_pgtable.c:13:
>> arch/arc/include/asm/hugepage.h:29:36: error: incompatible type for argument 1 of 'pte_pmd'
      29 | #define pmd_mkinvalid(pmd) pte_pmd(pte_mknotpresent(pmd_pte(pmd)))
         |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                    |
         |                                    int
   include/asm-generic/bug.h:121:25: note: in definition of macro 'WARN_ON'
     121 |  int __ret_warn_on = !!(condition);    \
         |                         ^~~~~~~~~
   include/asm-generic/pgtable-nop4d.h:40:24: note: in expansion of macro 'pgd_val'
      40 | #define p4d_val(x)    (pgd_val((x).pgd))
         |                        ^~~~~~~
   include/asm-generic/pgtable-nopud.h:48:24: note: in expansion of macro 'p4d_val'
      48 | #define pud_val(x)    (p4d_val((x).p4d))
         |                        ^~~~~~~
   include/asm-generic/pgtable-nopmd.h:50:24: note: in expansion of macro 'pud_val'
      50 | #define pmd_val(x)    (pud_val((x).pud))
         |                        ^~~~~~~
   arch/arc/include/asm/pgtable-levels.h:66:26: note: in expansion of macro 'pmd_val'
      66 | #define pmd_present(x)  (pmd_val(x))
         |                          ^~~~~~~
   mm/debug_vm_pgtable.c:914:11: note: in expansion of macro 'pmd_present'
     914 |  WARN_ON(!pmd_present(pmd_mkinvalid(pmd_mkhuge(pmd))));
         |           ^~~~~~~~~~~
   mm/debug_vm_pgtable.c:914:23: note: in expansion of macro 'pmd_mkinvalid'
     914 |  WARN_ON(!pmd_present(pmd_mkinvalid(pmd_mkhuge(pmd))));
         |                       ^~~~~~~~~~~~~
   In file included from arch/arc/include/asm/pgtable-bits-arcv2.h:145,
                    from arch/arc/include/asm/pgtable.h:12,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from include/linux/highmem.h:8,
                    from mm/debug_vm_pgtable.c:14:
   arch/arc/include/asm/hugepage.h:18:35: note: expected 'pte_t' but argument is of type 'int'
      18 | static inline pmd_t pte_pmd(pte_t pte)
         |                             ~~~~~~^~~
   cc1: some warnings being treated as errors
--
   In file included from arch/arc/include/asm/pgtable-bits-arcv2.h:145,
                    from arch/arc/include/asm/pgtable.h:12,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from include/linux/pagemap.h:8,
                    from mm/pgtable-generic.c:10:
   mm/pgtable-generic.c: In function 'pmdp_invalidate':
>> arch/arc/include/asm/hugepage.h:29:36: error: implicit declaration of function 'pte_mknotpresent'; did you mean 'pte_present'? [-Werror=implicit-function-declaration]
      29 | #define pmd_mkinvalid(pmd) pte_pmd(pte_mknotpresent(pmd_pte(pmd)))
         |                                    ^~~~~~~~~~~~~~~~
   mm/pgtable-generic.c:197:49: note: in expansion of macro 'pmd_mkinvalid'
     197 |  pmd_t old = pmdp_establish(vma, address, pmdp, pmd_mkinvalid(*pmdp));
         |                                                 ^~~~~~~~~~~~~
>> arch/arc/include/asm/hugepage.h:29:36: error: incompatible type for argument 1 of 'pte_pmd'
      29 | #define pmd_mkinvalid(pmd) pte_pmd(pte_mknotpresent(pmd_pte(pmd)))
         |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                    |
         |                                    int
   mm/pgtable-generic.c:197:49: note: in expansion of macro 'pmd_mkinvalid'
     197 |  pmd_t old = pmdp_establish(vma, address, pmdp, pmd_mkinvalid(*pmdp));
         |                                                 ^~~~~~~~~~~~~
   arch/arc/include/asm/hugepage.h:18:35: note: expected 'pte_t' but argument is of type 'int'
      18 | static inline pmd_t pte_pmd(pte_t pte)
         |                             ~~~~~~^~~
   cc1: some warnings being treated as errors


vim +29 arch/arc/include/asm/hugepage.h

fe6c1b8611aa3a Vineet Gupta      2014-07-08  22  
fe6c1b8611aa3a Vineet Gupta      2014-07-08  23  #define pmd_wrprotect(pmd)	pte_pmd(pte_wrprotect(pmd_pte(pmd)))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  24  #define pmd_mkwrite(pmd)	pte_pmd(pte_mkwrite(pmd_pte(pmd)))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  25  #define pmd_mkdirty(pmd)	pte_pmd(pte_mkdirty(pmd_pte(pmd)))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  26  #define pmd_mkold(pmd)		pte_pmd(pte_mkold(pmd_pte(pmd)))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  27  #define pmd_mkyoung(pmd)	pte_pmd(pte_mkyoung(pmd_pte(pmd)))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  28  #define pmd_mkhuge(pmd)		pte_pmd(pte_mkhuge(pmd_pte(pmd)))
86ec2da037b854 Anshuman Khandual 2020-06-03 @29  #define pmd_mkinvalid(pmd)	pte_pmd(pte_mknotpresent(pmd_pte(pmd)))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  30  #define pmd_mkclean(pmd)	pte_pmd(pte_mkclean(pmd_pte(pmd)))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  31  
fe6c1b8611aa3a Vineet Gupta      2014-07-08  32  #define pmd_write(pmd)		pte_write(pmd_pte(pmd))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  33  #define pmd_young(pmd)		pte_young(pmd_pte(pmd))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  34  #define pmd_pfn(pmd)		pte_pfn(pmd_pte(pmd))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  35  #define pmd_dirty(pmd)		pte_dirty(pmd_pte(pmd))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  36  
fe6c1b8611aa3a Vineet Gupta      2014-07-08  37  #define mk_pmd(page, prot)	pte_pmd(mk_pte(page, prot))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  38  
fe6c1b8611aa3a Vineet Gupta      2014-07-08 @39  #define pmd_trans_huge(pmd)	(pmd_val(pmd) & _PAGE_HW_SZ)
fe6c1b8611aa3a Vineet Gupta      2014-07-08  40  

:::::: The code at line 29 was first introduced by commit
:::::: 86ec2da037b85436b63afe3df43ed48fa0e52b0e mm/thp: rename pmd_mknotpresent() as pmd_mkinvalid()

:::::: TO: Anshuman Khandual <anshuman.khandual@arm.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

---
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: 68397 bytes --]

[-- Attachment #3: Type: text/plain, Size: 170 bytes --]

_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [arc:topic-mmu 27/32] arch/arc/include/asm/hugepage.h:29:36: error: implicit declaration of function 'pte_mknotpresent'; did you mean 'pte_present'?
Date: Fri, 06 Aug 2021 21:38:50 +0800	[thread overview]
Message-ID: <202108062145.vVf2WQey-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git topic-mmu
head:   aad84191703280f0aace986bff0afd917b77511e
commit: 9832faa2ca147e7d3fa551f7cc43df19cf569111 [27/32] ARC: mm: remove unused pte accessors
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git/commit/?id=9832faa2ca147e7d3fa551f7cc43df19cf569111
        git remote add arc https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git
        git fetch --no-tags arc topic-mmu
        git checkout 9832faa2ca147e7d3fa551f7cc43df19cf569111
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=arc 

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/arc/include/asm/bug.h:30,
                    from include/linux/bug.h:5,
                    from include/linux/mmdebug.h:5,
                    from include/linux/gfp.h:5,
                    from mm/debug_vm_pgtable.c:13:
   mm/debug_vm_pgtable.c: In function 'pmd_thp_tests':
>> arch/arc/include/asm/hugepage.h:29:36: error: implicit declaration of function 'pte_mknotpresent'; did you mean 'pte_present'? [-Werror=implicit-function-declaration]
      29 | #define pmd_mkinvalid(pmd) pte_pmd(pte_mknotpresent(pmd_pte(pmd)))
         |                                    ^~~~~~~~~~~~~~~~
   include/asm-generic/bug.h:121:25: note: in definition of macro 'WARN_ON'
     121 |  int __ret_warn_on = !!(condition);    \
         |                         ^~~~~~~~~
   include/asm-generic/pgtable-nop4d.h:40:24: note: in expansion of macro 'pgd_val'
      40 | #define p4d_val(x)    (pgd_val((x).pgd))
         |                        ^~~~~~~
   include/asm-generic/pgtable-nopud.h:48:24: note: in expansion of macro 'p4d_val'
      48 | #define pud_val(x)    (p4d_val((x).p4d))
         |                        ^~~~~~~
   include/asm-generic/pgtable-nopmd.h:50:24: note: in expansion of macro 'pud_val'
      50 | #define pmd_val(x)    (pud_val((x).pud))
         |                        ^~~~~~~
   arch/arc/include/asm/hugepage.h:39:30: note: in expansion of macro 'pmd_val'
      39 | #define pmd_trans_huge(pmd) (pmd_val(pmd) & _PAGE_HW_SZ)
         |                              ^~~~~~~
   mm/debug_vm_pgtable.c:913:11: note: in expansion of macro 'pmd_trans_huge'
     913 |  WARN_ON(!pmd_trans_huge(pmd_mkinvalid(pmd_mkhuge(pmd))));
         |           ^~~~~~~~~~~~~~
   mm/debug_vm_pgtable.c:913:26: note: in expansion of macro 'pmd_mkinvalid'
     913 |  WARN_ON(!pmd_trans_huge(pmd_mkinvalid(pmd_mkhuge(pmd))));
         |                          ^~~~~~~~~~~~~
>> arch/arc/include/asm/hugepage.h:29:36: error: incompatible type for argument 1 of 'pte_pmd'
      29 | #define pmd_mkinvalid(pmd) pte_pmd(pte_mknotpresent(pmd_pte(pmd)))
         |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                    |
         |                                    int
   include/asm-generic/bug.h:121:25: note: in definition of macro 'WARN_ON'
     121 |  int __ret_warn_on = !!(condition);    \
         |                         ^~~~~~~~~
   include/asm-generic/pgtable-nop4d.h:40:24: note: in expansion of macro 'pgd_val'
      40 | #define p4d_val(x)    (pgd_val((x).pgd))
         |                        ^~~~~~~
   include/asm-generic/pgtable-nopud.h:48:24: note: in expansion of macro 'p4d_val'
      48 | #define pud_val(x)    (p4d_val((x).p4d))
         |                        ^~~~~~~
   include/asm-generic/pgtable-nopmd.h:50:24: note: in expansion of macro 'pud_val'
      50 | #define pmd_val(x)    (pud_val((x).pud))
         |                        ^~~~~~~
   arch/arc/include/asm/hugepage.h:39:30: note: in expansion of macro 'pmd_val'
      39 | #define pmd_trans_huge(pmd) (pmd_val(pmd) & _PAGE_HW_SZ)
         |                              ^~~~~~~
   mm/debug_vm_pgtable.c:913:11: note: in expansion of macro 'pmd_trans_huge'
     913 |  WARN_ON(!pmd_trans_huge(pmd_mkinvalid(pmd_mkhuge(pmd))));
         |           ^~~~~~~~~~~~~~
   mm/debug_vm_pgtable.c:913:26: note: in expansion of macro 'pmd_mkinvalid'
     913 |  WARN_ON(!pmd_trans_huge(pmd_mkinvalid(pmd_mkhuge(pmd))));
         |                          ^~~~~~~~~~~~~
   In file included from arch/arc/include/asm/pgtable-bits-arcv2.h:145,
                    from arch/arc/include/asm/pgtable.h:12,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from include/linux/highmem.h:8,
                    from mm/debug_vm_pgtable.c:14:
   arch/arc/include/asm/hugepage.h:18:35: note: expected 'pte_t' but argument is of type 'int'
      18 | static inline pmd_t pte_pmd(pte_t pte)
         |                             ~~~~~~^~~
   In file included from arch/arc/include/asm/bug.h:30,
                    from include/linux/bug.h:5,
                    from include/linux/mmdebug.h:5,
                    from include/linux/gfp.h:5,
                    from mm/debug_vm_pgtable.c:13:
>> arch/arc/include/asm/hugepage.h:29:36: error: incompatible type for argument 1 of 'pte_pmd'
      29 | #define pmd_mkinvalid(pmd) pte_pmd(pte_mknotpresent(pmd_pte(pmd)))
         |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                    |
         |                                    int
   include/asm-generic/bug.h:121:25: note: in definition of macro 'WARN_ON'
     121 |  int __ret_warn_on = !!(condition);    \
         |                         ^~~~~~~~~
   include/asm-generic/pgtable-nop4d.h:40:24: note: in expansion of macro 'pgd_val'
      40 | #define p4d_val(x)    (pgd_val((x).pgd))
         |                        ^~~~~~~
   include/asm-generic/pgtable-nopud.h:48:24: note: in expansion of macro 'p4d_val'
      48 | #define pud_val(x)    (p4d_val((x).p4d))
         |                        ^~~~~~~
   include/asm-generic/pgtable-nopmd.h:50:24: note: in expansion of macro 'pud_val'
      50 | #define pmd_val(x)    (pud_val((x).pud))
         |                        ^~~~~~~
   arch/arc/include/asm/pgtable-levels.h:66:26: note: in expansion of macro 'pmd_val'
      66 | #define pmd_present(x)  (pmd_val(x))
         |                          ^~~~~~~
   mm/debug_vm_pgtable.c:914:11: note: in expansion of macro 'pmd_present'
     914 |  WARN_ON(!pmd_present(pmd_mkinvalid(pmd_mkhuge(pmd))));
         |           ^~~~~~~~~~~
   mm/debug_vm_pgtable.c:914:23: note: in expansion of macro 'pmd_mkinvalid'
     914 |  WARN_ON(!pmd_present(pmd_mkinvalid(pmd_mkhuge(pmd))));
         |                       ^~~~~~~~~~~~~
   In file included from arch/arc/include/asm/pgtable-bits-arcv2.h:145,
                    from arch/arc/include/asm/pgtable.h:12,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from include/linux/highmem.h:8,
                    from mm/debug_vm_pgtable.c:14:
   arch/arc/include/asm/hugepage.h:18:35: note: expected 'pte_t' but argument is of type 'int'
      18 | static inline pmd_t pte_pmd(pte_t pte)
         |                             ~~~~~~^~~
   cc1: some warnings being treated as errors
--
   In file included from arch/arc/include/asm/pgtable-bits-arcv2.h:145,
                    from arch/arc/include/asm/pgtable.h:12,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from include/linux/pagemap.h:8,
                    from mm/pgtable-generic.c:10:
   mm/pgtable-generic.c: In function 'pmdp_invalidate':
>> arch/arc/include/asm/hugepage.h:29:36: error: implicit declaration of function 'pte_mknotpresent'; did you mean 'pte_present'? [-Werror=implicit-function-declaration]
      29 | #define pmd_mkinvalid(pmd) pte_pmd(pte_mknotpresent(pmd_pte(pmd)))
         |                                    ^~~~~~~~~~~~~~~~
   mm/pgtable-generic.c:197:49: note: in expansion of macro 'pmd_mkinvalid'
     197 |  pmd_t old = pmdp_establish(vma, address, pmdp, pmd_mkinvalid(*pmdp));
         |                                                 ^~~~~~~~~~~~~
>> arch/arc/include/asm/hugepage.h:29:36: error: incompatible type for argument 1 of 'pte_pmd'
      29 | #define pmd_mkinvalid(pmd) pte_pmd(pte_mknotpresent(pmd_pte(pmd)))
         |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                    |
         |                                    int
   mm/pgtable-generic.c:197:49: note: in expansion of macro 'pmd_mkinvalid'
     197 |  pmd_t old = pmdp_establish(vma, address, pmdp, pmd_mkinvalid(*pmdp));
         |                                                 ^~~~~~~~~~~~~
   arch/arc/include/asm/hugepage.h:18:35: note: expected 'pte_t' but argument is of type 'int'
      18 | static inline pmd_t pte_pmd(pte_t pte)
         |                             ~~~~~~^~~
   cc1: some warnings being treated as errors


vim +29 arch/arc/include/asm/hugepage.h

fe6c1b8611aa3a Vineet Gupta      2014-07-08  22  
fe6c1b8611aa3a Vineet Gupta      2014-07-08  23  #define pmd_wrprotect(pmd)	pte_pmd(pte_wrprotect(pmd_pte(pmd)))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  24  #define pmd_mkwrite(pmd)	pte_pmd(pte_mkwrite(pmd_pte(pmd)))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  25  #define pmd_mkdirty(pmd)	pte_pmd(pte_mkdirty(pmd_pte(pmd)))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  26  #define pmd_mkold(pmd)		pte_pmd(pte_mkold(pmd_pte(pmd)))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  27  #define pmd_mkyoung(pmd)	pte_pmd(pte_mkyoung(pmd_pte(pmd)))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  28  #define pmd_mkhuge(pmd)		pte_pmd(pte_mkhuge(pmd_pte(pmd)))
86ec2da037b854 Anshuman Khandual 2020-06-03 @29  #define pmd_mkinvalid(pmd)	pte_pmd(pte_mknotpresent(pmd_pte(pmd)))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  30  #define pmd_mkclean(pmd)	pte_pmd(pte_mkclean(pmd_pte(pmd)))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  31  
fe6c1b8611aa3a Vineet Gupta      2014-07-08  32  #define pmd_write(pmd)		pte_write(pmd_pte(pmd))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  33  #define pmd_young(pmd)		pte_young(pmd_pte(pmd))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  34  #define pmd_pfn(pmd)		pte_pfn(pmd_pte(pmd))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  35  #define pmd_dirty(pmd)		pte_dirty(pmd_pte(pmd))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  36  
fe6c1b8611aa3a Vineet Gupta      2014-07-08  37  #define mk_pmd(page, prot)	pte_pmd(mk_pte(page, prot))
fe6c1b8611aa3a Vineet Gupta      2014-07-08  38  
fe6c1b8611aa3a Vineet Gupta      2014-07-08 @39  #define pmd_trans_huge(pmd)	(pmd_val(pmd) & _PAGE_HW_SZ)
fe6c1b8611aa3a Vineet Gupta      2014-07-08  40  

:::::: The code at line 29 was first introduced by commit
:::::: 86ec2da037b85436b63afe3df43ed48fa0e52b0e mm/thp: rename pmd_mknotpresent() as pmd_mkinvalid()

:::::: TO: Anshuman Khandual <anshuman.khandual@arm.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

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

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

             reply	other threads:[~2021-08-06 13:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-06 13:38 kernel test robot [this message]
2021-08-06 13:38 ` [arc:topic-mmu 27/32] arch/arc/include/asm/hugepage.h:29:36: error: implicit declaration of function 'pte_mknotpresent'; did you mean 'pte_present'? kernel test robot
2021-08-06 13:38 ` kernel test robot
2021-08-06 19:45 ` Vineet Gupta
2021-08-06 19:45   ` Vineet Gupta
2021-08-06 19:45   ` Vineet Gupta

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=202108062145.vVf2WQey-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-snps-arc@lists.infradead.org \
    --cc=vgupta@synopsys.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.