Merge tag 'rust-6.10' of https://github.com/Rust-for-Linux/linux
[linux-block.git] / rust / kernel / sync.rs
index c983f63fd56e8cd00feca5d50c0bfb5b4c9bc369..0ab20975a3b5db4dcf913f4adaf6d3faca702dbf 100644 (file)
@@ -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]