Commit cea6bf55 authored by Yong Cong Sin's avatar Yong Cong Sin Committed by Anas Nashif
Browse files

os: fdtable: include `zephyr/kernel.h` for `struct k_mutex`

Was getting the following error:

include/zephyr/sys/fdtable.h:150:38: warning: 'struct k_mutex'
declared inside parameter list will not be visible outside of
this definition or declaration
  150 |                               struct k_mutex **lock);
      |                                      ^~~~~~~

(#51667) tried to fix this by including `zephyr/sys/mutex.h`,
but `struct k_mutex` is defined in `zephyr/kernel.h`, so
include the latter instead.

Signed-off-by: default avatarYong Cong Sin <ycsin@meta.com>
parent a033ba65
Loading
Loading
Loading
Loading
+1 −1
Changes for include/zephyr/sys/fdtable.h: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@

/* FIXME: For native_posix ssize_t, off_t. */
#include <zephyr/fs/fs.h>
#include <zephyr/sys/mutex.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/util.h>

/* File mode bits */