tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: bca07979c0a7054331b91c892163a0d214cffcbe commit: d45b33b72c530e64219ad997947a33f6e07d339c [18200/22019] share pool: Try to compact when memory is insufficient config: arm64-randconfig-r111-20240331 (https://download.01.org/0day-ci/archive/20240402/202404020659.7QBKhQPa-lkp@i...) compiler: aarch64-linux-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20240402/202404020659.7QBKhQPa-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/202404020659.7QBKhQPa-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: In function 'sp_compact_nodes':
mm/share_pool.c:1043:9: error: implicit declaration of function 'sysctl_compaction_handler' [-Werror=implicit-function-declaration]
1043 | sysctl_compaction_handler(NULL, 1, NULL, NULL, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mm/share_pool.c:22: In function 'memalloc_noreclaim_restore', inlined from 'sp_alloc' at mm/share_pool.c:1374:4: include/linux/sched/mm.h:278:58: warning: 'noreclaim_flag' may be used uninitialized [-Wmaybe-uninitialized] 278 | current->flags = (current->flags & ~PF_MEMALLOC) | flags; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ mm/share_pool.c: In function 'sp_alloc': mm/share_pool.c:1238:22: note: 'noreclaim_flag' was declared here 1238 | unsigned int noreclaim_flag; | ^~~~~~~~~~~~~~ cc1: some warnings being treated as errors
vim +/sysctl_compaction_handler +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