Skip to content

Commit

Permalink
[chore] Update Cargo.lock for ctor_bare
Browse files Browse the repository at this point in the history
  • Loading branch information
Azure-stars committed Nov 21, 2024
1 parent 5ccc2bf commit aabfe88
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 28 deletions.
10 changes: 4 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion api/arceos_posix_api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ flatten_objects = "0.1"
static_assertions = "1.1.0"
spin = { version = "0.9" }
lazy_static = { version = "1.5", features = ["spin_no_std"] }
crate_interface = "0.1"
ctor_bare = "0.1"

[build-dependencies]
Expand Down
19 changes: 0 additions & 19 deletions modules/axfs/src/fops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,8 @@ pub type FileType = axfs_vfs::VfsNodeType;
pub type DirEntry = axfs_vfs::VfsDirEntry;
/// Alias of [`axfs_vfs::VfsNodeAttr`].
pub type FileAttr = axfs_vfs::VfsNodeAttr;
/// Alias of [`axfs_vfs::VfsNodeAttr`].
pub type DirAttr = axfs_vfs::VfsNodeAttr;
/// Alias of [`axfs_vfs::VfsNodePerm`].
pub type FilePerm = axfs_vfs::VfsNodePerm;
/// Alias of [`axfs_vfs::VfsNodePerm`].
pub type DirPerm = axfs_vfs::VfsNodePerm;

/// An opened file object, with open permissions and a cursor.
pub struct File {
Expand Down Expand Up @@ -250,11 +246,6 @@ impl File {
pub fn get_attr(&self) -> AxResult<FileAttr> {
self.access_node(Cap::empty())?.get_attr()
}

/// Gets the inode number of the file.
pub fn get_inode(&self) -> u64 {
0
}
}

impl Directory {
Expand Down Expand Up @@ -354,16 +345,6 @@ impl Directory {
pub fn rename(&self, old: &str, new: &str) -> AxResult {
crate::root::rename(old, new)
}

/// Gets the directory attributes.
pub fn get_attr(&self) -> AxResult<DirAttr> {
self.access_node(Cap::empty())?.get_attr()
}

/// Gets the inode number of the file.
pub fn get_inode(&self) -> u64 {
0
}
}

impl Drop for File {
Expand Down
1 change: 1 addition & 0 deletions modules/axmm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ pub fn new_kernel_aspace() -> AxResult<AddrSpace> {
)?;
for r in axhal::mem::memory_regions() {
if r.size == 0 {
info!("Skip zero-size memory region: {:?}", r);
continue;
}
aspace.map_linear(phys_to_virt(r.paddr), r.paddr, r.size, r.flags.into())?;
Expand Down
3 changes: 1 addition & 2 deletions modules/axruntime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ default = []
smp = ["axhal/smp"]
irq = ["axhal/irq", "axtask?/irq", "percpu", "kernel_guard"]
tls = ["axhal/tls", "axtask?/tls"]
alloc = ["axalloc", "axns"]
alloc = ["axalloc"]
paging = ["axhal/paging", "axmm"]

multitask = ["axtask/multitask"]
Expand All @@ -35,7 +35,6 @@ axfs = { workspace = true, optional = true }
axnet = { workspace = true, optional = true }
axdisplay = { workspace = true, optional = true }
axtask = { workspace = true, optional = true }
axns = { workspace = true, optional = true }

crate_interface = "0.1"
percpu = { version = "0.1", optional = true }
Expand Down

0 comments on commit aabfe88

Please sign in to comment.