From 6f0bf76086b52e55e205ba64819d2471f36ae95c Mon Sep 17 00:00:00 2001 From: Johan Lafon Date: Thu, 14 Sep 2023 12:35:59 +0200 Subject: [PATCH] modules: fatfs: fix build warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- modules/fatfs/zfs_ffsystem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/fatfs/zfs_ffsystem.c b/modules/fatfs/zfs_ffsystem.c index 6f4d134f798b3f..f4f2c9003723fd 100644 --- a/modules/fatfs/zfs_ffsystem.c +++ b/modules/fatfs/zfs_ffsystem.c @@ -10,6 +10,8 @@ * https://github.com/zephyrproject-rtos/fatfs/blob/master/option/ffsystem.c */ +#include + #include #if FF_USE_LFN == 3 /* Dynamic memory allocation */