Skip to content

Commit cea6bf5

Browse files
ycsinnashif
authored andcommitted
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: Yong Cong Sin <[email protected]>
1 parent a033ba6 commit cea6bf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/zephyr/sys/fdtable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
/* FIXME: For native_posix ssize_t, off_t. */
1313
#include <zephyr/fs/fs.h>
14-
#include <zephyr/sys/mutex.h>
14+
#include <zephyr/kernel.h>
1515
#include <zephyr/sys/util.h>
1616

1717
/* File mode bits */

0 commit comments

Comments
 (0)