lkml.org 
[lkml]   [2021]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[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'?
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
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-10-22 09:23    [W:0.368 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site