Hi Matthew, kernel test robot noticed the following build errors: [auto build test ERROR on geert-m68k/for-next] [also build test ERROR on geert-m68k/for-linus uml/next linus/master v6.11-rc3 next-20240814] [cannot apply to uml/fixes] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Matthew-Wilcox-Oracle/mm-Introduce-a-common-definition-of-mk_pte/20240815-001852 base: https://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git for-next patch link: https://lore.kernel.org/r/20240814154427.162475-2-willy%40infradead.org patch subject: [PATCH 1/5] mm: Introduce a common definition of mk_pte() config: arc-allnoconfig (https://download.01.org/0day-ci/archive/20240815/202408151035.TtR6QRvZ-lkp@xxxxxxxxx/config) compiler: arc-elf-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240815/202408151035.TtR6QRvZ-lkp@xxxxxxxxx/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@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202408151035.TtR6QRvZ-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): In file included from arch/arc/include/asm/io.h:11, from include/linux/io.h:14, from lib/iomap_copy.c:7: include/linux/pgtable.h: In function 'mk_pte': >> include/asm-generic/memory_model.h:19:59: error: 'mem_map' undeclared (first use in this function); did you mean 'memcmp'? 19 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \ | ^~~~~~~ arch/arc/include/asm/page.h:75:37: note: in definition of macro '__pte' 75 | #define __pte(x) ((pte_t) { (x) }) | ^ include/asm-generic/memory_model.h:62:33: note: in expansion of macro 'PFN_PHYS' 62 | #define __pfn_to_phys(pfn) PFN_PHYS(pfn) | ^~~~~~~~ arch/arc/include/asm/pgtable-levels.h:179:39: note: in expansion of macro '__pfn_to_phys' 179 | #define pfn_pte(pfn, prot) __pte(__pfn_to_phys(pfn) | pgprot_val(prot)) | ^~~~~~~~~~~~~ include/linux/pgtable.h:47:16: note: in expansion of macro 'pfn_pte' 47 | return pfn_pte(page_to_pfn(page), pgprot); | ^~~~~~~ include/asm-generic/memory_model.h:64:21: note: in expansion of macro '__page_to_pfn' 64 | #define page_to_pfn __page_to_pfn | ^~~~~~~~~~~~~ include/linux/pgtable.h:47:24: note: in expansion of macro 'page_to_pfn' 47 | return pfn_pte(page_to_pfn(page), pgprot); | ^~~~~~~~~~~ include/asm-generic/memory_model.h:19:59: note: each undeclared identifier is reported only once for each function it appears in 19 | #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \ | ^~~~~~~ arch/arc/include/asm/page.h:75:37: note: in definition of macro '__pte' 75 | #define __pte(x) ((pte_t) { (x) }) | ^ include/asm-generic/memory_model.h:62:33: note: in expansion of macro 'PFN_PHYS' 62 | #define __pfn_to_phys(pfn) PFN_PHYS(pfn) | ^~~~~~~~ arch/arc/include/asm/pgtable-levels.h:179:39: note: in expansion of macro '__pfn_to_phys' 179 | #define pfn_pte(pfn, prot) __pte(__pfn_to_phys(pfn) | pgprot_val(prot)) | ^~~~~~~~~~~~~ include/linux/pgtable.h:47:16: note: in expansion of macro 'pfn_pte' 47 | return pfn_pte(page_to_pfn(page), pgprot); | ^~~~~~~ include/asm-generic/memory_model.h:64:21: note: in expansion of macro '__page_to_pfn' 64 | #define page_to_pfn __page_to_pfn | ^~~~~~~~~~~~~ include/linux/pgtable.h:47:24: note: in expansion of macro 'page_to_pfn' 47 | return pfn_pte(page_to_pfn(page), pgprot); | ^~~~~~~~~~~ vim +19 include/asm-generic/memory_model.h a117e66ed45ac0 KAMEZAWA Hiroyuki 2006-03-27 17 67de648211fa04 Andy Whitcroft 2006-06-23 18 #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET)) 67de648211fa04 Andy Whitcroft 2006-06-23 @19 #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \ a117e66ed45ac0 KAMEZAWA Hiroyuki 2006-03-27 20 ARCH_PFN_OFFSET) a117e66ed45ac0 KAMEZAWA Hiroyuki 2006-03-27 21 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki