Skip to content

Commit

Permalink
os: fdtable: include zephyr/kernel.h for struct k_mutex
Browse files Browse the repository at this point in the history
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: Yong Cong Sin <ycsin@meta.com>
  • Loading branch information
ycsin authored and nashif committed Jun 29, 2024
1 parent a033ba6 commit cea6bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/zephyr/sys/fdtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit cea6bf5

Please sign in to comment.