]> www.infradead.org Git - users/hch/misc.git/commit
rust: platform: impl Send + Sync for platform::Device
authorDanilo Krummrich <dakr@kernel.org>
Tue, 18 Mar 2025 21:29:22 +0000 (22:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Mar 2025 23:55:12 +0000 (16:55 -0700)
commit455943aa187fd93358ccd00c894934061153ec0c
treee4ab96c9cbe2651ba8fbc940d23bdb01531a83e8
parente2942bb4e62938fcef1481c9c1470b661087cdb7
rust: platform: impl Send + Sync for platform::Device

Commit 4d320e30ee04 ("rust: platform: fix unrestricted &mut
platform::Device") changed the definition of platform::Device and
discarded the implicitly derived Send and Sync traits.

This isn't required by upstream code yet, and hence did not cause any
issues. However, it is relied on by upcoming drivers, hence add it back
in.

Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/20250318212940.137577-2-dakr@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
rust/kernel/platform.rs