posix: mqueue: Remove custom default for HEAP_MEM_POOL_SIZE

Use the new HEAP_MEM_POOL_ADD_SIZE_ prefix to construct a minimum
requirement for posix message queue usage. This way we can remove the
"special case" default values from the HEAP_MEM_POOL_SIZE Kconfig
definition.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2023-12-08 12:16:32 +02:00 committed by Carles Cufí
parent ec23622b07
commit 7bb16c779b
2 changed files with 4 additions and 2 deletions

View file

@ -835,8 +835,7 @@ if KERNEL_MEM_POOL
config HEAP_MEM_POOL_SIZE
int "Heap memory pool size (in bytes)"
default 0 if !POSIX_MQUEUE
default 1024 if POSIX_MQUEUE
default 0
help
This option specifies the size of the heap memory pool used when
dynamically allocating memory using k_malloc(). The maximum size of

View file

@ -30,4 +30,7 @@ config MQUEUE_NAMELEN_MAX
help
Mention length of message queue name in number of characters.
config HEAP_MEM_POOL_ADD_SIZE_MQUEUE
def_int 1024
endif