Skip to content

Commit 9524640

Browse files
committed
zephyr: sys: sync: semaphore: Add missing conditional on alloc
The kio support is behind `CONFIG_RUST_ALLOC`. This needs to be conditional in addition to the code that uses it. Signed-off-by: David Brown <[email protected]>
1 parent 732301a commit 9524640

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

zephyr/src/sys/sync/semaphore.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ use core::task::{Context, Poll};
2525
#[cfg(CONFIG_RUST_ALLOC)]
2626
use zephyr_sys::ETIMEDOUT;
2727

28+
#[cfg(CONFIG_RUST_ALLOC)]
2829
use crate::kio::ContextExt;
2930
#[cfg(CONFIG_RUST_ALLOC)]
3031
use crate::time::NoWait;

0 commit comments

Comments
 (0)