zephyr/lib
Kumar Gala d37e328080 lib: mempool: Fix compile warning
Fix a compile warning if we build using int types defined to match the
compiler.  We get the following warnings:

lib/mempool/mempool.c: In function ‘sys_mem_pool_alloc’:
lib/mempool/mempool.c:317:48: warning: passing argument 3 of ‘_sys_mem_pool_block_alloc’ from incompatible pointer type [-Wincompatible-pointer-types]
  if (_sys_mem_pool_block_alloc(&p->base, size, &level, &block,
                                                ^
lib/mempool/mempool.c:221:5: note: expected ‘u32_t * {aka long unsigned int *}’ but argument is of type ‘int *’
 int _sys_mem_pool_block_alloc(struct sys_mem_pool_base *p, size_t size,
     ^~~~~~~~~~~~~~~~~~~~~~~~~
lib/mempool/mempool.c:317:56: warning: passing argument 4 of ‘_sys_mem_pool_block_alloc’ from incompatible pointer type [-Wincompatible-pointer-types]
  if (_sys_mem_pool_block_alloc(&p->base, size, &level, &block,
                                                        ^
lib/mempool/mempool.c:221:5: note: expected ‘u32_t * {aka long unsigned int *}’ but argument is of type ‘int *’
 int _sys_mem_pool_block_alloc(struct sys_mem_pool_base *p, size_t size,
     ^~~~~~~~~~~~~~~~~~~~~~~~~

Make local variables block & level u32_t to match what
_sys_mem_pool_block_alloc expects.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-10-29 10:52:00 -04:00
..
base64
cmsis_rtos_v1 lib/cmsis_rtos_v1: Fix some Kconfig inconsistencies 2018-10-02 14:08:33 -07:00
crc crc8: fix const correctness 2018-10-04 16:37:21 -05:00
json
libc Revert "libc: minimal: Add error codes for key management" 2018-10-29 10:12:23 +00:00
mempool lib: mempool: Fix compile warning 2018-10-29 10:52:00 -04:00
posix include: posix: unistd: Fix prototypes and dependency 2018-10-09 08:19:44 -04:00
rbtree kernel: sched: Change boolean APIs to return bool 2018-09-28 06:28:41 +05:30
ring_buffer lib: ring_buffer: add raw byte access mode 2018-10-09 13:58:44 -04:00
CMakeLists.txt lib: posix: Add top-level define for all POSIX APIs - CONFIG_POSIX_API 2018-10-02 10:51:52 -07:00
Kconfig
thread_entry.c