api: Fix warning about too few arguments in the K_MEM_POOL_DEFINE.
Static analyzer (clang-tidy) complains about too few arguments for the BUILD_ASSERT. There is missing second argument to BUILD_ASSERT used inside of the K_MEM_POOL_DEFINE. Signed-off-by: Artur Lipowski <artur.lipowski@hidglobal.com>
This commit is contained in:
parent
b935903543
commit
aae5b8bf8e
1 changed files with 1 additions and 1 deletions
|
@ -4807,7 +4807,7 @@ struct k_mem_pool {
|
|||
.flags = SYS_MEM_POOL_KERNEL \
|
||||
} \
|
||||
}; \
|
||||
BUILD_ASSERT(WB_UP(maxsz) >= _MPOOL_MINBLK)
|
||||
BUILD_ASSERT(WB_UP(maxsz) >= _MPOOL_MINBLK, "K_MEM_POOL_DEFINE: size of the largest block (parameter maxsz) is too small")
|
||||
|
||||
/**
|
||||
* @brief Allocate memory from a memory pool.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue