Skip to content

Commit

Permalink
remove errors
Browse files Browse the repository at this point in the history
  • Loading branch information
enjhnsn2 committed Jul 15, 2024
1 parent fcaf26f commit 6532511
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kernel/src/collections/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
pub mod list;
//#[flux::ignore]
pub mod queue;
#[flux::ignore]
// #[flux::ignore]
pub mod ring_buffer;
2 changes: 2 additions & 0 deletions kernel/src/collections/ring_buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ impl<'a, T: Copy> RingBuffer<'a, T> {
}

/// Returns the number of elements that can be enqueued until the ring buffer is full.
#[flux::ignore]
pub fn available_len(&self) -> usize {
// The maximum capacity of the queue is ring_len - 1, because head == tail for the empty
// queue.
Expand Down Expand Up @@ -68,6 +69,7 @@ impl<'a, T: Copy> RingBuffer<'a, T> {
}
}

#[flux::ignore]
impl<T: Copy> queue::Queue<T> for RingBuffer<'_, T> {
fn has_elements(&self) -> bool {
self.head != self.tail
Expand Down
2 changes: 2 additions & 0 deletions kernel/src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,8 @@ macro_rules! debug_flush_queue {

/// Wrapper type that we need a mutable reference to for the core::fmt::Write
/// interface.
#[flux::trusted]
#[flux::opaque]
pub struct DebugWriterWrapper {
dw: MapCell<&'static DebugWriter>,
}
Expand Down
2 changes: 1 addition & 1 deletion kernel/src/ipc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub const DRIVER_NUM: usize = 0x10000;
mod ro_allow {
pub(super) const SEARCH: usize = 0;
/// The number of allow buffers the kernel stores for this grant.
pub(super) const COUNT: u8 = 1;
pub(super) const _COUNT: u8 = 1;
}

/// Enum to mark which type of upcall is scheduled for the IPC mechanism.
Expand Down

0 comments on commit 6532511

Please sign in to comment.