rust: sync: fix safety comment for `static_lock_class`
authorBenno Lossin <lossin@kernel.org>
Tue, 20 May 2025 23:17:13 +0000 (01:17 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Tue, 22 Jul 2025 11:52:14 +0000 (13:52 +0200)
commit4e6b5b8ab3e28148d04a63defadc29cfc771b102
tree0f1084d716641233f44a28f13ced0dabba0635ce
parent28753212e0f9c61afd859acf1d678f5de7faa4b8
rust: sync: fix safety comment for `static_lock_class`

The safety comment mentions lockdep -- which from a Rust perspective
isn't important -- and doesn't mention the real reason for why it's
sound to create `LockClassKey` as uninitialized memory.

Signed-off-by: Benno Lossin <lossin@kernel.org>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20250520231714.323931-1-lossin@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/sync.rs