From 8d03e49505006f0034e76af1b858ad7a8fc836a2 Mon Sep 17 00:00:00 2001 From: Minchan Kim Date: Thu, 11 Mar 2021 12:05:40 -0800 Subject: [PATCH] ANDROID: mm: build alloc_contig_dump_pages in page_alloc.o GKI has CONFIG_DYNAMIC_DEBUG_CORE. Thus, to enable only the specific alloc_contig_dump_pages without needing all pr_debug in every source files is using -DCONFIG_DYNAMIC_MODULE when the page_alloc.o compiled. Bug: 182195592 Signed-off-by: Minchan Kim Change-Id: I93266eb4161b3653389c737d4c767fd5d1083339 --- mm/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/Makefile b/mm/Makefile index eb0993adb49e..51e855ae8795 100644 --- a/mm/Makefile +++ b/mm/Makefile @@ -57,6 +57,7 @@ obj-y := filemap.o mempool.o oom_kill.o fadvise.o \ # Give 'page_alloc' its own module-parameter namespace page-alloc-y := page_alloc.o page-alloc-$(CONFIG_SHUFFLE_PAGE_ALLOCATOR) += shuffle.o +CFLAGS_page_alloc.o += -DDYNAMIC_DEBUG_MODULE obj-y += page-alloc.o obj-y += init-mm.o