[openeuler:openEuler-1.0-LTS 1935/1935] mm/share_pool.c:1043:2: error: implicit declaration of function 'sysctl_compaction_handler'; did you mean 'compaction_failed'?
Hi Zhou, FYI, the error/warning still remains. tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 6c5657aecca1857be6ea39f789159c9acfde2f9e commit: d45b33b72c530e64219ad997947a33f6e07d339c [1935/1935] share pool: Try to compact when memory is insufficient config: arm64-randconfig-r132-20251119 (https://download.01.org/0day-ci/archive/20251119/202511192140.dgf3lMX3-lkp@i...) compiler: aarch64-linux-gcc (GCC) 8.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251119/202511192140.dgf3lMX3-lkp@i...) 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/202511192140.dgf3lMX3-lkp@intel.com/ All errors (new ones prefixed by >>): mm/share_pool.c:59:5: sparse: sparse: symbol 'enable_mdc_default_group' was not declared. Should it be static? mm/share_pool.c:1043:9: sparse: sparse: undefined identifier 'sysctl_compaction_handler' mm/share_pool.c:1772:21: sparse: sparse: undefined identifier 'huge_ptep_get' mm/share_pool.c:1772:34: sparse: sparse: invalid initializer mm/share_pool.c:2524:30: sparse: sparse: undefined identifier 'huge_pte_none' mm/share_pool.c:2537:23: sparse: sparse: undefined identifier 'huge_add_to_page_cache' mm/share_pool.c:2553:14: sparse: sparse: undefined identifier 'huge_pte_none' mm/share_pool.c:2559:9: sparse: sparse: undefined identifier 'set_huge_pte_at' mm/share_pool.c:2561:9: sparse: sparse: undefined identifier 'hugetlb_count_add' mm/share_pool.c:2597:24: sparse: sparse: undefined identifier 'hugetlb_alloc_hugepage' mm/share_pool.c: In function 'sp_compact_nodes':
mm/share_pool.c:1043:2: error: implicit declaration of function 'sysctl_compaction_handler'; did you mean 'compaction_failed'? [-Werror=implicit-function-declaration] sysctl_compaction_handler(NULL, 1, NULL, NULL, NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~ compaction_failed mm/share_pool.c: In function 'sp_hugetlb_entry': mm/share_pool.c:1772:14: error: implicit declaration of function 'huge_ptep_get'; did you mean 'huge_pte_lock'? [-Werror=implicit-function-declaration] pte_t pte = huge_ptep_get(ptep); ^~~~~~~~~~~~~ huge_pte_lock mm/share_pool.c:1772:14: error: invalid initializer mm/share_pool.c: In function 'sharepool_no_page': mm/share_pool.c:2524:9: error: implicit declaration of function 'huge_pte_none'; did you mean 'huge_pte_lock'? [-Werror=implicit-function-declaration] if (!huge_pte_none(huge_ptep_get(ptep))) { ^~~~~~~~~~~~~ huge_pte_lock mm/share_pool.c:2537:9: error: implicit declaration of function 'huge_add_to_page_cache'; did you mean 'add_to_page_cache'? [-Werror=implicit-function-declaration] err = huge_add_to_page_cache(page, mapping, idx); ^~~~~~~~~~~~~~~~~~~~~~ add_to_page_cache mm/share_pool.c:2559:2: error: implicit declaration of function 'set_huge_pte_at'; did you mean 'set_huge_swap_pte_at'? [-Werror=implicit-function-declaration] set_huge_pte_at(mm, haddr, ptep, new_pte); ^~~~~~~~~~~~~~~ set_huge_swap_pte_at mm/share_pool.c:2561:2: error: implicit declaration of function 'hugetlb_count_add'; did you mean 'hugetlb_count_sub'? [-Werror=implicit-function-declaration] hugetlb_count_add(pages_per_huge_page(h), mm); ^~~~~~~~~~~~~~~~~ hugetlb_count_sub mm/share_pool.c: In function 'sp_alloc_pages': mm/share_pool.c:2597:10: error: implicit declaration of function 'hugetlb_alloc_hugepage'; did you mean 'vmalloc_hugepage'? [-Werror=implicit-function-declaration] return hugetlb_alloc_hugepage(NUMA_NO_NODE, HUGETLB_ALLOC_NONE); ^~~~~~~~~~~~~~~~~~~~~~ vmalloc_hugepage mm/share_pool.c:2597:47: error: 'HUGETLB_ALLOC_NONE' undeclared (first use in this function); did you mean 'HUGETLB_ANON_FILE'? return hugetlb_alloc_hugepage(NUMA_NO_NODE, HUGETLB_ALLOC_NONE); ^~~~~~~~~~~~~~~~~~ HUGETLB_ANON_FILE mm/share_pool.c:2597:47: note: each undeclared identifier is reported only once for each function it appears in mm/share_pool.c:2600:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ cc1: some warnings being treated as errors -- mm/share_pool.c: In function 'sp_compact_nodes': mm/share_pool.c:1043:2: error: implicit declaration of function 'sysctl_compaction_handler'; did you mean 'compaction_failed'? [-Werror=implicit-function-declaration] sysctl_compaction_handler(NULL, 1, NULL, NULL, NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~ compaction_failed mm/share_pool.c: In function 'sp_hugetlb_entry': mm/share_pool.c:1772:14: error: implicit declaration of function 'huge_ptep_get'; did you mean 'huge_pte_lock'? [-Werror=implicit-function-declaration] pte_t pte = huge_ptep_get(ptep); ^~~~~~~~~~~~~ huge_pte_lock mm/share_pool.c:1772:14: error: invalid initializer mm/share_pool.c: In function 'sharepool_no_page': mm/share_pool.c:2524:9: error: implicit declaration of function 'huge_pte_none'; did you mean 'huge_pte_lock'? [-Werror=implicit-function-declaration] if (!huge_pte_none(huge_ptep_get(ptep))) { ^~~~~~~~~~~~~ huge_pte_lock mm/share_pool.c:2537:9: error: implicit declaration of function 'huge_add_to_page_cache'; did you mean 'add_to_page_cache'? [-Werror=implicit-function-declaration] err = huge_add_to_page_cache(page, mapping, idx); ^~~~~~~~~~~~~~~~~~~~~~ add_to_page_cache mm/share_pool.c:2559:2: error: implicit declaration of function 'set_huge_pte_at'; did you mean 'set_huge_swap_pte_at'? [-Werror=implicit-function-declaration] set_huge_pte_at(mm, haddr, ptep, new_pte); ^~~~~~~~~~~~~~~ set_huge_swap_pte_at mm/share_pool.c:2561:2: error: implicit declaration of function 'hugetlb_count_add'; did you mean 'hugetlb_count_sub'? [-Werror=implicit-function-declaration] hugetlb_count_add(pages_per_huge_page(h), mm); ^~~~~~~~~~~~~~~~~ hugetlb_count_sub mm/share_pool.c: In function 'sp_alloc_pages': mm/share_pool.c:2597:10: error: implicit declaration of function 'hugetlb_alloc_hugepage'; did you mean 'vmalloc_hugepage'? [-Werror=implicit-function-declaration] return hugetlb_alloc_hugepage(NUMA_NO_NODE, HUGETLB_ALLOC_NONE); ^~~~~~~~~~~~~~~~~~~~~~ vmalloc_hugepage mm/share_pool.c:2597:47: error: 'HUGETLB_ALLOC_NONE' undeclared (first use in this function); did you mean 'HUGETLB_ANON_FILE'? return hugetlb_alloc_hugepage(NUMA_NO_NODE, HUGETLB_ALLOC_NONE); ^~~~~~~~~~~~~~~~~~ HUGETLB_ANON_FILE mm/share_pool.c:2597:47: note: each undeclared identifier is reported only once for each function it appears in mm/share_pool.c:2600:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ cc1: some warnings being treated as errors
Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for HARDLOCKUP_DETECTOR Depends on [n]: DEBUG_KERNEL [=n] && !S390 && (HAVE_HARDLOCKUP_DETECTOR_PERF [=n] || HAVE_HARDLOCKUP_DETECTOR_ARCH [=y]) Selected by [y]: - SDEI_WATCHDOG [=y] && <choice> && ARM_SDE_INTERFACE [=y] && !HARDLOCKUP_CHECK_TIMESTAMP [=n] vim +1043 mm/share_pool.c 1039 1040 static unsigned long last_jiffies; 1041 static void sp_compact_nodes(struct work_struct *work) 1042 {
1043 sysctl_compaction_handler(NULL, 1, NULL, NULL, NULL); 1044 1045 kfree(work); 1046 } 1047
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot