Bug 2280 - mm/damon: 关闭CONFIG_DAMON_DBGFS,内核编译报错
Summary: mm/damon: 关闭CONFIG_DAMON_DBGFS,内核编译报错
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: mm (show other bugs) mm
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: kun(llfl)
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-26 19:12 UTC by 苟浩
Modified: 2022-09-26 19:36 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 苟浩 uniontech_group 2022-09-26 19:12:09 UTC
Description of problem:
关闭CONFIG_DAMON_DBGFS,内核编译失败

Version-Release number of selected component (if applicable):
anck-devel-5.10

How reproducible:


Steps to Reproduce:
1.关闭CONFIG_DAMON_DBGFS
2.编译内核

Actual results:
编译报错:
mm/damon/core.o:在函数‘kdamond_fn’中:
/home/gh/5.10.0-20/mm/damon/core.c:1099:对‘numa_stat_enabled_key’未定义的引用
mm/damon/core.o:在函数‘get_damon_target’中:
/home/gh/5.10.0-20/mm/damon/core.c:1110:对‘dbgfs_nr_ctxs’未定义的引用
/home/gh/5.10.0-20/mm/damon/core.c:1110:对‘dbgfs_ctxs’未定义的引用
/home/gh/5.10.0-20/mm/damon/core.c:1115:对‘dbgfs_ctxs’未定义的引用
/home/gh/5.10.0-20/mm/damon/core.c:1110:对‘dbgfs_nr_ctxs’未定义的引用
mm/damon/core.o:(__jump_table+0x58):对‘numa_stat_enabled_key’未定义的引用
mm/damon/vaddr.o:(__jump_table+0x38):对‘numa_stat_enabled_key’未定义的引用
mm/damon/vaddr.o:(__jump_table+0xa8):对‘numa_stat_enabled_key’未定义的引用
mm/damon/vaddr.o:(__jump_table+0xb8):对‘numa_stat_enabled_key’未定义的引用

Expected results:
无报错

Additional info:
Comment 2 橙子 alibaba_cloud_group 2022-09-26 19:32:39 UTC
感谢,变量未正确放置,后面会尽快修复。
Comment 3 苟浩 uniontech_group 2022-09-26 19:36:25 UTC
(In reply to 橙子 from comment #2)
> 感谢,变量未正确放置,后面会尽快修复。
我提交了pr(https://gitee.com/anolis/cloud-kernel/pulls/743),有空了review一下,谢谢