Skip to content

Commit

Permalink
modules: fatfs: fix build warnings
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
faloj authored and carlescufi committed Sep 14, 2023
1 parent 24ad40a commit 6f0bf76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/fatfs/zfs_ffsystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* https://github.com/zephyrproject-rtos/fatfs/blob/master/option/ffsystem.c
*/

#include <zephyr/kernel.h>

#include <ff.h>

#if FF_USE_LFN == 3 /* Dynamic memory allocation */
Expand Down

0 comments on commit 6f0bf76

Please sign in to comment.