Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/sched/syscalls/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
} else {
// TODO: Support getting affinity of other tasks if PERM_NICE
return Err(libkernel::error::KernelError::InvalidValue);
};

Check warning on line 26 in src/sched/syscalls/mod.rs

View workflow job for this annotation

GitHub Actions / build-test

Diff in /home/runner/work/moss-kernel/moss-kernel/src/sched/syscalls/mod.rs
let cpu_mask = {
let sched_data = task.sched_data.lock_save_irq();
sched_data.as_ref().unwrap().cpu_mask
sched_data.as_ref().map(|data| data.cpu_mask).unwrap_or([u8::MAX; CPU_MASK_SIZE])
};
let mut cpu_mask: &[u8] = &cpu_mask;
if CPU_MASK_SIZE > size {
Expand Down
Loading