Fix unused warning of UtimeExt

This commit is contained in:
Fabing Li 2024-06-27 17:28:03 +08:00 committed by Tate, Hongliang Tian
parent d538c740ee
commit d3c172013a

View File

@ -202,9 +202,9 @@ fn read_time_from_user<T: Pod>(time_ptr: Vaddr) -> Result<(T, T)> {
Ok((autime, mutime))
}
#[allow(dead_code)]
trait UtimeExt {
fn utime_now() -> Self;
#[allow(dead_code)]
fn utime_omit() -> Self;
fn is_utime_now(&self) -> bool;
fn is_utime_omit(&self) -> bool;