modules: fatfs: fix build warnings

Adds a missing include to avoid these warnings :
- zephyr/modules/fatfs/zfs_ffsystem.c:19:16: warning: implicit declaration
  of function 'k_malloc'; did you mean 'ff_memalloc'?
  [-Wimplicit-function-declaration]
- zephyr/modules/fatfs/zfs_ffsystem.c:19:16: warning: returning 'int' from
  a function with return type 'void *' makes pointer from integer without a
  cast [-Wint-conversion]
- zephyr/modules/fatfs/zfs_ffsystem.c:25:9: warning: implicit declaration
  of function 'k_free' [-Wimplicit-function-declaration]

Signed-off-by: Johan Lafon <johan.lafon@syslinbit.com>
This commit is contained in:
Johan Lafon 2023-09-14 12:35:59 +02:00 committed by Carles Cufí
parent 24ad40a7f2
commit 6f0bf76086

View file

@ -10,6 +10,8 @@
* https://github.com/zephyrproject-rtos/fatfs/blob/master/option/ffsystem.c * https://github.com/zephyrproject-rtos/fatfs/blob/master/option/ffsystem.c
*/ */
#include <zephyr/kernel.h>
#include <ff.h> #include <ff.h>
#if FF_USE_LFN == 3 /* Dynamic memory allocation */ #if FF_USE_LFN == 3 /* Dynamic memory allocation */