linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [vgupta-arc:topic-zol-remove 98/187] arch/arc/include/asm/hugepage.h:29:41: error: implicit declaration of function 'pte_mknotpresent'; did you mean 'pte_present'?
@ 2021-10-22  7:17 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-22  7:17 UTC (permalink / raw)
  To: Vineet Gupta; +Cc: kbuild-all, linux-kernel, linux-snps-arc

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git topic-zol-remove
head:   f2709e461ce51e131e57d07a45a634f3b79b5298
commit: 3d45948c806df94ba2b6063e27208c3b4c2a7df6 [98/187] ARCv2: mm: remove unused pte accessors
config: arc-randconfig-r043-20211021 (attached as .config)
compiler: arc-elf-gcc (GCC) 11.2.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=3d45948c806df94ba2b6063e27208c3b4c2a7df6
        git remote add vgupta-arc https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git
        git fetch --no-tags vgupta-arc topic-zol-remove
        git checkout 3d45948c806df94ba2b6063e27208c3b4c2a7df6
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.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/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:41: 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:56: 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:41: 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:56: 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
--
   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:41: 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:166:32: note: in definition of macro 'WARN_ON'
     166 |         int __ret_warn_on = !!(condition);                              \
         |                                ^~~~~~~~~
   include/asm-generic/pgtable-nop4d.h:40:50: note: in expansion of macro 'pgd_val'
      40 | #define p4d_val(x)                              (pgd_val((x).pgd))
         |                                                  ^~~~~~~
   include/asm-generic/pgtable-nopud.h:48:50: note: in expansion of macro 'p4d_val'
      48 | #define pud_val(x)                              (p4d_val((x).p4d))
         |                                                  ^~~~~~~
   include/asm-generic/pgtable-nopmd.h:50:50: note: in expansion of macro 'pud_val'
      50 | #define pmd_val(x)                              (pud_val((x).pud))
         |                                                  ^~~~~~~
   arch/arc/include/asm/hugepage.h:39:34: note: in expansion of macro 'pmd_val'
      39 | #define pmd_trans_huge(pmd)     (pmd_val(pmd) & _PAGE_HW_SZ)
         |                                  ^~~~~~~
   mm/debug_vm_pgtable.c:961:18: note: in expansion of macro 'pmd_trans_huge'
     961 |         WARN_ON(!pmd_trans_huge(pmd_mkinvalid(pmd_mkhuge(pmd))));
         |                  ^~~~~~~~~~~~~~
   mm/debug_vm_pgtable.c:961:33: note: in expansion of macro 'pmd_mkinvalid'
     961 |         WARN_ON(!pmd_trans_huge(pmd_mkinvalid(pmd_mkhuge(pmd))));
         |                                 ^~~~~~~~~~~~~
>> arch/arc/include/asm/hugepage.h:29:41: 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:166:32: note: in definition of macro 'WARN_ON'
     166 |         int __ret_warn_on = !!(condition);                              \
         |                                ^~~~~~~~~
   include/asm-generic/pgtable-nop4d.h:40:50: note: in expansion of macro 'pgd_val'
      40 | #define p4d_val(x)                              (pgd_val((x).pgd))
         |                                                  ^~~~~~~
   include/asm-generic/pgtable-nopud.h:48:50: note: in expansion of macro 'p4d_val'
      48 | #define pud_val(x)                              (p4d_val((x).p4d))
         |                                                  ^~~~~~~
   include/asm-generic/pgtable-nopmd.h:50:50: note: in expansion of macro 'pud_val'
      50 | #define pmd_val(x)                              (pud_val((x).pud))
         |                                                  ^~~~~~~
   arch/arc/include/asm/hugepage.h:39:34: note: in expansion of macro 'pmd_val'
      39 | #define pmd_trans_huge(pmd)     (pmd_val(pmd) & _PAGE_HW_SZ)
         |                                  ^~~~~~~
   mm/debug_vm_pgtable.c:961:18: note: in expansion of macro 'pmd_trans_huge'
     961 |         WARN_ON(!pmd_trans_huge(pmd_mkinvalid(pmd_mkhuge(pmd))));
         |                  ^~~~~~~~~~~~~~
   mm/debug_vm_pgtable.c:961:33: note: in expansion of macro 'pmd_mkinvalid'
     961 |         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:41: 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:166:32: note: in definition of macro 'WARN_ON'
     166 |         int __ret_warn_on = !!(condition);                              \
         |                                ^~~~~~~~~
   include/asm-generic/pgtable-nop4d.h:40:50: note: in expansion of macro 'pgd_val'
      40 | #define p4d_val(x)                              (pgd_val((x).pgd))
         |                                                  ^~~~~~~
   include/asm-generic/pgtable-nopud.h:48:50: note: in expansion of macro 'p4d_val'
      48 | #define pud_val(x)                              (p4d_val((x).p4d))
         |                                                  ^~~~~~~
   include/asm-generic/pgtable-nopmd.h:50:50: note: in expansion of macro 'pud_val'
      50 | #define pmd_val(x)                              (pud_val((x).pud))
         |                                                  ^~~~~~~
   arch/arc/include/asm/pgtable-levels.h:186:34: note: in expansion of macro 'pmd_val'
     186 | #define pmd_present(x)          (pmd_val(x))
         |                                  ^~~~~~~
   mm/debug_vm_pgtable.c:962:18: note: in expansion of macro 'pmd_present'
     962 |         WARN_ON(!pmd_present(pmd_mkinvalid(pmd_mkhuge(pmd))));
         |                  ^~~~~~~~~~~
   mm/debug_vm_pgtable.c:962:30: note: in expansion of macro 'pmd_mkinvalid'
     962 |         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


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  

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-22  7:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-22  7:17 [vgupta-arc:topic-zol-remove 98/187] arch/arc/include/asm/hugepage.h:29:41: error: implicit declaration of function 'pte_mknotpresent'; did you mean 'pte_present'? kernel test robot

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).