Skip to content

Commit 2a6f151

Browse files
LaurentiuM1234nashif
authored andcommitted
firmware: scmi: transport.h: switch to including kernel.h
Toggling `CONFIG_USERSPACE` to `y` results in compilation errors caused by the fact that various k_* functions don't have their prototypes included in the SCMI sources (e.g: `k_mutex_*`, `k_sem_*`, `k_is_pre_kernel()`). To fix this, switch to using the `kernel.h` header instead of `sys/mutex.h`. Previously, this worked because `sys/mutex.h` included `kernel.h` if `CONFIG_USERSPACE` was set to `n`. Signed-off-by: Laurentiu Mihalcea <[email protected]>
1 parent d82424b commit 2a6f151

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/zephyr/drivers/firmware/scmi/transport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#define _INCLUDE_ZEPHYR_DRIVERS_FIRMWARE_SCMI_TRANSPORT_H_
1414

1515
#include <zephyr/device.h>
16-
#include <zephyr/sys/mutex.h>
16+
#include <zephyr/kernel.h>
1717

1818
struct scmi_message;
1919
struct scmi_channel;

0 commit comments

Comments
 (0)