Re: [PATCH] mm: introduce include/linux/pgalloc.h

From: kernel test robot
Date: Tue Mar 11 2025 - 11:26:18 EST


Hi Gwan-gyeong,

kernel test robot noticed the following build errors:

[auto build test ERROR on tip/x86/mm]
[also build test ERROR on linus/master v6.14-rc6]
[cannot apply to akpm-mm/mm-everything tip/x86/core next-20250311]
[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/Gwan-gyeong-Mun/mm-introduce-include-linux-pgalloc-h/20250311-194723
base: tip/x86/mm
patch link: https://lore.kernel.org/r/20250311114420.240341-1-gwan-gyeong.mun%40intel.com
patch subject: [PATCH] mm: introduce include/linux/pgalloc.h
config: x86_64-buildonly-randconfig-002-20250311 (https://download.01.org/0day-ci/archive/20250311/202503112344.GSI5KIK4-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250311/202503112344.GSI5KIK4-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/202503112344.GSI5KIK4-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> arch/x86/mm/init_64.c:236:6: error: redefinition of 'arch_sync_global_p4ds'
236 | void arch_sync_global_p4ds(unsigned long start, unsigned long end) {}
| ^~~~~~~~~~~~~~~~~~~~~
arch/x86/mm/init_64.c:228:6: note: previous definition of 'arch_sync_global_p4ds' with type 'void(long unsigned int, long unsigned int)'
228 | void arch_sync_global_p4ds(unsigned long start, unsigned long end)
| ^~~~~~~~~~~~~~~~~~~~~
>> arch/x86/mm/init_64.c:238:6: error: redefinition of 'arch_sync_global_pgds'
238 | void arch_sync_global_pgds(unsigned long start, unsigned long end)
| ^~~~~~~~~~~~~~~~~~~~~
arch/x86/mm/init_64.c:233:6: note: previous definition of 'arch_sync_global_pgds' with type 'void(long unsigned int, long unsigned int)'
233 | void arch_sync_global_pgds(unsigned long start, unsigned long end) {}
| ^~~~~~~~~~~~~~~~~~~~~


vim +/arch_sync_global_p4ds +236 arch/x86/mm/init_64.c

234
235 #if CONFIG_PGTABLE_LEVELS > 4
> 236 void arch_sync_global_p4ds(unsigned long start, unsigned long end) {}
237
> 238 void arch_sync_global_pgds(unsigned long start, unsigned long end)
239 {
240 sync_global_pgds(start, end);
241 }
242

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