Fix Linter CI
This commit is contained in:
parent
af7591bc26
commit
1ff46c8482
|
@ -21,8 +21,8 @@ build:
|
||||||
fmt:
|
fmt:
|
||||||
stage: host
|
stage: host
|
||||||
script:
|
script:
|
||||||
- rustup component add rustfmt-preview
|
- rustup component add rustfmt
|
||||||
- cargo fmt -- --check
|
- rustfmt --check
|
||||||
|
|
||||||
unit_test:
|
unit_test:
|
||||||
stage: test
|
stage: test
|
||||||
|
|
|
@ -2,7 +2,8 @@ blank_lines_lower_bound = 0 # default
|
||||||
blank_lines_upper_bound = 1 # default
|
blank_lines_upper_bound = 1 # default
|
||||||
brace_style = "SameLineWhere" # default
|
brace_style = "SameLineWhere" # default
|
||||||
disable_all_formatting = false # default
|
disable_all_formatting = false # default
|
||||||
edition = "2021"
|
edition = "2024"
|
||||||
|
style_edition = "2015"
|
||||||
empty_item_single_line = true # default
|
empty_item_single_line = true # default
|
||||||
fn_single_line = false # default
|
fn_single_line = false # default
|
||||||
force_explicit_abi = true # default
|
force_explicit_abi = true # default
|
||||||
|
|
|
@ -309,7 +309,9 @@ pub unsafe fn handle_src_override(src_override: &'static MadtIntSrcOverride) {
|
||||||
|
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
pub unsafe fn init(active_table: &mut KernelMapper) {
|
pub unsafe fn init(active_table: &mut KernelMapper) {
|
||||||
let bsp_apic_id = ApicId::new(u32::from(cpuid().get_feature_info().unwrap().initial_local_apic_id())); // TODO: remove unwraps
|
let bsp_apic_id = ApicId::new(u32::from(
|
||||||
|
cpuid().get_feature_info().unwrap().initial_local_apic_id(),
|
||||||
|
)); // TODO: remove unwraps
|
||||||
|
|
||||||
// search the madt for all IOAPICs.
|
// search the madt for all IOAPICs.
|
||||||
#[cfg(feature = "acpi")]
|
#[cfg(feature = "acpi")]
|
||||||
|
|
|
@ -96,7 +96,8 @@ impl LocalApic {
|
||||||
|
|
||||||
PercpuBlock::current()
|
PercpuBlock::current()
|
||||||
.misc_arch_info
|
.misc_arch_info
|
||||||
.apic_id_opt.set(Some(self.id()));
|
.apic_id_opt
|
||||||
|
.set(Some(self.id()));
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe fn read(&self, reg: u32) -> u32 {
|
unsafe fn read(&self, reg: u32) -> u32 {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
use core::cell::Cell;
|
|
||||||
use crate::memory::KernelMapper;
|
use crate::memory::KernelMapper;
|
||||||
|
use core::cell::Cell;
|
||||||
|
|
||||||
pub mod cpu;
|
pub mod cpu;
|
||||||
#[cfg(feature = "acpi")]
|
#[cfg(feature = "acpi")]
|
||||||
|
|
|
@ -6,8 +6,7 @@ use core::{
|
||||||
sync::atomic::{AtomicU32, Ordering},
|
sync::atomic::{AtomicU32, Ordering},
|
||||||
};
|
};
|
||||||
use spin::RwLock;
|
use spin::RwLock;
|
||||||
use syscall::UPPER_FDTBL_TAG;
|
use syscall::{SigProcControl, Sigcontrol, UPPER_FDTBL_TAG};
|
||||||
use syscall::{SigProcControl, Sigcontrol};
|
|
||||||
|
|
||||||
#[cfg(feature = "sys_stat")]
|
#[cfg(feature = "sys_stat")]
|
||||||
use crate::cpu_stats;
|
use crate::cpu_stats;
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
//! Filesystem syscalls
|
//! Filesystem syscalls
|
||||||
use core::mem::size_of;
|
use core::{mem::size_of, num::NonZeroUsize};
|
||||||
use core::num::NonZeroUsize;
|
|
||||||
|
|
||||||
use alloc::{string::String, sync::Arc, vec::Vec};
|
use alloc::{string::String, sync::Arc, vec::Vec};
|
||||||
use redox_path::RedoxPath;
|
use redox_path::RedoxPath;
|
||||||
|
|
|
@ -14,9 +14,9 @@ use crate::{
|
||||||
syscall::EventFlags,
|
syscall::EventFlags,
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::context::context::FdTbl;
|
|
||||||
use crate::{
|
use crate::{
|
||||||
context,
|
context,
|
||||||
|
context::context::FdTbl,
|
||||||
paging::{Page, VirtualAddress, PAGE_SIZE},
|
paging::{Page, VirtualAddress, PAGE_SIZE},
|
||||||
syscall::{error::*, flag::MapFlags},
|
syscall::{error::*, flag::MapFlags},
|
||||||
Bootstrap, CurrentRmmArch,
|
Bootstrap, CurrentRmmArch,
|
||||||
|
|
Loading…
Reference in New Issue