resource: Fix build warning for memory/process resource driver 22/271722/2
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 25 Feb 2022 10:35:46 +0000 (19:35 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 25 Feb 2022 10:38:05 +0000 (19:38 +0900)
commit624fd47f44680ed2fdfd94d7a630ca5c679c30f3
tree00044567a53275badb7c7ba01803306845bcfce6
parent65881a90959dcfd711863cf96108daf6bcf07b0a
resource: Fix build warning for memory/process resource driver

- Build warning 1
src/resource/resource-memory.c:42:10: warning: implicit declaration
  of function 'kernel_get_memory_total' [-Wimplicit-function-declaration]
[   11s]    42 |   return kernel_get_memory_total();
[   11s]       |          ^~~~~~~~~~~~~~~~~~~~~~~
src/resource/resource-memory.c:44:10: warning: implicit declaration
  of function 'kernel_get_memory_info' [-Wimplicit-function-declaration]
[   11s]    44 |   return kernel_get_memory_info(PROC_MEM_INFO_MEM_AVAILABLE);

- Build warning 2
src/resource/resource-process.c:452:19: warning: unused variable 'memory' [-Wunused-variable]
[   12s]   452 |  struct resource *memory;

Change-Id: I2a473453fb02fc7dd1eb8319474fe9e8633ea2a0
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/resource/resource-memory.c
src/resource/resource-process.c