Skip to content

Commit

Permalink
mm/Kconfig: fix build error when MM_BACKTRACE > 0 and disable mempool
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
CV-Bowen authored and xiaoxiang781216 committed Oct 11, 2024
1 parent a1f3800 commit 8eabad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 8eabad5

Please sign in to comment.