From 79e7c57a1833afd31bb385ec1ad606b83a7f876e Mon Sep 17 00:00:00 2001 From: Xu Yu Date: Sat, 9 May 2020 18:33:54 +0800 Subject: [PATCH] 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: 7d6cb94f148e ("alinux: mm: Pin code section of process in memory") Reported-by: kbuild test robot Signed-off-by: Xu Yu Acked-by: Xunlei Pang --- mm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/Makefile b/mm/Makefile index 3c19cadc2019..8fc4b4ef8d90 100644 --- a/mm/Makefile +++ b/mm/Makefile @@ -107,4 +107,4 @@ obj-$(CONFIG_HMM) += hmm.o obj-$(CONFIG_MEMFD_CREATE) += memfd.o obj-$(CONFIG_KIDLED) += kidled.o obj-$(CONFIG_PAGE_REPORTING) += page_reporting.o -obj-y += unevictable.o +mmu-$(CONFIG_MMU) += unevictable.o -- GitLab