From 8eabad52fd4897fa697a00bc8917470dfac6ff86 Mon Sep 17 00:00:00 2001 From: Bowen Wang Date: Wed, 18 Oct 2023 18:05:32 +0800 Subject: [PATCH] mm/Kconfig: fix build error when MM_BACKTRACE > 0 and disable mempool mempool is always be compiled, so when enable BACKTRACE but not enable memdpool, the MM_HEAP_MEMPOOL_BACKTRACE_SKIP is not defined mempool_add_backtrace() will compiled failed. Signed-off-by: Bowen Wang --- mm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/Kconfig b/mm/Kconfig index ecfb7268d3..3e59c48fa4 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -241,7 +241,7 @@ config MM_HEAP_MEMPOOL_CHUNK_SIZE config MM_HEAP_MEMPOOL_BACKTRACE_SKIP int "The skip depth of backtrace for mempool" default 6 - depends on MM_HEAP_MEMPOOL_THRESHOLD != 0 && MM_BACKTRACE > 0 + depends on MM_BACKTRACE > 0 ---help--- This number is the skipped backtrace depth for mempool.