projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'rust-6.10' of https://github.com/Rust-for-Linux/linux
[linux-block.git]
/
rust
/
kernel
/
sync.rs
diff --git
a/rust/kernel/sync.rs
b/rust/kernel/sync.rs
index c983f63fd56e8cd00feca5d50c0bfb5b4c9bc369..0ab20975a3b5db4dcf913f4adaf6d3faca702dbf 100644
(file)
--- a/
rust/kernel/sync.rs
+++ b/
rust/kernel/sync.rs
@@
-37,6
+37,12
@@
impl LockClassKey {
}
}
+impl Default for LockClassKey {
+ fn default() -> Self {
+ Self::new()
+ }
+}
+
/// Defines a new static lock class and returns a pointer to it.
#[doc(hidden)]
#[macro_export]