Skip to content
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment