public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [alexshi:mmunstable 36/43] include/linux/mm.h:3005:25: error: use of undeclared identifier 'PTRS_PER_PMD'
@ 2024-07-21  3:11 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-07-21  3:11 UTC (permalink / raw)
  To: Alex Shi (Tencent); +Cc: llvm, oe-kbuild-all

tree:   https://github.com/alexshi/linux.git mmunstable
head:   6c298a18633e397b8be4d6f48fc8cd1f860dd896
commit: e85f4771561b1e804a7ae4d386e81bc9545bd47d [36/43] mm/pgtable: define pmd_ptdesc() helper out of USE_SPLIT_PMD_PTLOCKS
config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20240721/202407211101.xBeq33Ev-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project ad154281230d83ee551e12d5be48bb956ef47ed3)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240721/202407211101.xBeq33Ev-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407211101.xBeq33Ev-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from arch/arm/kernel/asm-offsets.c:12:
   In file included from include/linux/mm.h:2221:
   include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     514 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
   In file included from arch/arm/kernel/asm-offsets.c:12:
>> include/linux/mm.h:3005:25: error: use of undeclared identifier 'PTRS_PER_PMD'
    3005 |         unsigned long mask = ~(PTRS_PER_PMD * sizeof(pmd_t) - 1);
         |                                ^
   1 warning and 1 error generated.
   make[3]: *** [scripts/Makefile.build:117: arch/arm/kernel/asm-offsets.s] Error 1
   make[3]: Target 'prepare' not remade because of errors.
   make[2]: *** [Makefile:1208: prepare0] Error 2
   make[2]: Target 'prepare' not remade because of errors.
   make[1]: *** [Makefile:240: __sub-make] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:240: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +/PTRS_PER_PMD +3005 include/linux/mm.h

3ed3a4f0ddffec Kirill A. Shutemov      2016-03-17  2991  
3ed3a4f0ddffec Kirill A. Shutemov      2016-03-17  2992  #define pte_alloc_map(mm, pmd, address)			\
4cf58924951ef8 Joel Fernandes (Google  2019-01-03  2993) 	(pte_alloc(mm, pmd) ? NULL : pte_offset_map(pmd, address))
1bb3630e89cb8a Hugh Dickins            2005-10-29  2994  
c74df32c724a16 Hugh Dickins            2005-10-29  2995  #define pte_alloc_map_lock(mm, pmd, address, ptlp)	\
4cf58924951ef8 Joel Fernandes (Google  2019-01-03  2996) 	(pte_alloc(mm, pmd) ?			\
c74df32c724a16 Hugh Dickins            2005-10-29  2997  		 NULL : pte_offset_map_lock(mm, pmd, address, ptlp))
c74df32c724a16 Hugh Dickins            2005-10-29  2998  
1bb3630e89cb8a Hugh Dickins            2005-10-29  2999  #define pte_alloc_kernel(pmd, address)			\
4cf58924951ef8 Joel Fernandes (Google  2019-01-03  3000) 	((unlikely(pmd_none(*(pmd))) && __pte_alloc_kernel(pmd))? \
1bb3630e89cb8a Hugh Dickins            2005-10-29  3001  		NULL: pte_offset_kernel(pmd, address))
^1da177e4c3f41 Linus Torvalds          2005-04-16  3002  
7e25de77bc5ea5 Anshuman Khandual       2022-11-25  3003  static inline struct page *pmd_pgtable_page(pmd_t *pmd)
634391ace193d0 Martin Schwidefsky      2014-02-13  3004  {
634391ace193d0 Martin Schwidefsky      2014-02-13 @3005  	unsigned long mask = ~(PTRS_PER_PMD * sizeof(pmd_t) - 1);
634391ace193d0 Martin Schwidefsky      2014-02-13  3006  	return virt_to_page((void *)((unsigned long) pmd & mask));
634391ace193d0 Martin Schwidefsky      2014-02-13  3007  }
634391ace193d0 Martin Schwidefsky      2014-02-13  3008  

:::::: The code at line 3005 was first introduced by commit
:::::: 634391ace193d00c59a691e9fc227b0f8942bad7 mm: mask bits from pmd in pmd_lockptr/pmd_huge_pte

:::::: TO: Martin Schwidefsky <schwidefsky@de.ibm.com>
:::::: CC: Martin Schwidefsky <schwidefsky@de.ibm.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2024-07-21  3:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-21  3:11 [alexshi:mmunstable 36/43] include/linux/mm.h:3005:25: error: use of undeclared identifier 'PTRS_PER_PMD' 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