From ac1de89d3109e64dc286c32d403b7266d1011b10 Mon Sep 17 00:00:00 2001 From: Chen Chengjun Date: Mon, 21 Apr 2025 10:48:25 +0800 Subject: [PATCH] Add the default mark type for LockedXArray --- kernel/libs/xarray/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/libs/xarray/src/lib.rs b/kernel/libs/xarray/src/lib.rs index 0d07afdf..3ad62f1d 100644 --- a/kernel/libs/xarray/src/lib.rs +++ b/kernel/libs/xarray/src/lib.rs @@ -192,7 +192,7 @@ impl Drop for XArray { /// /// The locked `XArray` is able to create `CursorMut` and do mutable operations. /// There can only be one locked `XArray` at the same time. -pub struct LockedXArray<'a, P, M, G = PreemptDisabled> +pub struct LockedXArray<'a, P, M = NoneMark, G = PreemptDisabled> where P: NonNullPtr + Send + Sync, G: SpinGuardian,