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:
Artur Lipowski 2020-04-03 17:44:37 +02:00 committed by Anas Nashif
commit aae5b8bf8e

View file

@ -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.