提交 79e7c57a 编写于 作者: X Xu Yu

alinux: mm: fix undefined reference to mlock_fixup

fix #27508674

The function mlock_fixup is not defined if CONFIG_MMU is not set, but is
directly invoked by mm/unevictable.c without considering the config.

Make unevictable.o depend on mmu-$(CONFIG_MMU) where the definition of
mlock_fixup locates in.

Fixes: 7d6cb94f ("alinux: mm: Pin code section of process in memory")
Reported-by: Nkbuild test robot <lkp@intel.com>
Signed-off-by: NXu Yu <xuyu@linux.alibaba.com>
Acked-by: NXunlei Pang <xlpang@linux.alibaba.com>
上级 9ed6dd62
...@@ -107,4 +107,4 @@ obj-$(CONFIG_HMM) += hmm.o ...@@ -107,4 +107,4 @@ obj-$(CONFIG_HMM) += hmm.o
obj-$(CONFIG_MEMFD_CREATE) += memfd.o obj-$(CONFIG_MEMFD_CREATE) += memfd.o
obj-$(CONFIG_KIDLED) += kidled.o obj-$(CONFIG_KIDLED) += kidled.o
obj-$(CONFIG_PAGE_REPORTING) += page_reporting.o obj-$(CONFIG_PAGE_REPORTING) += page_reporting.o
obj-y += unevictable.o mmu-$(CONFIG_MMU) += unevictable.o
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册