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:
https://gitee.com/anolis/cloud-kernel/pulls/743
感谢,变量未正确放置,后面会尽快修复。
(In reply to 橙子 from comment #2) > 感谢,变量未正确放置,后面会尽快修复。 我提交了pr(https://gitee.com/anolis/cloud-kernel/pulls/743),有空了review一下,谢谢!