* [akpm-mm:mm-new 313/316] memcontrol.c:undefined reference to `ksm_process_profit'
@ 2025-05-02 20:31 kernel test robot
2025-05-04 1:39 ` Andrew Morton
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2025-05-02 20:31 UTC (permalink / raw)
To: xu xin; +Cc: oe-kbuild-all, Andrew Morton, Linux Memory Management List
tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
head: 108c0a7e7ceafc00a50d1b2fd56cfc8fa99d4ddd
commit: 94c2f83bdfb95917213b7e95584fc2696c210655 [313/316] memcontrol: add ksm_profit in cgroup/memory.ksm_stat
config: x86_64-buildonly-randconfig-002-20250503 (https://download.01.org/0day-ci/archive/20250503/202505030429.a2GUiRAz-lkp@intel.com/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/20250503/202505030429.a2GUiRAz-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505030429.a2GUiRAz-lkp@intel.com/
All errors (new ones prefixed by >>):
ld: mm/memcontrol.o: in function `evaluate_memcg_ksm_stat':
>> memcontrol.c:(.text+0xdb5): undefined reference to `ksm_process_profit'
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [akpm-mm:mm-new 313/316] memcontrol.c:undefined reference to `ksm_process_profit'
2025-05-02 20:31 [akpm-mm:mm-new 313/316] memcontrol.c:undefined reference to `ksm_process_profit' kernel test robot
@ 2025-05-04 1:39 ` Andrew Morton
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2025-05-04 1:39 UTC (permalink / raw)
To: kernel test robot; +Cc: xu xin, oe-kbuild-all, Linux Memory Management List
On Sat, 3 May 2025 04:31:37 +0800 kernel test robot <lkp@intel.com> wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
> head: 108c0a7e7ceafc00a50d1b2fd56cfc8fa99d4ddd
> commit: 94c2f83bdfb95917213b7e95584fc2696c210655 [313/316] memcontrol: add ksm_profit in cgroup/memory.ksm_stat
> config: x86_64-buildonly-randconfig-002-20250503 (https://download.01.org/0day-ci/archive/20250503/202505030429.a2GUiRAz-lkp@intel.com/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/20250503/202505030429.a2GUiRAz-lkp@intel.com/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@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202505030429.a2GUiRAz-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
> ld: mm/memcontrol.o: in function `evaluate_memcg_ksm_stat':
> >> memcontrol.c:(.text+0xdb5): undefined reference to `ksm_process_profit'
urgh, CONFIG_PROC_FS=n.
It was kind of ksm_process_profit() to avoid bloating CONFIG_PROC_FS=n
kernels but really, are KSM and memcg even viable without procfs?
I think I'll just do this.
--- a/mm/ksm.c~memcontrol-add-ksm_profit-in-cgroup-memoryksm_stat-fix
+++ a/mm/ksm.c
@@ -3268,7 +3268,6 @@ static void wait_while_offlining(void)
}
#endif /* CONFIG_MEMORY_HOTREMOVE */
-#ifdef CONFIG_PROC_FS
/*
* The process is mergeable only if any VMA is currently
* applicable to KSM.
@@ -3293,7 +3292,6 @@ long ksm_process_profit(struct mm_struct
return (long)(mm->ksm_merging_pages + mm_ksm_zero_pages(mm)) * PAGE_SIZE -
mm->ksm_rmap_items * sizeof(struct ksm_rmap_item);
}
-#endif /* CONFIG_PROC_FS */
#ifdef CONFIG_SYSFS
/*
_
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-05-04 1:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-02 20:31 [akpm-mm:mm-new 313/316] memcontrol.c:undefined reference to `ksm_process_profit' kernel test robot
2025-05-04 1:39 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox