Re: [PATCH V2] mm: Drop unused set_pte_safe()

From: kernel test robot
Date: Fri Sep 13 2024 - 00:17:54 EST


Hi Anshuman,

kernel test robot noticed the following build errors:

[auto build test ERROR on akpm-mm/mm-everything]

url: https://github.com/intel-lab-lkp/linux/commits/Anshuman-Khandual/mm-Drop-unused-set_pte_safe/20240910-181151
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20240910101026.428808-1-anshuman.khandual%40arm.com
patch subject: [PATCH V2] mm: Drop unused set_pte_safe()
config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20240913/202409131220.CJ5MlGCG-lkp@xxxxxxxxx/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240913/202409131220.CJ5MlGCG-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/202409131220.CJ5MlGCG-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> arch/x86/mm/init_64.c:91:1: error: call to undeclared function 'set_pte_safe'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
91 | DEFINE_ENTRY(pte, pte, init)
| ^
arch/x86/mm/init_64.c:83:3: note: expanded from macro 'DEFINE_ENTRY'
83 | set_##type1##_safe(arg1, arg2); \
| ^
<scratch space>:49:1: note: expanded from here
49 | set_pte_safe
| ^
arch/x86/mm/init_64.c:91:1: note: did you mean 'set_pte_range'?
arch/x86/mm/init_64.c:83:3: note: expanded from macro 'DEFINE_ENTRY'
83 | set_##type1##_safe(arg1, arg2); \
| ^
<scratch space>:49:1: note: expanded from here
49 | set_pte_safe
| ^
include/linux/mm.h:1331:6: note: 'set_pte_range' declared here
1331 | void set_pte_range(struct vm_fault *vmf, struct folio *folio,
| ^
1 error generated.


vim +/set_pte_safe +91 arch/x86/mm/init_64.c

eccd906484d1cd Brijesh Singh 2019-04-17 87
eccd906484d1cd Brijesh Singh 2019-04-17 88 DEFINE_ENTRY(p4d, p4d, init)
eccd906484d1cd Brijesh Singh 2019-04-17 89 DEFINE_ENTRY(pud, pud, init)
eccd906484d1cd Brijesh Singh 2019-04-17 90 DEFINE_ENTRY(pmd, pmd, init)
eccd906484d1cd Brijesh Singh 2019-04-17 @91 DEFINE_ENTRY(pte, pte, init)
eccd906484d1cd Brijesh Singh 2019-04-17 92

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