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 <wangbowen6@xiaomi.com>
This commit is contained in:
Bowen Wang 2023-10-18 18:05:32 +08:00 committed by Xiang Xiao
parent a1f3800a9d
commit 8eabad52fd
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ config MM_HEAP_MEMPOOL_CHUNK_SIZE
config MM_HEAP_MEMPOOL_BACKTRACE_SKIP config MM_HEAP_MEMPOOL_BACKTRACE_SKIP
int "The skip depth of backtrace for mempool" int "The skip depth of backtrace for mempool"
default 6 default 6
depends on MM_HEAP_MEMPOOL_THRESHOLD != 0 && MM_BACKTRACE > 0 depends on MM_BACKTRACE > 0
---help--- ---help---
This number is the skipped backtrace depth for mempool. This number is the skipped backtrace depth for mempool.